/// <summary> /// Ctor of the object. /// </summary> public NodePublishingConfigurationModel(NodeId nodeId, string originalId, Guid endpointId, string endpointName, string endpointUrl, bool?useSecurity, int?opcPublishingInterval, int?opcSamplingInterval, string key, string displayName, int?heartbeatInterval, bool?skipFirst, OpcAuthenticationMode opcAuthenticationMode, EncryptedNetworkCredential encryptedAuthCredential, IotCentralItemPublishMode?iotCentralItemPublishMode) : this(originalId, endpointId, endpointName, endpointUrl, useSecurity, opcPublishingInterval, opcSamplingInterval, key, displayName, heartbeatInterval, skipFirst, opcAuthenticationMode, encryptedAuthCredential, iotCentralItemPublishMode) { NodeId = nodeId; }
/// <summary> /// Ctor of the object. /// </summary> public EventConfigurationModel( string endpointId, string endpointName, string endpointUrl, bool?useSecurity, OpcAuthenticationMode opcAuthenticationMode, EncryptedNetworkCredential encryptedAuthCredential, Guid id, string eventNotifierId, string key, List <SelectClause> selectClauses, List <WhereClauseElement> whereClause, IotCentralEventPublishMode?iotCentralEventPublishMode = null) { EndpointId = endpointId; EndpointName = endpointName; EndpointUrl = endpointUrl; UseSecurity = useSecurity ?? true; OpcAuthenticationMode = opcAuthenticationMode; EncryptedAuthCredential = encryptedAuthCredential; Id = id; EventNotifierId = eventNotifierId; Key = key; IotCentralEventPublishMode = iotCentralEventPublishMode; SelectClauses = selectClauses; WhereClause = whereClause; }
/// <summary> /// Ctor of the object. /// </summary> public NodePublishingConfigurationModel(NodeId nodeId, string originalId, string endpointUrl, bool?useSecurity, int?opcPublishingInterval, int?opcSamplingInterval, string displayName, int?heartbeatInterval, bool?skipFirst, OpcAuthenticationMode opcAuthenticationMode, EncryptedNetworkCredential encryptedAuthCredential) { NodeId = nodeId; ExpandedNodeId = null; OriginalId = originalId; EndpointUrl = endpointUrl; UseSecurity = useSecurity ?? true; DisplayName = displayName; OpcSamplingInterval = opcSamplingInterval; OpcPublishingInterval = opcPublishingInterval; HeartbeatInterval = heartbeatInterval; SkipFirst = skipFirst; OpcAuthenticationMode = opcAuthenticationMode; EncryptedAuthCredential = encryptedAuthCredential; }
/// <summary> /// Ctor of the object. /// </summary> public NodePublishingConfigurationModel(string id, Guid endpointId, string endpointName, string endpointUrl, bool?useSecurity, int?opcPublishingInterval, int?opcSamplingInterval, string key, string displayName, int?heartbeatInterval, bool?skipFirst, OpcAuthenticationMode opcAuthenticationMode, EncryptedNetworkCredential encryptedAuthCredential, IotCentralItemPublishMode?iotCentralItemPublishMode) { NodeId = null; ExpandedNodeId = null; Id = id; EndpointId = endpointId; EndpointName = endpointName; EndpointUrl = endpointUrl; UseSecurity = useSecurity ?? true; Key = key; DisplayName = displayName; OpcSamplingInterval = opcSamplingInterval; OpcPublishingInterval = opcPublishingInterval; HeartbeatInterval = heartbeatInterval; SkipFirst = skipFirst; IotCentralItemPublishMode = iotCentralItemPublishMode; OpcAuthenticationMode = opcAuthenticationMode; EncryptedAuthCredential = encryptedAuthCredential; }
public virtual IOpcSession CreateOpcSession(string endpointUrl, bool useSecurity, uint sessionTimeout, OpcAuthenticationMode opcAuthenticationMode, EncryptedNetworkCredential encryptedAuthCredential) { return(new OpcSession(endpointUrl, _nodePublishingConfiguration.Where(n => n.EndpointUrl == endpointUrl).First().UseSecurity, OpcSessionCreationTimeout, opcAuthenticationMode, encryptedAuthCredential)); }