public Task PingBroker2(CloudQueueCmdDto cmdObj) { cmdObj.GetUnpacker().UnpackString(out var id); var res = this.instance.PingBroker2(id); return(this.CreateAndSendResponse(cmdObj.RequestId, cmdObj.CmdName, res)); }
public Task CreateDurable(CloudQueueCmdDto cmdObj) { cmdObj.GetUnpacker().Unpack <SessionStartInfoContract>(out var info).UnpackString(out var id); var res = this.instance.CreateDurable(info, id); return(this.CreateAndSendResponse(cmdObj.RequestId, cmdObj.CmdName, res)); }
public Task PullResponses(CloudQueueCmdDto cmdObj) { cmdObj.GetUnpacker().UnpackString(out var action).Unpack <long>(out var position).UnpackInt(out int count).UnpackString(out string clientId); var res = this.instance.PullResponses(action, (GetResponsePosition)position, count, clientId); return(this.CreateAndSendResponse(cmdObj, res)); }
public Task GetRequestsCount(CloudQueueCmdDto cmdObj) { cmdObj.GetUnpacker().UnpackString(out var clientId); var res = this.instance.GetRequestsCount(clientId); return(this.CreateAndSendResponse(cmdObj, res)); }
public Task GetResponsesAQ(CloudQueueCmdDto cmdObj) { cmdObj.GetUnpacker() .UnpackString(out string action) .UnpackString(out string clientData) .Unpack <long>(out var resetToBegin) .UnpackInt(out int count) .UnpackString(out string clientId) .UnpackInt(out var sessionHash); this.instance.GetResponsesAQ(action, clientData, (GetResponsePosition)resetToBegin, count, clientId, sessionHash, out var azureResponseQueueUri, out var azureResponseBlobUri); var res = (azureResponseQueueUri, azureResponseBlobUri); return(this.CreateAndSendResponse(cmdObj, res)); }
public Task Close(CloudQueueCmdDto cmdObj) { cmdObj.GetUnpacker().UnpackString(out var id); this.instance.Close(id); return(this.CreateAndSendResponse(cmdObj.RequestId, cmdObj.CmdName, string.Empty)); }
public Task Purge(CloudQueueCmdDto cmdObj) { cmdObj.GetUnpacker().UnpackString(out var clientid); this.instance.Purge(clientid); return(this.CreateAndSendEmptyResponse(cmdObj)); }
public Task EndRequests(CloudQueueCmdDto cmdObj) { cmdObj.GetUnpacker().UnpackInt(out var count).UnpackString(out string clientid).UnpackInt(out int batchId).UnpackInt(out int timeoutThrottlingMs).UnpackInt(out int timeoutEOMMs); this.instance.EndRequests(count, clientid, batchId, timeoutThrottlingMs, timeoutEOMMs); return(this.CreateAndSendEmptyResponse(cmdObj)); }