/// <summary> /// Create controller with service /// </summary> /// <param name="supervisor"></param> /// <param name="activator"></param> /// <param name="nodes"></param> /// <param name="historian"></param> /// <param name="browse"></param> public SupervisorMethodsController(ISupervisorServices supervisor, IActivationServices <string> activator, INodeServices <EndpointModel> nodes, IHistoricAccessServices <EndpointModel> historian, IBrowseServices <EndpointModel> browse) { _supervisor = supervisor ?? throw new ArgumentNullException(nameof(supervisor)); _browse = browse ?? throw new ArgumentNullException(nameof(browse)); _historian = historian ?? throw new ArgumentNullException(nameof(historian)); _nodes = nodes ?? throw new ArgumentNullException(nameof(nodes)); _activator = activator ?? throw new ArgumentNullException(nameof(activator)); }
/// <summary> /// Create controller with service /// </summary> /// <param name="supervisor"></param> /// <param name="browse"></param> /// <param name="discover"></param> /// <param name="activator"></param> /// <param name="nodes"></param> /// <param name="historian"></param> /// <param name="publisher"></param> /// <param name="logger"></param> public SupervisorMethodsController(ISupervisorServices supervisor, IDiscoveryServices discover, IActivationServices <string> activator, INodeServices <EndpointModel> nodes, IHistoricAccessServices <EndpointModel> historian, IBrowseServices <EndpointModel> browse, IPublishServices <EndpointModel> publisher, ILogger logger) { _supervisor = supervisor ?? throw new ArgumentNullException(nameof(supervisor)); _browse = browse ?? throw new ArgumentNullException(nameof(browse)); _historian = historian ?? throw new ArgumentNullException(nameof(historian)); _nodes = nodes ?? throw new ArgumentNullException(nameof(nodes)); _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher)); _discover = discover ?? throw new ArgumentNullException(nameof(discover)); _activator = activator ?? throw new ArgumentNullException(nameof(activator)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }