protected override void BeginProcessing() { var basedirPath = AppDomain.CurrentDomain.BaseDirectory; Console.WriteLine(basedirPath); var command = new StartServerCommand(this); command.Execute(); }
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(); }
protected void StartServerCommandHandler(StartServerCommand cmd) { _server.StartServer(cmd.port, cmd.maxConnections, cmd.pingTimeout); }
protected override void BeginProcessing() { var command = new StartServerCommand(this); command.Execute(); }