Пример #1
0
 protected BaseServerController(LoggerFactory loggerFactory, RequestContext context, BuildServer server)
 {
     _logger = loggerFactory.CreateLogger <BaseServerController>();
     server.AddCommand("help", "show this message", RequestHelp);
     server.AddCommand("status", "current server status", RequestStatus);
     server.AddCommand("stop", "stop server", StopServer);
     server.AddCommand("abort", "stop current build immediately", AbortBuild);
     server.AddBuildHandler(StartBuild);
     Server  = server;
     Context = context;
 }