public async Task <SessionStateModel <TModel> > GetAsync(Guid compositeSessionId) { var sessionStateModel = await documentService.GetByIdAsync(compositeSessionId, Constants.DefaultPartitonKey).ConfigureAwait(false); if (sessionStateModel == null) { sessionStateModel = new SessionStateModel <TModel> { Id = compositeSessionId, }; } return(sessionStateModel); }
public async Task <HttpStatusCode> SaveAsync(SessionStateModel <TModel> sessionStateModel) { return(await documentService.UpsertAsync(sessionStateModel).ConfigureAwait(false)); }