Hello,
For the first two requirements, it really has to do with how your remote machine, often called a server, provides file transfer services.
For static resource files, there are usually two file transfer methods, FTP and Http. After you have configured the server-side file transfer, you can refer to the following documents to get these files, and after that, the process is the same as operating local files.
For question 3, you can use the following code to get the current Domain.
try
{
string currentDomain = System.Net.Dns.GetHostName();
Console.WriteLine($"The current domain is: {currentDomain}");
}
catch (Exception ex)
{
Console.WriteLine($"Error occurred: {ex.Message}");
}
As a side note, per Guidelines for posting a quality question on Microsoft Q&A, please do not post multiple questions in a single thread.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.