/// <summary>
 /// Initializes a new instance of the GetAzureWebsiteLogCommand class.
 /// </summary>
 /// <param name="channel">
 /// Channel used for communication with Azure's service management APIs.
 /// </param>
 /// <param name="deploymentChannel">
 /// Channel used for communication with the git repository.
 /// </param>
 public GetAzureWebsiteLogCommand(
     IWebsitesServiceManagement channel,
     IDeploymentServiceManagement deploymentChannel)
 {
     Channel = channel;
     DeploymentChannel = deploymentChannel;
     WebsiteClient = null;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the GetAzureWebsiteLogCommand class.
 /// </summary>
 /// <param name="channel">
 /// Channel used for communication with Azure's service management APIs.
 /// </param>
 /// <param name="deploymentChannel">
 /// Channel used for communication with the git repository.
 /// </param>
 public GetAzureWebsiteLogCommand(
     IWebsitesServiceManagement channel,
     IDeploymentServiceManagement deploymentChannel)
 {
     Channel           = channel;
     DeploymentChannel = deploymentChannel;
     WebsiteClient     = null;
 }
        internal override void ExecuteCommand()
        {
            Repository repository = GetRepository(Name);
            if (repository == null)
            {
                throw new Exception(Resources.RepositoryNotSetup);
            }

            DeploymentChannel = CreateDeploymentChannel(repository);
        }
 /// <summary>
 /// Initializes a new instance of the RestoreAzureWebsiteDeploymentCommand class.
 /// </summary>
 /// <param name="channel">
 /// Channel used for communication with Azure's service management APIs.
 /// </param>
 /// <param name="deploymentChannel">
 /// Channel used for communication with the git repository.
 /// </param>
 public RestoreAzureWebsiteDeploymentCommand(IWebsitesServiceManagement channel, IDeploymentServiceManagement deploymentChannel)
 {
     Channel = channel;
     DeploymentChannel = deploymentChannel;
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the GetAzureWebsiteDeploymentCommand class.
 /// </summary>
 /// <param name="deploymentChannel">
 /// Channel used for communication with the git repository.
 /// </param>
 public GetAzureWebsiteDeploymentCommand(IDeploymentServiceManagement deploymentChannel)
 {
     DeploymentChannel = deploymentChannel;
 }
 /// <summary>
 /// Initializes a new instance of the GetAzureWebsiteDeploymentCommand class.
 /// </summary>
 /// <param name="deploymentChannel">
 /// Channel used for communication with the git repository.
 /// </param>
 public GetAzureWebsiteDeploymentCommand(IDeploymentServiceManagement deploymentChannel)
 {
     DeploymentChannel = deploymentChannel;
 }
 public static Stream DownloadLogs(this IDeploymentServiceManagement proxy)
 {
     return(proxy.EndDownloadLogs(proxy.BeginDownloadLogs(null, null)));
 }
 public static void Deploy(this IDeploymentServiceManagement proxy, string commitId)
 {
     proxy.EndDeploy(proxy.BeginDeploy(commitId, null, null));
 }
 public static List <LogEntry> GetDeploymentLogs(this IDeploymentServiceManagement proxy, string commitId)
 {
     return(proxy.EndGetDeploymentLogs(proxy.BeginGetDeploymentLogs(commitId, null, null)));
 }
 public static LogEntry GetDeploymentLog(this IDeploymentServiceManagement proxy, string commitId, string logId)
 {
     return(proxy.EndGetDeploymentLog(proxy.BeginGetDeploymentLog(commitId, logId, null, null)));
 }
 public static List <DeployResult> GetDeployments(this IDeploymentServiceManagement proxy, int maxItems)
 {
     return(proxy.EndGetDeployments(proxy.BeginGetDeployments(maxItems, null, null)));
 }
 /// <summary>
 /// Initializes a new instance of the SaveAzureWebsiteLogCommand class.
 /// </summary>
 /// <param name="channel">
 /// Channel used for communication with Azure's service management APIs.
 /// </param>
 /// <param name="deploymentChannel">
 /// Channel used for communication with the git repository.
 /// </param>
 public SaveAzureWebsiteLogCommand(IWebsitesServiceManagement channel, IDeploymentServiceManagement deploymentChannel)
 {
     Channel = channel;
     DeploymentChannel = deploymentChannel;
 }
示例#13
0
 /// <summary>
 /// Initializes a new instance of the RestoreAzureWebsiteDeploymentCommand class.
 /// </summary>
 /// <param name="channel">
 /// Channel used for communication with Azure's service management APIs.
 /// </param>
 /// <param name="deploymentChannel">
 /// Channel used for communication with the git repository.
 /// </param>
 public RestoreAzureWebsiteDeploymentCommand(IWebsitesServiceManagement channel, IDeploymentServiceManagement deploymentChannel)
 {
     Channel           = channel;
     DeploymentChannel = deploymentChannel;
 }
 /// <summary>
 /// Initializes a new instance of the SaveAzureWebsiteLogCommand class.
 /// </summary>
 /// <param name="deploymentChannel">
 /// Channel used for communication with the git repository.
 /// </param>
 public SaveAzureWebsiteLogCommand(IDeploymentServiceManagement deploymentChannel)
 {
     DeploymentChannel = deploymentChannel;
 }
 /// <summary>
 /// Initializes a new instance of the SaveAzureWebsiteLogCommand class.
 /// </summary>
 /// <param name="deploymentChannel">
 /// Channel used for communication with the git repository.
 /// </param>
 public SaveAzureWebsiteLogCommand(IDeploymentServiceManagement deploymentChannel)
 {
     DeploymentChannel = deploymentChannel;
 }
示例#16
0
 /// <summary>
 /// Initializes a new instance of the SaveAzureWebsiteLogCommand class.
 /// </summary>
 /// <param name="channel">
 /// Channel used for communication with Azure's service management APIs.
 /// </param>
 /// <param name="deploymentChannel">
 /// Channel used for communication with the git repository.
 /// </param>
 public SaveAzureWebsiteLogCommand(IWebsitesServiceManagement channel, IDeploymentServiceManagement deploymentChannel)
 {
     Channel           = channel;
     DeploymentChannel = deploymentChannel;
 }