示例#1
0
 public ServiceCommands(ICompositeRoot compositeRoot)
     : base("Service")
 {
     RegisterCommand(new ServiceStatusCommand());
     RegisterCommand(new ServiceStopCommand());
     RegisterCommand(new ServiceStartCommand());
     RegisterCommand(new ServiceRestartCommand());
 }
示例#2
0
 public ServiceCommands(ICompositeRoot compositeRoot)
     : base("Service")
 {
     RegisterCommand(new ServiceStatusCommand());
     RegisterCommand(new ServiceStopCommand());
     RegisterCommand(new ServiceStartCommand());
     RegisterCommand(new ServiceRestartCommand());
 }
示例#3
0
 public ConfigCommands(ICompositeRoot compositeRoot)
     : base("Config")
 {
     RegisterCommand(new ConfigShowCommand(compositeRoot.InfluxDbAgentLoader, compositeRoot.ConfigBusiness));
     RegisterCommand(new ConfigAutoCommand(compositeRoot.InfluxDbAgentLoader, compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new ConfigServerCommand(compositeRoot.InfluxDbAgentLoader, compositeRoot.ConfigBusiness));
     RegisterCommand(new ConfigDatabaseCommand(compositeRoot.InfluxDbAgentLoader, compositeRoot.ConfigBusiness));
     RegisterCommand(new ConfigureApplicationCommand(compositeRoot.InfluxDbAgentLoader, compositeRoot.ConfigBusiness));
     RegisterCommand(new ConfigListCommand(compositeRoot.ConfigBusiness));
 }
示例#4
0
 public ConfigCommands(ICompositeRoot compositeRoot)
     : base("Config")
 {
     RegisterCommand(new ConfigListCommand(compositeRoot.ConfigBusiness));
     RegisterCommand(new ConfigAutoCommand(compositeRoot.InfluxDbAgentLoader, compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new ConfigServerCommand(compositeRoot.InfluxDbAgentLoader, compositeRoot.ConfigBusiness));
     RegisterCommand(new ConfigShowCommand(compositeRoot.InfluxDbAgentLoader, compositeRoot.ConfigBusiness));
     RegisterCommand(new ConfigDatabaseCommand(compositeRoot.InfluxDbAgentLoader, compositeRoot.ConfigBusiness));
     RegisterCommand(new ConfigureApplicationCommand(compositeRoot.InfluxDbAgentLoader, compositeRoot.ConfigBusiness));
 }
 public CounterCommands(ICompositeRoot compositeRoot)
     : base("Counter")
 {
     RegisterCommand(new CounterListCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new CounterReadCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new CounterCollectCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness, compositeRoot.SendBusiness, compositeRoot.TagLoader));
     RegisterCommand(new CounterInitiateCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new CounterCreateCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new CounterStartCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness, compositeRoot.SendBusiness, compositeRoot.TagLoader));
 }
示例#6
0
 public CounterCommands(ICompositeRoot compositeRoot)
     : base("Counter")
 {
     RegisterCommand(new CounterListCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new CounterReadCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new CounterRawCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new CounterCollectCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness, compositeRoot.PublisherBusiness, compositeRoot.SendBusiness, compositeRoot.TagLoader));
     RegisterCommand(new CounterInitiateCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new CounterCreateCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness));
     RegisterCommand(new CounterStartCommand(compositeRoot.ConfigBusiness, compositeRoot.CounterBusiness, compositeRoot.PublisherBusiness, compositeRoot.SendBusiness, compositeRoot.TagLoader));
 }
示例#7
0
 public ServiceCommands(ICompositeRoot compositeRoot)
     : base("Service")
 {
     RegisterCommand(new ServiceStatusCommand());
     RegisterCommand(new ServiceStopCommand());
     RegisterCommand(new ServiceStartCommand());
     RegisterCommand(new ServiceRestartCommand());
     RegisterCommand(new ServiceConnectCommand(compositeRoot.SocketClient));
     RegisterCommand(new ServiceDisconnectCommand(compositeRoot.SocketClient));
     RegisterCommand(new ServiceSendCommand(compositeRoot.SocketClient));
     //RegisterCommand(new ServiceStartListeningCommand(compositeRoot.SocketClient));
     //RegisterCommand(new ServiceStopListeningCommand(compositeRoot.SocketClient));
 }