LicenseServer.LicenseServerClient

Namespace: Babel.Licensing.Service Assembly: Babel.Licensing.dll

Client for LicenseServer

public class LicenseServer.LicenseServerClient : ClientBase<LicenseServer.LicenseServerClient>

Inheritance

object ← ClientBase ← ClientBase<LicenseServer.LicenseServerClient> ← LicenseServer.LicenseServerClient

Inherited Members

ClientBase<LicenseServer.LicenseServerClient>.WithHost(string), ClientBase<LicenseServer.LicenseServerClient>.NewInstance(ClientBase.ClientBaseConfiguration), ClientBase.CallInvoker, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

LicenseServerClient(ChannelBase)

Creates a new client for LicenseServer

public LicenseServerClient(ChannelBase channel)

Parameters

Name
Description

channel ChannelBase

The channel to use to make remote calls.

LicenseServerClient(CallInvoker)

Creates a new client for LicenseServer that uses a custom CallInvoker.

public LicenseServerClient(CallInvoker callInvoker)

Parameters

Name
Description

callInvoker CallInvoker

The callInvoker to use to make remote calls.

LicenseServerClient()

Protected parameterless constructor to allow creation of test doubles.

protected LicenseServerClient()

LicenseServerClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

protected LicenseServerClient(ClientBase.ClientBaseConfiguration configuration)

Parameters

Name
Description

configuration ClientBase.ClientBaseConfiguration

The client configuration.

Methods

ActivateLicense(ActivateLicenseRequest, Metadata, DateTime?, CancellationToken)

License Activation

