Esempio n. 1
0
 public System.IAsyncResult BeginAddNewBankAccount(Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO bankAccount, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[1];
     _args[0] = bankAccount;
     System.IAsyncResult _result = base.BeginInvoke("AddNewBankAccount", _args, callback, asyncState);
     return(_result);
 }
Esempio n. 2
0
 public System.IAsyncResult BeginPerformTransfer(Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO from, Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO to, decimal amount, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[3];
     _args[0] = from;
     _args[1] = to;
     _args[2] = amount;
     System.IAsyncResult _result = base.BeginInvoke("PerformTransfer", _args, callback, asyncState);
     return(_result);
 }
Esempio n. 3
0
 public void AddNewBankAccountAsync(Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO bankAccount, object userState)
 {
     if ((this.onBeginAddNewBankAccountDelegate == null))
     {
         this.onBeginAddNewBankAccountDelegate = new BeginOperationDelegate(this.OnBeginAddNewBankAccount);
     }
     if ((this.onEndAddNewBankAccountDelegate == null))
     {
         this.onEndAddNewBankAccountDelegate = new EndOperationDelegate(this.OnEndAddNewBankAccount);
     }
     if ((this.onAddNewBankAccountCompletedDelegate == null))
     {
         this.onAddNewBankAccountCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnAddNewBankAccountCompleted);
     }
     base.InvokeAsync(this.onBeginAddNewBankAccountDelegate, new object[] {
         bankAccount
     }, this.onEndAddNewBankAccountDelegate, this.onAddNewBankAccountCompletedDelegate, userState);
 }
Esempio n. 4
0
 public void PerformTransferAsync(Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO from, Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO to, decimal amount, object userState)
 {
     if ((this.onBeginPerformTransferDelegate == null))
     {
         this.onBeginPerformTransferDelegate = new BeginOperationDelegate(this.OnBeginPerformTransfer);
     }
     if ((this.onEndPerformTransferDelegate == null))
     {
         this.onEndPerformTransferDelegate = new EndOperationDelegate(this.OnEndPerformTransfer);
     }
     if ((this.onPerformTransferCompletedDelegate == null))
     {
         this.onPerformTransferCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnPerformTransferCompleted);
     }
     base.InvokeAsync(this.onBeginPerformTransferDelegate, new object[] {
         from,
         to,
         amount
     }, this.onEndPerformTransferDelegate, this.onPerformTransferCompletedDelegate, userState);
 }
Esempio n. 5
0
 public Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO EndAddNewBankAccount(System.IAsyncResult result)
 {
     object[] _args = new object[0];
     Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO _result = ((Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO)(base.EndInvoke("AddNewBankAccount", _args, result)));
     return(_result);
 }
Esempio n. 6
0
 public void PerformTransferAsync(Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO from, Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO to, decimal amount)
 {
     this.PerformTransferAsync(from, to, amount, null);
 }
Esempio n. 7
0
        private System.IAsyncResult OnBeginPerformTransfer(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO from = ((Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO)(inValues[0]));
            Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO to   = ((Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO)(inValues[1]));
            decimal amount = ((decimal)(inValues[2]));

            return(((Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.IBankingModuleService)(this)).BeginPerformTransfer(from, to, amount, callback, asyncState));
        }
Esempio n. 8
0
 System.IAsyncResult Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.IBankingModuleService.BeginPerformTransfer(Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO from, Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO to, decimal amount, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginPerformTransfer(from, to, amount, callback, asyncState));
 }
Esempio n. 9
0
 public void AddNewBankAccountAsync(Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO bankAccount)
 {
     this.AddNewBankAccountAsync(bankAccount, null);
 }
Esempio n. 10
0
 private object[] OnEndAddNewBankAccount(System.IAsyncResult result)
 {
     Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO retVal = ((Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.IBankingModuleService)(this)).EndAddNewBankAccount(result);
     return(new object[] {
         retVal
     });
 }
Esempio n. 11
0
 private System.IAsyncResult OnBeginAddNewBankAccount(object[] inValues, System.AsyncCallback callback, object asyncState)
 {
     Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO bankAccount = ((Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO)(inValues[0]));
     return(((Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.IBankingModuleService)(this)).BeginAddNewBankAccount(bankAccount, callback, asyncState));
 }
Esempio n. 12
0
 System.IAsyncResult Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.IBankingModuleService.BeginAddNewBankAccount(Microsoft.Samples.NLayerApp.Presentation.Silverlight.ServiceAgents.Proxies.BankingModule.BankAccountDTO bankAccount, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginAddNewBankAccount(bankAccount, callback, asyncState));
 }