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 TestContract.HelloWorldResponseType HelloWorld(TestContract.HelloWorldRequestType request) { try { var client = helloyuzdClient.GetInstance(); var re = new TestContract.Yuzd.Client.HelloWorldRequestType(); var rep = client.HelloWorld(re); return(new TestContract.HelloWorldResponseType { Response = rep.Response }); } catch (Exception ex) { return(new TestContract.HelloWorldResponseType { Response = ex.Message }); } }
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); }