Class Sessions
Namespace: ArmoniK.Api.Mock.Services
Assembly: ArmoniK.Api.Mock.dll
public class Sessions : Sessions.SessionsBase
Inheritance
Inherited Members
Sessions.SessionsBase.ListSessions(ListSessionsRequest, ServerCallContext), Sessions.SessionsBase.GetSession(GetSessionRequest, ServerCallContext), Sessions.SessionsBase.CancelSession(CancelSessionRequest, ServerCallContext), Sessions.SessionsBase.CreateSession(CreateSessionRequest, ServerCallContext), Sessions.SessionsBase.PauseSession(PauseSessionRequest, ServerCallContext), Sessions.SessionsBase.ResumeSession(ResumeSessionRequest, ServerCallContext), Sessions.SessionsBase.CloseSession(CloseSessionRequest, ServerCallContext), Sessions.SessionsBase.PurgeSession(PurgeSessionRequest, ServerCallContext), Sessions.SessionsBase.DeleteSession(DeleteSessionRequest, ServerCallContext), Sessions.SessionsBase.StopSubmission(StopSubmissionRequest, ServerCallContext), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
CancelSession(CancelSessionRequest, ServerCallContext)
Cancel a session by its id.
public override Task<CancelSessionResponse> CancelSession(CancelSessionRequest request, ServerCallContext context)
Parameters
request CancelSessionRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Task<CancelSessionResponse>
The response to send back to the client (wrapped by a task).
CloseSession(CloseSessionRequest, ServerCallContext)
Close a session by its id..
public override Task<CloseSessionResponse> CloseSession(CloseSessionRequest request, ServerCallContext context)
Parameters
request CloseSessionRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Task<CloseSessionResponse>
The response to send back to the client (wrapped by a task).
CreateSession(CreateSessionRequest, ServerCallContext)
Create a session
public override Task<CreateSessionReply> CreateSession(CreateSessionRequest request, ServerCallContext context)
Parameters
request CreateSessionRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Task<CreateSessionReply>
The response to send back to the client (wrapped by a task).
DeleteSession(DeleteSessionRequest, ServerCallContext)
Delete a session by its id. Removes metadata from Results, Sessions and Tasks associated to the session.
public override Task<DeleteSessionResponse> DeleteSession(DeleteSessionRequest request, ServerCallContext context)
Parameters
request DeleteSessionRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Task<DeleteSessionResponse>
The response to send back to the client (wrapped by a task).
GetSession(GetSessionRequest, ServerCallContext)
Get a session by its id.
public override Task<GetSessionResponse> GetSession(GetSessionRequest request, ServerCallContext context)
Parameters
request GetSessionRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Task<GetSessionResponse>
The response to send back to the client (wrapped by a task).
ListSessions(ListSessionsRequest, ServerCallContext)
Get a sessions list using pagination, filters and sorting.
public override Task<ListSessionsResponse> ListSessions(ListSessionsRequest request, ServerCallContext context)
Parameters
request ListSessionsRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Task<ListSessionsResponse>
The response to send back to the client (wrapped by a task).
PauseSession(PauseSessionRequest, ServerCallContext)
Pause a session by its id.
public override Task<PauseSessionResponse> PauseSession(PauseSessionRequest request, ServerCallContext context)
Parameters
request PauseSessionRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Task<PauseSessionResponse>
The response to send back to the client (wrapped by a task).
PurgeSession(PurgeSessionRequest, ServerCallContext)
Purge a session by its id. Removes Results data.
public override Task<PurgeSessionResponse> PurgeSession(PurgeSessionRequest request, ServerCallContext context)
Parameters
request PurgeSessionRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Task<PurgeSessionResponse>
The response to send back to the client (wrapped by a task).
ResumeSession(ResumeSessionRequest, ServerCallContext)
Resume a paused session by its id.
public override Task<ResumeSessionResponse> ResumeSession(ResumeSessionRequest request, ServerCallContext context)
Parameters
request ResumeSessionRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Task<ResumeSessionResponse>
The response to send back to the client (wrapped by a task).
StopSubmission(StopSubmissionRequest, ServerCallContext)
Stops clients and/or workers from submitting new tasks in the given session.
public override Task<StopSubmissionResponse> StopSubmission(StopSubmissionRequest request, ServerCallContext context)
Parameters
request StopSubmissionRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Task<StopSubmissionResponse>
The response to send back to the client (wrapped by a task).