Пример #1
0
        static void Main(string[] args)
        {
#if DotNetStandard
            Console.WriteLine("WARN : Linux .NET Core not support name EventWaitHandle");
#else
            bool            createdProcessWait;
            EventWaitHandle processWait = new EventWaitHandle(false, EventResetMode.ManualReset, "AutoCSer.TestCase.TcpInterfaceOpenServer", out createdProcessWait);
            if (createdProcessWait)
            {
                using (processWait)
                {
#endif
            Console.WriteLine(@"http://www.AutoCSer.com/TcpServer/InterfaceServer.html
");
            Console.WriteLine(RefOut.TestCase());
            Console.WriteLine(SendOnly.TestCase());
            Console.WriteLine(Asynchronous.TestCase());
            Console.WriteLine(KeepCallback.TestCase());
            Console.WriteLine(Inherit.TestCase());
            Console.WriteLine(Expression.TestCase());
            Console.WriteLine("Over");
            Console.ReadKey();
#if !DotNetStandard
        }
    }
#endif
        }
Пример #2
0
        static void Main(string[] args)
        {
            bool            createdProcessWait;
            EventWaitHandle processWait = new EventWaitHandle(false, EventResetMode.ManualReset, "AutoCSer.Example.TcpInterfaceOpenServer", out createdProcessWait);

            if (createdProcessWait)
            {
                using (processWait)
                {
                    Console.WriteLine(@"http://www.AutoCSer.com/TcpServer/InterfaceServer.html
");
                    Console.WriteLine(RefOut.TestCase());
                    Console.WriteLine(SendOnly.TestCase());
                    Console.WriteLine(Asynchronous.TestCase());
                    Console.WriteLine(KeepCallback.TestCase());
                    Console.WriteLine(Inherit.TestCase());
                    Console.WriteLine("Over");
                    Console.ReadKey();
                }
            }
        }