Table of Contents

Class AuthenticateWorkerStatus

Namespace
Acuit.Pinpoint.Services.Entities
Assembly
Acuit.Pinpoint.Services.Entities.dll

Status information about a worker authentication.

[DataContract]
public class AuthenticateWorkerStatus
Inheritance
AuthenticateWorkerStatus
Inherited Members

Properties

Authenticated

Gets whether the worker was authenticated.

[DataMember]
public bool Authenticated { get; }

Property Value

bool

Unauthenticated

Gets a singleton instance of the AuthenticateWorkerStatus class representing an unauthenticated status.

public static AuthenticateWorkerStatus Unauthenticated { get; }

Property Value

AuthenticateWorkerStatus

Worker

Gets the worker, null if the worker was not authenticated.

[DataMember]
public Worker? Worker { get; }

Property Value

Worker

Methods

CreateAuthenticated(Worker)

Creates an instance of the AuthenticateWorkerStatus class representing an authenticated status.

public static AuthenticateWorkerStatus CreateAuthenticated(Worker worker)

Parameters

worker Worker

Returns

AuthenticateWorkerStatus

Exceptions

ArgumentNullException

worker is null.