Example #1
0
 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);
 }
Example #2
0
        private async Task putApplicationOnline(DeployerClient dc, RemoteDeployment deployment)
        {
            await dc.DeleteFileAsync(deployment.Path + "\\" + "App_Offline.htm");

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