示例#1
0
        static async Task Main(string[] args)
        {
            //BenchmarkRunner.Run<Test>();
            //run as console
            var withChannelExtensions = new WithChannelExtensions();
            await withChannelExtensions.RunWithChannelsAsync();

            var withChannels = new WithChannels();
            await withChannels.RunWithChannelsAsync();

            var withoutChannels = new WithoutChannels();
            await withoutChannels.RunWithoutChannelsAsync();

//          Console output
//          With Open Extensions ==> Completed in 00:00:03.8356042
//          With Channel ==> Completed in 00:00:02.9015385
//          Without Channels ==> Completed in 00:00:29.8277077
        }
示例#2
0
 public async Task With_OpenChannelExtensions()
 {
     var withChannelExtensions = new WithChannelExtensions();
     await withChannelExtensions.RunWithChannelsAsync();
 }