예제 #1
0
 public void BasicOperationAsync(BasicProtoDemo.BasicOperationRequest request, object userState)
 {
     if ((this.onBeginBasicOperationDelegate == null))
     {
         this.onBeginBasicOperationDelegate = new BeginOperationDelegate(this.OnBeginBasicOperation);
     }
     if ((this.onEndBasicOperationDelegate == null))
     {
         this.onEndBasicOperationDelegate = new EndOperationDelegate(this.OnEndBasicOperation);
     }
     if ((this.onBasicOperationCompletedDelegate == null))
     {
         this.onBasicOperationCompletedDelegate = new global::System.Threading.SendOrPostCallback(this.OnBasicOperationCompleted);
     }
     base.InvokeAsync(this.onBeginBasicOperationDelegate, new object[] {
         request
     }, this.onEndBasicOperationDelegate, this.onBasicOperationCompletedDelegate, userState);
 }
예제 #2
0
        public void S22Async(SimpleMessage1 request, object userState)
        {
            if ((this.onBeginS22Delegate == null))
            {
                this.onBeginS22Delegate = new BeginOperationDelegate(this.OnBeginS22);
            }

            if ((this.onEndS22Delegate == null))
            {
                this.onEndS22Delegate = new EndOperationDelegate(this.OnEndS22);
            }

            if ((this.onS22CompletedDelegate == null))
            {
                this.onS22CompletedDelegate = new global::System.Threading.SendOrPostCallback(this.OnS22Completed);
            }

            base.InvokeAsync(this.onBeginS22Delegate,
                             new object[] { request },
                             this.onEndS22Delegate,
                             this.onS22CompletedDelegate,
                             userState);
        }