예제 #1
0
파일: Form1.cs 프로젝트: cdemi/QDeploy
 private async Task putApplicationOffline(DeployerClient dc, RemoteDeployment deployment)
 {
     using (FileStream stream = File.OpenRead(txtAppOfflineURL.Text))
     {
         await
         dc.SendFileAsync(deployment.Path + "\\" + "App_Offline.htm", stream);
     }
     log("{0} Application is now Offline", deployment.FriendlyName);
 }
예제 #2
0
파일: Form1.cs 프로젝트: cdemi/QDeploy
        private async Task putApplicationOnline(DeployerClient dc, RemoteDeployment deployment)
        {
            await dc.DeleteFileAsync(deployment.Path + "\\" + "App_Offline.htm");

            log("{0} Application is now Online", deployment.FriendlyName);
        }