public IAsyncResult BeginGetOrganizations(AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetWebSpaces(string subscriptionName, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionName"] = subscriptionName;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginDeploy(string commitId, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["commitId"] = commitId;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetDeployments(int maxItems, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["maxItems"] = maxItems;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
예제 #5
0
        public IAsyncResult BeginDownloadLogs(AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["callback"] = callback;
            result.Values["state"]    = state;
            return(result);
        }
예제 #6
0
        public IAsyncResult BeginGetServers(string subscriptionId, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["subscriptionId"] = subscriptionId;
            result.Values["callback"]       = callback;
            result.Values["state"]          = state;
            return(result);
        }
        public IAsyncResult BeginGetRepositoriesFromOrg(string organization, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["organization"] = organization;
            result.Values["callback"]     = callback;
            result.Values["state"]        = state;
            return(result);
        }
예제 #8
0
        public IAsyncResult BeginGetDeployments(int maxItems, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["maxItems"] = maxItems;
            result.Values["callback"] = callback;
            result.Values["state"]    = state;
            return(result);
        }
예제 #9
0
        public IAsyncResult BeginDeploy(string commitId, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["commitId"] = commitId;
            result.Values["callback"] = callback;
            result.Values["state"]    = state;
            return(result);
        }
        public IAsyncResult BeginGetRepositoryHooks(string owner, string repository, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["owner"]      = owner;
            result.Values["repository"] = repository;
            result.Values["callback"]   = callback;
            result.Values["state"]      = state;
            return(result);
        }
 public IAsyncResult BeginGetSites(string subscriptionName, string webspaceName, string propertiesToInclude, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionName"] = subscriptionName;
     result.Values["webspaceName"] = webspaceName;
     result.Values["propertiesToInclude"] = propertiesToInclude;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginAddCertificates(string subscriptionId, string serviceName, CertificateFile input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
예제 #13
0
        public IAsyncResult BeginNewServer(string subscriptionId, NewSqlDatabaseServerInput input, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["subscriptionId"] = subscriptionId;
            result.Values["input"]          = input;
            result.Values["callback"]       = callback;
            result.Values["state"]          = state;
            return(result);
        }
예제 #14
0
        public IAsyncResult BeginSetPassword(string subscriptionId, string serverName, XmlElement password, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["subscriptionId"] = subscriptionId;
            result.Values["serverName"]     = serverName;
            result.Values["password"]       = password;
            result.Values["callback"]       = callback;
            result.Values["state"]          = state;
            return(result);
        }
예제 #15
0
        public IAsyncResult BeginIsServiceBusNamespaceAvailable(string subscriptionId, string serviceName, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["subscriptionId"] = subscriptionId;
            result.Values["serviceName"]    = serviceName;
            result.Values["callback"]       = callback;
            result.Values["state"]          = state;

            return(result);
        }
        public IAsyncResult BeginGetSites(string subscriptionName, string webspaceName, string propertiesToInclude, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["subscriptionName"]    = subscriptionName;
            result.Values["webspaceName"]        = webspaceName;
            result.Values["propertiesToInclude"] = propertiesToInclude;
            result.Values["callback"]            = callback;
            result.Values["state"] = state;
            return(result);
        }
 public IAsyncResult BeginDeleteCertificate(string subscriptionId, string serviceName, string thumbprintAlgorithm, string thumbprintInHex, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["thumbprintalgorithm"] = thumbprintAlgorithm;
     result.Values["thumbprintInHex"] = thumbprintInHex;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
        public IAsyncResult BeginCreateSiteRepository(string subscriptionName, string webspaceName, string name, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["subscriptionName"] = subscriptionName;
            result.Values["webspaceName"]     = webspaceName;
            result.Values["name"]             = name;
            result.Values["callback"]         = callback;
            result.Values["state"]            = state;
            return(result);
        }
예제 #19
0
        public IAsyncResult BeginRemoveServerFirewallRule(string subscriptionId, string serverName, string ruleName, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["subscriptionId"] = subscriptionId;
            result.Values["serverName"]     = serverName;
            result.Values["ruleName"]       = ruleName;
            result.Values["callback"]       = callback;
            result.Values["state"]          = state;
            return(result);
        }
예제 #20
0
        public IAsyncResult BeginCreateServiceBusNamespace(string subscriptionId, ServiceBusNamespace namespaceDescription, string name, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["subscriptionId"]       = subscriptionId;
            result.Values["namespaceDescription"] = namespaceDescription;
            result.Values["name"]     = name;
            result.Values["callback"] = callback;
            result.Values["state"]    = state;

            return(result);
        }
        public IAsyncResult BeginDeleteSite(string subscriptionName, string webspaceName, string name, string deleteMetrics, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["subscriptionName"] = subscriptionName;
            result.Values["webspaceName"]     = webspaceName;
            result.Values["name"]             = name;
            result.Values["deleteMetrics"]    = deleteMetrics;
            result.Values["callback"]         = callback;
            result.Values["state"]            = state;
            return(result);
        }
        public IAsyncResult BeginUpdateRepositoryHook(string owner, string repository, string id, GithubRepositoryHook hook, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();

            result.Values["owner"]      = owner;
            result.Values["repository"] = repository;
            result.Values["id"]         = id;
            result.Values["hook"]       = hook;
            result.Values["callback"]   = callback;
            result.Values["state"]      = state;
            return(result);
        }
예제 #23
0
 public void EndDeploy(IAsyncResult asyncResult)
 {
     if (DeployThunk != null)
     {
         SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
         Assert.IsNotNull(result, "asyncResult was not SimpleDeploymentServiceManagementAsyncResult!");
         DeployThunk(result);
     }
     else if (ThrowsIfNotImplemented)
     {
         throw new NotImplementedException("DeployThunk is not implemented!");
     }
 }
        public void EndCreateSiteRepository(IAsyncResult asyncResult)
        {
            if (CreateSiteRepositoryThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                CreateSiteRepositoryThunk(result);
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("CreateSiteRepositoryThunk is not implemented!");
            }
        }
        public void EndUpdateSiteConfig(IAsyncResult asyncResult)
        {
            if (UpdateSiteConfigThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                UpdateSiteConfigThunk(result);
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("UpdateSiteConfigThunk is not implemented!");
            }
        }
예제 #26
0
        public void EndRemoveServerFirewallRule(IAsyncResult asyncResult)
        {
            if (RemoveServerFirewallRuleThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                RemoveServerFirewallRuleThunk(result);
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("RemoveServerFirewallRuleThunk is not implemented!");
            }
        }
예제 #27
0
        /// <summary>
        /// A mock call to EndRemoveDatabase
        /// </summary>
        /// <param name="asyncResult">The result of the mock BeginRemoveDatabase call</param>
        public void EndRemoveDatabase(IAsyncResult asyncResult)
        {
            if (this.RemoveDatabaseThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                this.RemoveDatabaseThunk(result);
            }
            else if (this.ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("RemoveDatabaseThunk is not implemented!");
            }
        }
예제 #28
0
        public void EndSetPassword(IAsyncResult asyncResult)
        {
            if (SetPasswordThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                SetPasswordThunk(result);
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("SetPasswordThunk is not implemented!");
            }
        }
        public WebSpaces EndGetWebSpaces(IAsyncResult asyncResult)
        {
            if (GetWebSpacesThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                return(GetWebSpacesThunk(result));
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("GetWebSpacesThunk is not implemented!");
            }

            return(default(WebSpaces));
        }
        public Site EndCreateSite(IAsyncResult asyncResult)
        {
            if (CreateSiteThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                return(CreateSiteThunk(result));
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("CreateSiteThunk is not implemented!");
            }

            return(default(Site));
        }
        public string[] EndGetSubscriptionPublishingUsers(IAsyncResult asyncResult)
        {
            if (GetSubscriptionPublishingUsersThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                return(GetSubscriptionPublishingUsersThunk(result));
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("GetSubscriptionPublishingUsersThunk is not implemented!");
            }

            return(default(string[]));
        }
        public GithubRepositoryHook EndUpdateRepositoryHook(IAsyncResult asyncResult)
        {
            if (UpdateRepositoryHookThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleDeploymentServiceManagementAsyncResult!");

                return(UpdateRepositoryHookThunk(result));
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("UpdateRepositoryHookThunk is not implemented!");
            }

            return(default(GithubRepositoryHook));
        }
예제 #33
0
        /// <summary>
        /// A mock call to EndUpdateDatabase
        /// </summary>
        /// <param name="asyncResult">The result of the mock BeginUpdateDatabase call</param>
        /// <returns>A <see cref="SqlDatabaseResponse"/>: the result of calling the thunk on the input</returns>
        public SqlDatabaseResponse EndUpdateDatabase(IAsyncResult asyncResult)
        {
            if (this.UpdateDatabaseThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                return(this.UpdateDatabaseThunk(result));
            }
            else if (this.ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("UpdateDatabaseThunk is not implemented!");
            }

            return(default(SqlDatabaseResponse));
        }
예제 #34
0
        public SqlDatabaseServerList EndGetServers(IAsyncResult asyncResult)
        {
            if (GetServersThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                return(GetServersThunk(result));
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("GetServersThunk is not implemented!");
            }

            return(default(SqlDatabaseServerList));
        }
예제 #35
0
        public Stream EndDownloadLogs(IAsyncResult asyncResult)
        {
            if (DownloadLogsThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleDeploymentServiceManagementAsyncResult!");

                return(DownloadLogsThunk(result));
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("GetDeploymentLog is not implemented!");
            }

            return(default(Stream));
        }
예제 #36
0
        public List <DeployResult> EndGetDeployments(IAsyncResult asyncResult)
        {
            if (GetDeploymentsThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleDeploymentServiceManagementAsyncResult!");

                return(GetDeploymentsThunk(result));
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("GetDeploymentsThunk is not implemented!");
            }

            return(default(List <DeployResult>));
        }
예제 #37
0
        public XmlElement EndNewServer(IAsyncResult asyncResult)
        {
            if (NewServerThunk != null)
            {
                SimpleServiceManagementAsyncResult result = asyncResult as SimpleServiceManagementAsyncResult;
                Assert.IsNotNull(result, "asyncResult was not SimpleServiceManagementAsyncResult!");

                return(NewServerThunk(result));
            }
            else if (ThrowsIfNotImplemented)
            {
                throw new NotImplementedException("NewServerThunk is not implemented!");
            }

            return(default(XmlElement));
        }
 public IAsyncResult BeginGetOperationStatus(string subscriptionId, string operationTrackingId, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["operationTrackingId"] = operationTrackingId;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetHostedServiceWithDetails(string subscriptionId, string serviceName, Boolean embedDetail, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["embedDetail"] = embedDetail;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetDeployment(string subscriptionId, string serviceName, string deploymentName, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["deploymentName"] = deploymentName;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetAffinityGroup(string subscriptionId, string affinityGroupName, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["affinityGroupName"] = affinityGroupName;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginCreateHostedService(string subscriptionId, CreateHostedServiceInput input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginCreateRepositoryHook(string owner, string repository, GithubRepositoryHook hook, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["owner"] = owner;
     result.Values["repository"] = repository;
     result.Values["hook"] = hook;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
        public IAsyncResult BeginListServiceBusRegions(string subscriptionId, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
            result.Values["subscriptionId"] = subscriptionId;
            result.Values["callback"] = callback;
            result.Values["state"] = state;

            return result;
        }
 public IAsyncResult BeginUpdateStorageService(string subscriptionId, string StorageServiceName, UpdateStorageServiceInput updateStorageServiceInput, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["StorageServiceName"] = StorageServiceName;
     result.Values["updateStorageServiceInput"] = updateStorageServiceInput;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginSwapDeployment(string subscriptionId, string serviceName, SwapDeploymentInput input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginRegenerateStorageServiceKeys(string subscriptionId, string serviceName, RegenerateKeys regenerateKeys, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["regenerateKeys"] = regenerateKeys;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginUpdateServerFirewallRule(string subscriptionId, string serverName, string ruleName, SqlDatabaseFirewallRuleInput input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serverName"] = serverName;
     result.Values["ruleName"] = ruleName;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetServerFirewallRules(string subscriptionId, string serverName, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serverName"] = serverName;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginUpdateSiteConfig(string subscriptionName, string webspaceName, string name, SiteConfig siteConfig, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionName"] = subscriptionName;
     result.Values["webspaceName"] = webspaceName;
     result.Values["name"] = name;
     result.Values["siteConfig"] = siteConfig;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginDeleteSite(string subscriptionName, string webspaceName, string name, string deleteMetrics, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionName"] = subscriptionName;
     result.Values["webspaceName"] = webspaceName;
     result.Values["name"] = name;
     result.Values["deleteMetrics"] = deleteMetrics;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginGetRepositoriesFromOrg(string organization, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["organization"] = organization;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginReimageDeploymentRoleInstanceBySlot(string subscriptionId, string serviceName, string deploymentSlot, string roleInstanceName, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["deploymentSlot"] = deploymentSlot;
     result.Values["roleInstanceName"] = roleInstanceName;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginSetPassword(string subscriptionId, string serverName, XmlElement password, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serverName"] = serverName;
     result.Values["password"] = password;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginUpdateDeploymentStatusBySlot(string subscriptionId, string serviceName, string deploymentSlot, UpdateDeploymentStatusInput input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["deploymentSlot"] = deploymentSlot;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
 public IAsyncResult BeginNewServer(string subscriptionId, NewSqlDatabaseServerInput input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
        public IAsyncResult BeginIsServiceBusNamespaceAvailable(string subscriptionId, string serviceName, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
            result.Values["subscriptionId"] = subscriptionId;
            result.Values["serviceName"] = serviceName;
            result.Values["callback"] = callback;
            result.Values["state"] = state;

            return result;
        }
 public IAsyncResult BeginWalkUpgradeDomain(string subscriptionId, string serviceName, string deploymentName, WalkUpgradeDomainInput input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["serviceName"] = serviceName;
     result.Values["deploymentName"] = deploymentName;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }
        public IAsyncResult BeginCreateServiceBusNamespace(string subscriptionId, ServiceBusNamespace namespaceDescription, string name, AsyncCallback callback, object state)
        {
            SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
            result.Values["subscriptionId"] = subscriptionId;
            result.Values["namespaceDescription"] = namespaceDescription;
            result.Values["name"] = name;
            result.Values["callback"] = callback;
            result.Values["state"] = state;

            return result;
        }
 public IAsyncResult BeginTestRepositoryHook(string owner, string repository, string id, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["owner"] = owner;
     result.Values["repository"] = repository;
     result.Values["id"] = id;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }