/// <summary>
 /// Create controller with service
 /// </summary>
 /// <param name="browse"></param>
 /// <param name="nodes"></param>
 /// <param name="historian"></param>
 /// <param name="twin"></param>
 public EndpointMethodsController(IBrowseServices <EndpointModel> browse,
                                  INodeServices <EndpointModel> nodes, IHistoricAccessServices <EndpointModel> historian,
                                  ITwinServices twin)
 {
     _browse    = browse ?? throw new ArgumentNullException(nameof(browse));
     _historian = historian ?? throw new ArgumentNullException(nameof(historian));
     _nodes     = nodes ?? throw new ArgumentNullException(nameof(nodes));
     _twin      = twin ?? throw new ArgumentNullException(nameof(twin));
 }
 /// <summary>
 /// Create controller with service
 /// </summary>
 /// <param name="nodes"></param>
 /// <param name="publisher"></param>
 /// <param name="twin"></param>
 public NodeSettingsController(
     INodeServices <EndpointModel> nodes, IPublishServices <EndpointModel> publisher,
     ITwinServices twin)
 {
     _nodes     = nodes ?? throw new ArgumentNullException(nameof(nodes));
     _twin      = twin ?? throw new ArgumentNullException(nameof(twin));
     _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher));
     _action    = new Dictionary <string, JToken>();
 }
예제 #3
0
 /// <summary>
 /// Create controller with service
 /// </summary>
 /// <param name="browse"></param>
 /// <param name="nodes"></param>
 /// <param name="historian"></param>
 /// <param name="publisher"></param>
 /// <param name="export"></param>
 /// <param name="twin"></param>
 public EndpointMethodsController(IBrowseServices <EndpointModel> browse,
                                  INodeServices <EndpointModel> nodes, IHistoricAccessServices <EndpointModel> historian,
                                  IPublishServices <EndpointModel> publisher, IUploadServices <EndpointModel> export,
                                  ITwinServices twin)
 {
     _browse    = browse ?? throw new ArgumentNullException(nameof(browse));
     _historian = historian ?? throw new ArgumentNullException(nameof(historian));
     _nodes     = nodes ?? throw new ArgumentNullException(nameof(nodes));
     _twin      = twin ?? throw new ArgumentNullException(nameof(twin));
     _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher));
     _export    = export ?? throw new ArgumentNullException(nameof(export));
 }