Opc.Ua.Client.Session.Session C# (CSharp) Method

Session() public method

Constructs a new instance of the session.
The application configuration is used to look up the certificate if none is provided. The clientCertificate must have the private key. This will require that the certificate be loaded from a certicate store. Converting a DER encoded blob to a X509Certificate2 will not include a private key.
public Session ( ITransportChannel channel, ApplicationConfiguration configuration, ConfiguredEndpoint endpoint, X509Certificate2 clientCertificate ) : System
channel ITransportChannel The channel used to communicate with the server.
configuration ApplicationConfiguration The configuration for the client application.
endpoint ConfiguredEndpoint The endpoint use to initialize the channel.
clientCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 The certificate to use for the client.
return System
        public Session(
            ITransportChannel        channel, 
            ApplicationConfiguration configuration,
            ConfiguredEndpoint       endpoint,
            X509Certificate2         clientCertificate)
        :
            base(channel)
        {
            Initialize(channel, configuration, endpoint, clientCertificate); 
        }

Same methods

Session::Session ( ISessionChannel channel, ApplicationConfiguration configuration, ConfiguredEndpoint endpoint ) : System
Session::Session ( ITransportChannel channel, ApplicationConfiguration configuration, ConfiguredEndpoint endpoint, X509Certificate2 clientCertificate, EndpointDescriptionCollection availableEndpoints ) : System
Session::Session ( ITransportChannel channel, Session template, bool copyEventHandlers ) : System