예제 #1
0
        protected override void BeginProcessing()
        {
            var basedirPath = AppDomain.CurrentDomain.BaseDirectory;
            Console.WriteLine(basedirPath);


            var command = new StartServerCommand(this);
            command.Execute();
        }
예제 #2
0
        protected override void BeginProcessing()
        {
            var basedirPath = AppDomain.CurrentDomain.BaseDirectory;

            Console.WriteLine(basedirPath);


            var command = new StartServerCommand(this);

            command.Execute();
        }
예제 #3
0
 public SetupViewModel(SyncClientSocket syncClientSocket, SyncServerSocket syncServerSocket)
 {
     isConnected              = false;
     SendInviteCommand        = new SendInviteCommand(this);
     StartServerCommand       = new StartServerCommand(this);
     ShowDialogBoxCommand     = new ShowDialogBoxCommand(this);
     ViewPreviousChatsCommand = new ViewPreviousChatsCommand(this);
     //OpenConversationsCommand           = new OpenConversationsCommand(this);
     PerformClientInitializationCommand = new PerformClientInitializationCommand(this);
     this.syncClientSocket = syncClientSocket;
     this.syncServerSocket = syncServerSocket;
     registerHandlers();
 }
예제 #4
0
 protected void StartServerCommandHandler(StartServerCommand cmd)
 {
     _server.StartServer(cmd.port, cmd.maxConnections, cmd.pingTimeout);
 }
예제 #5
0
 protected override void BeginProcessing()
 {
     var command = new StartServerCommand(this);
     command.Execute();
 }