Dmap.Server.Start C# (CSharp) Метод

Start() публичный Метод

public Start ( ) : void
Результат void
        public void Start()
        {
            running = true;
            ws.Start ();

            if (publish)
                RegisterService ();
        }

Usage Example

Пример #1
0
        public static void Main(string[] args)
        {
            string name = "Foobar Mirror";
            ushort port = 3690;

            if (args.Length > 0)
                name = args[0];
            if (args.Length > 1)
                port = UInt16.Parse (args[1]);

            server = new Server (name);
            server.Port = port;
            server.Start ();

            ServiceLocator locator = new ServiceLocator ();
            locator.Found += OnServiceFound;
            locator.Removed += OnServiceRemoved;
            locator.Start ();

            Console.WriteLine ("Press enter to quit");
            Console.ReadLine ();

            foreach (Client client in clients) {
                client.Logout ();
            }

            locator.Stop ();
            server.Stop ();
        }
All Usage Examples Of Dmap.Server::Start