public virtual ActivateLicenseResponse ActivateLicense(ActivateLicenseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

An optional deadline for the call. The call will be cancelled if deadline is hit.

An optional token for canceling the call.

Returns

Name
Description

The response received from the server.

ActivateLicense(ActivateLicenseRequest, CallOptions)

License Activation

public virtual ActivateLicenseResponse ActivateLicense(ActivateLicenseRequest request, CallOptions options)

Parameters

Name
Description

The request to send to the server.

options CallOptions

The options for the call.

Returns

Name
Description

The response received from the server.

ActivateLicenseAsync(ActivateLicenseRequest, Metadata, DateTime?, CancellationToken)

License Activation

public virtual AsyncUnaryCall<ActivateLicenseResponse> ActivateLicenseAsync(ActivateLicenseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

An optional deadline for the call. The call will be cancelled if deadline is hit.

An optional token for canceling the call.

Returns

Name
Description

The call object.

ActivateLicenseAsync(ActivateLicenseRequest, CallOptions)

License Activation

public virtual AsyncUnaryCall<ActivateLicenseResponse> ActivateLicenseAsync(ActivateLicenseRequest request, CallOptions options)

Parameters

Name
Description

The request to send to the server.

options CallOptions

The options for the call.

Returns

Name
Description

The call object.

DeactivateLicense(DeactivateLicenseRequest, Metadata, DateTime?, CancellationToken)

public virtual DeactivateLicenseResponse DeactivateLicense(DeactivateLicenseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

headers Metadata

Returns

Name
Description

DeactivateLicense(DeactivateLicenseRequest, CallOptions)

public virtual DeactivateLicenseResponse DeactivateLicense(DeactivateLicenseRequest request, CallOptions options)

Parameters

Name
Description

options CallOptions

Returns

Name
Description

DeactivateLicenseAsync(DeactivateLicenseRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<DeactivateLicenseResponse> DeactivateLicenseAsync(DeactivateLicenseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

headers Metadata

Returns

Name
Description

DeactivateLicenseAsync(DeactivateLicenseRequest, CallOptions)

public virtual AsyncUnaryCall<DeactivateLicenseResponse> DeactivateLicenseAsync(DeactivateLicenseRequest request, CallOptions options)

Parameters

Name
Description

options CallOptions

Returns

Name
Description

GetLicenseInfo(LicenseInfoRequest, Metadata, DateTime?, CancellationToken)

License Information

public virtual LicenseInfoResponse GetLicenseInfo(LicenseInfoRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

An optional deadline for the call. The call will be cancelled if deadline is hit.

An optional token for canceling the call.

Returns

Name
Description

The response received from the server.

GetLicenseInfo(LicenseInfoRequest, CallOptions)

License Information

public virtual LicenseInfoResponse GetLicenseInfo(LicenseInfoRequest request, CallOptions options)

Parameters

Name
Description

The request to send to the server.

options CallOptions

The options for the call.

Returns

Name
Description

The response received from the server.

GetLicenseInfoAsync(LicenseInfoRequest, Metadata, DateTime?, CancellationToken)

License Information

public virtual AsyncUnaryCall<LicenseInfoResponse> GetLicenseInfoAsync(LicenseInfoRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

An optional deadline for the call. The call will be cancelled if deadline is hit.

An optional token for canceling the call.

Returns

Name
Description

The call object.

GetLicenseInfoAsync(LicenseInfoRequest, CallOptions)

License Information

public virtual AsyncUnaryCall<LicenseInfoResponse> GetLicenseInfoAsync(LicenseInfoRequest request, CallOptions options)

Parameters

Name
Description

The request to send to the server.

options CallOptions

The options for the call.

Returns

Name
Description

The call object.

Heartbeat(HeartbeatRequest, Metadata, DateTime?, CancellationToken)

public virtual HeartbeatResponse Heartbeat(HeartbeatRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

headers Metadata

Returns

Name
Description

Heartbeat(HeartbeatRequest, CallOptions)

public virtual HeartbeatResponse Heartbeat(HeartbeatRequest request, CallOptions options)

Parameters

Name
Description

options CallOptions

Returns

Name
Description

HeartbeatAsync(HeartbeatRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<HeartbeatResponse> HeartbeatAsync(HeartbeatRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

headers Metadata

Returns

Name
Description

HeartbeatAsync(HeartbeatRequest, CallOptions)

public virtual AsyncUnaryCall<HeartbeatResponse> HeartbeatAsync(HeartbeatRequest request, CallOptions options)

Parameters

Name
Description

options CallOptions

Returns

Name
Description

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

protected override LicenseServer.LicenseServerClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Parameters

Name
Description

configuration ClientBase.ClientBaseConfiguration

Returns

Name
Description

ReleaseLicense(ReleaseLicenseRequest, Metadata, DateTime?, CancellationToken)

public virtual ReleaseLicenseResponse ReleaseLicense(ReleaseLicenseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

headers Metadata

Returns

Name
Description

ReleaseLicense(ReleaseLicenseRequest, CallOptions)

public virtual ReleaseLicenseResponse ReleaseLicense(ReleaseLicenseRequest request, CallOptions options)

Parameters

Name
Description

options CallOptions

Returns

Name
Description

ReleaseLicenseAsync(ReleaseLicenseRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ReleaseLicenseResponse> ReleaseLicenseAsync(ReleaseLicenseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

headers Metadata

Returns

Name
Description

ReleaseLicenseAsync(ReleaseLicenseRequest, CallOptions)

public virtual AsyncUnaryCall<ReleaseLicenseResponse> ReleaseLicenseAsync(ReleaseLicenseRequest request, CallOptions options)

Parameters

Name
Description

options CallOptions

Returns

Name
Description

RequestLicense(RequestLicenseRequest, Metadata, DateTime?, CancellationToken)

Floating License

public virtual RequestLicenseResponse RequestLicense(RequestLicenseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

An optional deadline for the call. The call will be cancelled if deadline is hit.

An optional token for canceling the call.

Returns

Name
Description

The response received from the server.

RequestLicense(RequestLicenseRequest, CallOptions)

Floating License

public virtual RequestLicenseResponse RequestLicense(RequestLicenseRequest request, CallOptions options)

Parameters

Name
Description

The request to send to the server.

options CallOptions

The options for the call.

Returns

Name
Description

The response received from the server.

RequestLicenseAsync(RequestLicenseRequest, Metadata, DateTime?, CancellationToken)

Floating License

public virtual AsyncUnaryCall<RequestLicenseResponse> RequestLicenseAsync(RequestLicenseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

An optional deadline for the call. The call will be cancelled if deadline is hit.

An optional token for canceling the call.

Returns

Name
Description

The call object.

RequestLicenseAsync(RequestLicenseRequest, CallOptions)

Floating License

public virtual AsyncUnaryCall<RequestLicenseResponse> RequestLicenseAsync(RequestLicenseRequest request, CallOptions options)

Parameters

Name
Description

The request to send to the server.

options CallOptions

The options for the call.

Returns

Name
Description

The call object.

ValidateLicense(ValidateLicenseRequest, Metadata, DateTime?, CancellationToken)

License Validation

public virtual ValidateLicenseResponse ValidateLicense(ValidateLicenseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

An optional deadline for the call. The call will be cancelled if deadline is hit.

An optional token for canceling the call.

Returns

Name
Description

The response received from the server.

ValidateLicense(ValidateLicenseRequest, CallOptions)

License Validation

public virtual ValidateLicenseResponse ValidateLicense(ValidateLicenseRequest request, CallOptions options)

Parameters

Name
Description

The request to send to the server.

options CallOptions

The options for the call.

Returns

Name
Description

The response received from the server.

ValidateLicenseAsync(ValidateLicenseRequest, Metadata, DateTime?, CancellationToken)

License Validation

public virtual AsyncUnaryCall<ValidateLicenseResponse> ValidateLicenseAsync(ValidateLicenseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

Name
Description

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

An optional deadline for the call. The call will be cancelled if deadline is hit.

An optional token for canceling the call.

Returns

Name
Description

The call object.

ValidateLicenseAsync(ValidateLicenseRequest, CallOptions)

License Validation

public virtual AsyncUnaryCall<ValidateLicenseResponse> ValidateLicenseAsync(ValidateLicenseRequest request, CallOptions options)

Parameters

Name
Description

The request to send to the server.

options CallOptions

The options for the call.

Returns

Name
Description

The call object.

Last updated