public MyMethodOutput MyMethod(MyMethodInput input)
 {
     return(new MyMethodOutput {
         Result = 42
     });
 }
예제 #2
0
 public Task <string> MyMethodAsync(MyMethodInput input)
 {
     return(Task.FromResult(input.MyStringValue + input.MyMethodInput2.MyStringValue2 +
                            input.MyMethodInput3.MyStringValue3));
 }
 public string MyMethod(MyMethodInput input)
 {
     return(input.MyStringValue + input.MyMethodInput2.MyStringValue2 + input.MyMethodInput3.MyStringValue3);
 }
예제 #4
0
 public Task <MyMethodOutput> MyMethod(MyMethodInput input)
 {
     return(Task.FromResult(new MyMethodOutput {
         Result = 42
     }));
 }
 public MyMethodOutput MyMethod(MyMethodInput input)
 {
     return new MyMethodOutput { Result = 42 };
 }