Esempio n. 1
0
        public static async Task DoStuffAsync(IWcfService channel)
        {
            Console.WriteLine($"Start with thread: {Thread.CurrentThread.ManagedThreadId}");

            await channel.DoSomethingAsync();

            Console.WriteLine($"After WCF execution: {Thread.CurrentThread.ManagedThreadId}");

            Thread.Sleep(1000);
        }