public async Task EndRequest(IEndRequestModel model) { try { var request = await appFactory.Requests().Request(model.RequestKey); if (request.ID.IsNotValid()) { request = await startPlaceholderRequest(model.RequestKey); } await request.End(model.TimeEnded); } catch (Exception ex) { await handleError(ex); } }
public Task EndRequest(IEndRequestModel model) => client.PermanentLog.EndRequest(new EndRequestModel(model));
public EndRequestModel(IEndRequestModel source) { RequestKey = source.RequestKey; TimeEnded = source.TimeEnded; }