static void TestCreateTask() { var hystrixIn = new TestContract.Client.HelloWorldRequestType(); try { var hystrixOut = client.CreateAsyncTaskOfHelloWorld(hystrixIn).Result; Console.WriteLine(hystrixOut.Response); } catch (Exception e) { Console.WriteLine(e.Message); } var hystrixIn2 = new TestContract.Yuzd.Client.HelloWorldRequestType(); try { var hystrixOut = client2.CreateAsyncTaskOfHelloWorld(hystrixIn2).Result; Console.WriteLine(hystrixOut.Response); } catch (Exception e) { Console.WriteLine(e.Message); } Console.ReadLine(); }
public virtual Task <HelloWorldResponseType> StartIOCPTaskOfHelloWorldAsync(HelloWorldRequestType helloWorldAsyncIn) { return(base.StartIOCPTask <HelloWorldResponseType>("HelloWorldAsync", helloWorldAsyncIn)); }
public virtual Task <HelloWorldResponseType> CreateAsyncTaskOfHelloWorldAsync(HelloWorldRequestType helloWorldAsyncIn, CancellationToken?cancellationToken = null, TaskCreationOptions?taskCreationOptions = null) { return(base.CreateAsyncTask <HelloWorldRequestType, HelloWorldResponseType>("HelloWorldAsync", helloWorldAsyncIn, cancellationToken, taskCreationOptions)); }
public virtual HelloWorldResponseType HelloWorldAsync(HelloWorldRequestType helloWorldAsyncIn, Func <HelloWorldResponseType> getFallback) { return(base.Invoke <HelloWorldResponseType>("HelloWorldAsync", helloWorldAsyncIn, getFallback)); }
public virtual HelloWorldResponseType HelloWorldAsync(HelloWorldRequestType helloWorldAsyncIn) { return(base.Invoke <HelloWorldResponseType>("HelloWorldAsync", helloWorldAsyncIn)); }