示例#1
0
        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();
        }
示例#2
0
 public virtual Task <HelloWorldResponseType> StartIOCPTaskOfHelloWorldAsync(HelloWorldRequestType helloWorldAsyncIn)
 {
     return(base.StartIOCPTask <HelloWorldResponseType>("HelloWorldAsync", helloWorldAsyncIn));
 }
示例#3
0
 public virtual Task <HelloWorldResponseType> CreateAsyncTaskOfHelloWorldAsync(HelloWorldRequestType helloWorldAsyncIn, CancellationToken?cancellationToken = null, TaskCreationOptions?taskCreationOptions = null)
 {
     return(base.CreateAsyncTask <HelloWorldRequestType, HelloWorldResponseType>("HelloWorldAsync", helloWorldAsyncIn, cancellationToken, taskCreationOptions));
 }
示例#4
0
 public virtual HelloWorldResponseType HelloWorldAsync(HelloWorldRequestType helloWorldAsyncIn, Func <HelloWorldResponseType> getFallback)
 {
     return(base.Invoke <HelloWorldResponseType>("HelloWorldAsync", helloWorldAsyncIn, getFallback));
 }
示例#5
0
 public virtual HelloWorldResponseType HelloWorldAsync(HelloWorldRequestType helloWorldAsyncIn)
 {
     return(base.Invoke <HelloWorldResponseType>("HelloWorldAsync", helloWorldAsyncIn));
 }