EasyUA Reference
Session Constructor(ITransportChannel,ApplicationConfiguration,ConfiguredEndpoint,X509Certificate2,EndpointDescriptionCollection,String)
See Also  Send Feedback
EasyUA Assembly > Advosol.EasyUA Namespace > Session Class > Session Constructor : Session Constructor(ITransportChannel,ApplicationConfiguration,ConfiguredEndpoint,X509Certificate2,EndpointDescriptionCollection,String)

channel
The channel used to communicate with the server.
configuration
The configuration for the client application.
endpoint
The endpoint use to initialize the channel.
clientCertificate
The certificate to use for the client.
availableEndpoints
Available endpoints.
sessionName
The name to assign to the session.

Glossary Item Box

Constructs a new instance of the session.

Syntax

Visual Basic (Usage)Copy Code
Dim channel As ITransportChannel
Dim configuration As ApplicationConfiguration
Dim endpoint As ConfiguredEndpoint
Dim clientCertificate As X509Certificate2
Dim availableEndpoints As EndpointDescriptionCollection
Dim sessionName As String
 
Dim instance As New Session(channel, configuration, endpoint, clientCertificate, availableEndpoints, sessionName)

Parameters

channel
The channel used to communicate with the server.
configuration
The configuration for the client application.
endpoint
The endpoint use to initialize the channel.
clientCertificate
The certificate to use for the client.
availableEndpoints
Available endpoints.
sessionName
The name to assign to the session.

Remarks

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.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.