示例#1
0
        public async Task ZeroArgument()
        {
            client = StreamingHubClient.Connect <ITestHub, IMessageReceiver>(channel, this);
            await client.ZeroArgument();

            await voidZeroTask.Task;
            //await zeroTask.Task;
            // ok, pass.

            await client.DisposeAsync();
        }
示例#2
0
        public async Task ZeroArgument()
        {
            try
            {
                client = StreamingHubClient.Connect <ITestHub, IMessageReceiver>(channel, this);
                await client.ZeroArgument();

                await voidZeroTask.Task;
                //await zeroTask.Task;
                // ok, pass.

                await client.DisposeAsync();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }
示例#3
0
 public ValueController()
 {
     this.test = new TestHub(null);
 }