public ServiceCommands(ICompositeRoot compositeRoot)
     : base("Service")
 {
     RegisterCommand(new ServiceStatusCommand());
     RegisterCommand(new ServiceStopCommand());
     RegisterCommand(new ServiceStartCommand());
     RegisterCommand(new ServiceRestartCommand());
 }
Exemple #2
0
 public ServiceCommands(ICompositeRoot compositeRoot)
     : base("Service")
 {
     RegisterCommand(new ServiceStatusCommand());
     RegisterCommand(new ServiceStopCommand());
     RegisterCommand(new ServiceStartCommand());
     RegisterCommand(new ServiceRestartCommand());
 }
 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));
 }
 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));
 }
 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));
 }
Exemple #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));
 }