using Opc.Ua; namespace ZB.MOM.WW.OtOpcUa.Client.Shared.Adapters; /// /// Creates OPC UA sessions from a configured endpoint. /// internal interface ISessionFactory { /// /// Creates a session to the given endpoint. /// /// The application configuration. /// The configured endpoint. /// The session name. /// Session timeout in milliseconds. /// The user identity. /// /// The SDK's checkDomain: require the server certificate to name the endpoint URL's host (#816). /// /// Cancellation token. /// A session adapter wrapping the created session. Task CreateSessionAsync( ApplicationConfiguration config, EndpointDescription endpoint, string sessionName, uint sessionTimeoutMs, UserIdentity identity, bool validateServerHostName, CancellationToken ct = default); }