Elastacloud.AzureManagement.Fluent.SubscriptionManager.GetRoleStatusChangedWatcher C# (CSharp) Method

GetRoleStatusChangedWatcher() public method

Returns a watcher which will indicate when the status of the deployment and role by extension has changed
public GetRoleStatusChangedWatcher ( string serviceName, string roleName, DeploymentSlot slot, string certificateThumbprint ) : DeploymentStatusWatcher
serviceName string the name of the hosted service
roleName string the name of the role
slot DeploymentSlot the name of the deployment slot either production or staging
certificateThumbprint string the thumbprint of the management certificate
return Elastacloud.AzureManagement.Fluent.Watchers.DeploymentStatusWatcher
        public DeploymentStatusWatcher GetRoleStatusChangedWatcher(string serviceName, string roleName, DeploymentSlot slot,
                                                             string certificateThumbprint)
        {
            X509Certificate2 certificate = PublishSettingsExtractor.FromStore(certificateThumbprint);
            return new DeploymentStatusWatcher(serviceName, slot, certificate, _subscriptionId);
        }