private System.IAsyncResult OnBeginCalculate(object[] inValues, System.AsyncCallback callback, object asyncState) { int firstValue = ((int)(inValues[0])); int secondValue = ((int)(inValues[1])); CalculatorAsyncInvoke.ServiceCalculator.CalculationOperation operationType = ((CalculatorAsyncInvoke.ServiceCalculator.CalculationOperation)(inValues[2])); return(this.BeginCalculate(firstValue, secondValue, operationType, callback, asyncState)); }
public void CalculateAsync(int firstValue, int secondValue, CalculatorAsyncInvoke.ServiceCalculator.CalculationOperation operationType, object userState) { if ((this.onBeginCalculateDelegate == null)) { this.onBeginCalculateDelegate = new BeginOperationDelegate(this.OnBeginCalculate); } if ((this.onEndCalculateDelegate == null)) { this.onEndCalculateDelegate = new EndOperationDelegate(this.OnEndCalculate); } if ((this.onCalculateCompletedDelegate == null)) { this.onCalculateCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCalculateCompleted); } base.InvokeAsync(this.onBeginCalculateDelegate, new object[] { firstValue, secondValue, operationType }, this.onEndCalculateDelegate, this.onCalculateCompletedDelegate, userState); }
public void CalculateAsync(int firstValue, int secondValue, CalculatorAsyncInvoke.ServiceCalculator.CalculationOperation operationType) { this.CalculateAsync(firstValue, secondValue, operationType, null); }
public System.IAsyncResult BeginCalculate(int firstValue, int secondValue, CalculatorAsyncInvoke.ServiceCalculator.CalculationOperation operationType, System.AsyncCallback callback, object asyncState) { return(base.Channel.BeginCalculate(firstValue, secondValue, operationType, callback, asyncState)); }
public int Calculate(int firstValue, int secondValue, CalculatorAsyncInvoke.ServiceCalculator.CalculationOperation operationType) { return(base.Channel.Calculate(firstValue, secondValue, operationType)); }