Open() public method

public Open ( ) : void
return void
示例#1
0
        // Entry point for the application.
        public static void Main(string[] args)
        {
#if LOCALSERVER
            using (LocalServer listener = new LocalServer())
            {
                listener.Open();
            }
#else
            ServiceRuntime.RegisterServiceAsync(
                "WebServiceType",
                context =>
                new WebService(context)).GetAwaiter().GetResult();

            Thread.Sleep(Timeout.Infinite);
#endif
        }
        // Entry point for the application.
        public static void Main(string[] args)
        {
            #if LOCALSERVER

            using (LocalServer listener = new LocalServer())
            {
                listener.Open();
            }

            #else

            ServiceRuntime.RegisterServiceAsync(
                "WebServiceType",
                context =>
                    new WebService(context)).GetAwaiter().GetResult();

            Thread.Sleep(Timeout.Infinite);
            #endif
        }