Example #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            int number = int.Parse(TextBox1.Text);
            var command = new Command {Id = number};

            var service = new Service1();
            var result = service.Process(command);

            Label1.Text = Enum.GetName(typeof (ErrorCodes), result);
        }
Example #2
0
 /// <remarks/>
 public void ProcessAsync(Command request, object userState) {
     if ((this.ProcessOperationCompleted == null)) {
         this.ProcessOperationCompleted = new System.Threading.SendOrPostCallback(this.OnProcessOperationCompleted);
     }
     this.InvokeAsync("Process", new object[] {
                 request}, this.ProcessOperationCompleted, userState);
 }
Example #3
0
 /// <remarks/>
 public void ProcessAsync(Command request) {
     this.ProcessAsync(request, null);
 }
Example #4
0
 public ErrorCodes Process(Command request) {
     object[] results = this.Invoke("Process", new object[] {
                 request});
     return ((ErrorCodes)(results[0]));
 }