Exemplo n.º 1
0
        /// <summary>
        /// Removes a script from an application.
        /// </summary>
        /// <param name="appId">appId identifies the application to use.</param>
        /// <param name="scriptId">script is a ScriptType object specifying the script to be updated.</param>
        /// <param name="forceRemove">forceRemove indicates that the Application Controller will attempt to
        /// force the conditions under which the remove can take place.</param>
        /// <returns>A ProvisioningWarningListType object, containing minor
        /// warnings about non-fatal provisioning problems.</returns>
        public ProvisioningWarningType[] RemoveScript(string appId, string scriptId, bool forceRemove = false)
        {
            var removeScriptInput = new RemoveScriptType {
                applicationID = appId, scriptID = scriptId, forceRemove = forceRemove
            };

            return(provisionSvc.removeScript(removeScriptInput));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Removes a script from an application.
 /// </summary>
 /// <param name="appId">appId identifies the application to use.</param>
 /// <param name="scriptId">script is a ScriptType object specifying the script to be updated.</param>
 /// <param name="forceRemove">forceRemove indicates that the Application Controller will attempt to 
 /// force the conditions under which the remove can take place.</param>
 /// <returns>A ProvisioningWarningListType object, containing minor 
 /// warnings about non-fatal provisioning problems.</returns>
 public ProvisioningWarningType[] RemoveScript(string appId, string scriptId, bool forceRemove = false)
 {
     var removeScriptInput = new RemoveScriptType { applicationID = appId, scriptID = scriptId, forceRemove = forceRemove };
     return provisionSvc.removeScript(removeScriptInput);
 }
Exemplo n.º 3
0
 /// <remarks/>
 public void removeScriptAsync(RemoveScriptType removeScriptInput)
 {
     this.removeScriptAsync(removeScriptInput, null);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void removeScriptAsync(RemoveScriptType removeScriptInput, object userState)
 {
     if ((this.removeScriptOperationCompleted == null))
     {
         this.removeScriptOperationCompleted = new System.Threading.SendOrPostCallback(this.OnremoveScriptOperationCompleted);
     }
     this.InvokeAsync("removeScript", new object[] {
                 removeScriptInput}, this.removeScriptOperationCompleted, userState);
 }
Exemplo n.º 5
0
 /// <remarks/>
 public System.IAsyncResult BeginremoveScript(RemoveScriptType removeScriptInput, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("removeScript", new object[] {
                 removeScriptInput}, callback, asyncState);
 }