Class Authentication.AuthenticationClient

Namespace: ArmoniK.Api.gRPC.V1.Auth
Assembly: ArmoniK.Api.Client.dll, ArmoniK.Api.Core.dll

Client for Authentication

public class Authentication.AuthenticationClient : ClientBase<Authentication.AuthenticationClient>

Inheritance

objectClientBaseClientBase<Authentication.AuthenticationClient>Authentication.AuthenticationClient

Inherited Members

ClientBase<Authentication.AuthenticationClient>.WithHost(string), ClientBase<Authentication.AuthenticationClient>.NewInstance(ClientBase.ClientBaseConfiguration), ClientBase.CallInvoker, object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()

Constructors

AuthenticationClient(ChannelBase)

Creates a new client for Authentication

public AuthenticationClient(ChannelBase channel)

Parameters

channel ChannelBase

The channel to use to make remote calls.

AuthenticationClient(CallInvoker)

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

public AuthenticationClient(CallInvoker callInvoker)

Parameters

callInvoker CallInvoker

The callInvoker to use to make remote calls.

AuthenticationClient()

Protected parameterless constructor to allow creation of test doubles.

protected AuthenticationClient()

AuthenticationClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

protected AuthenticationClient(ClientBase.ClientBaseConfiguration configuration)

Parameters

configuration ClientBase.ClientBaseConfiguration

The client configuration.

AuthenticationClient(ChannelBase)

Creates a new client for Authentication

public AuthenticationClient(ChannelBase channel)

Parameters

channel ChannelBase

The channel to use to make remote calls.

AuthenticationClient(CallInvoker)

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

public AuthenticationClient(CallInvoker callInvoker)

Parameters

callInvoker CallInvoker

The callInvoker to use to make remote calls.

AuthenticationClient()

Protected parameterless constructor to allow creation of test doubles.

protected AuthenticationClient()

AuthenticationClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

protected AuthenticationClient(ClientBase.ClientBaseConfiguration configuration)

Parameters

configuration ClientBase.ClientBaseConfiguration

The client configuration.

Methods

GetCurrentUser(GetCurrentUserRequest, Metadata, DateTime?, CancellationToken)

Get current user

public virtual GetCurrentUserResponse GetCurrentUser(GetCurrentUserRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

request GetCurrentUserRequest

The request to send to the server.

headers Metadata

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

deadline DateTime?

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns

GetCurrentUserResponse

The response received from the server.

GetCurrentUser(GetCurrentUserRequest, CallOptions)

Get current user

public virtual GetCurrentUserResponse GetCurrentUser(GetCurrentUserRequest request, CallOptions options)

Parameters

request GetCurrentUserRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns

GetCurrentUserResponse

The response received from the server.

GetCurrentUser(GetCurrentUserRequest, Metadata, DateTime?, CancellationToken)

Get current user

public virtual GetCurrentUserResponse GetCurrentUser(GetCurrentUserRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

request GetCurrentUserRequest

The request to send to the server.

headers Metadata

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

deadline DateTime?

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns

GetCurrentUserResponse

The response received from the server.

GetCurrentUser(GetCurrentUserRequest, CallOptions)

Get current user

public virtual GetCurrentUserResponse GetCurrentUser(GetCurrentUserRequest request, CallOptions options)

Parameters

request GetCurrentUserRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns

GetCurrentUserResponse

The response received from the server.

GetCurrentUserAsync(GetCurrentUserRequest, Metadata, DateTime?, CancellationToken)

Get current user

public virtual AsyncUnaryCall<GetCurrentUserResponse> GetCurrentUserAsync(GetCurrentUserRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

request GetCurrentUserRequest

The request to send to the server.

headers Metadata

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

deadline DateTime?

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns

AsyncUnaryCall<GetCurrentUserResponse>

The call object.

GetCurrentUserAsync(GetCurrentUserRequest, CallOptions)

Get current user

public virtual AsyncUnaryCall<GetCurrentUserResponse> GetCurrentUserAsync(GetCurrentUserRequest request, CallOptions options)

Parameters

request GetCurrentUserRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns

AsyncUnaryCall<GetCurrentUserResponse>

The call object.

GetCurrentUserAsync(GetCurrentUserRequest, Metadata, DateTime?, CancellationToken)

Get current user

public virtual AsyncUnaryCall<GetCurrentUserResponse> GetCurrentUserAsync(GetCurrentUserRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Parameters

request GetCurrentUserRequest

The request to send to the server.

headers Metadata

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

deadline DateTime?

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns

AsyncUnaryCall<GetCurrentUserResponse>

The call object.

GetCurrentUserAsync(GetCurrentUserRequest, CallOptions)

Get current user

public virtual AsyncUnaryCall<GetCurrentUserResponse> GetCurrentUserAsync(GetCurrentUserRequest request, CallOptions options)

Parameters

request GetCurrentUserRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns

AsyncUnaryCall<GetCurrentUserResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

protected override Authentication.AuthenticationClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Parameters

configuration ClientBase.ClientBaseConfiguration

Returns

Authentication.AuthenticationClient

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

protected override Authentication.AuthenticationClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Parameters

configuration ClientBase.ClientBaseConfiguration

Returns

Authentication.AuthenticationClient