HeartBeatOperations

Handles the operations of a heartbeat service.

Inherits: RestOperations

Description

The HeartBeatOperations class is used to handle the operations of a heartbeat service.

Instance methods

heartbeat

Creates a heartbeat. Sends request with the current time in UTC.

private Task HeartbeatAsync(HttpRequest httpRequest, HttpResponse response, ClaimsPrincipal user)

  • request: HttpRequest - HTTP request.
  • response: HttpResponse - HTTP response.
  • user: ClaimsPrincipal - to identify current user.

GetHeartbeatOperation

Gets the heartbeat operation

public Func<HttpRequest, HttpResponse, ClaimsPrincipal, Task> GetHeartbeatOperation()

  • returns: Func<HttpRequest, HttpResponse, ClaimsPrincipal, Task> - heartbeat operation