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