Show / Hide Table of Contents

Constructor LicenseClient

| Improve this Doc View Source

LicenseClient(String)

Initializes a new instance of the LicenseClient class using specified public key XML string and the default target endpoint from the application configuration file.

Declaration
public LicenseClient(string publicKeyXml)
Parameters
Type Name Description
System.String publicKeyXml

The public key XML string.

Remarks

The LicenseClient.PublicKeyXmlFromAssembly method returns the public key XML string for specified assembly.

Exceptions
Type Condition
System.ArgumentNullException

publicKeyXml is null or empty string.

| Improve this Doc View Source

LicenseClient(String, String)

Initializes a new instance of the LicenseClient class using specified public key XML string and the configuration information specified in the application configuration file by endpointConfigurationName.

Declaration
public LicenseClient(string publicKeyXml, string endpointConfigurationName)
Parameters
Type Name Description
System.String publicKeyXml

The public key XML string.

System.String endpointConfigurationName

The name of the endpoint in the application configuration file.

Remarks

The LicenseClient.PublicKeyXmlFromAssembly method returns the public key XML string for specified assembly.

Exceptions
Type Condition
System.ArgumentNullException

publicKeyXml is null or empty string.

| Improve this Doc View Source

LicenseClient(String, Binding, EndpointAddress)

Initializes a new instance of the LicenseClient class using the specified public key XML string, binding and target address.

Declaration
public LicenseClient(string publicKeyXml, Binding binding, EndpointAddress remoteAddress)
Parameters
Type Name Description
System.String publicKeyXml

The public key XML string.

System.ServiceModel.Channels.Binding binding

The binding with which to make calls to the service.

System.ServiceModel.EndpointAddress remoteAddress

The address of the service endpoint.

Remarks

The LicenseClient.PublicKeyXmlFromAssembly method returns the public key XML string for specified assembly.

Exceptions
Type Condition
System.ArgumentNullException

publicKeyXml is null or empty string.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest