#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously public async static Task RemoveUserState(this RequestState state) #pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously { _requestStateCache.Remove(state.UserId, out var item); }
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously public async static Task UpdateUserState(this RequestState state) #pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously { //Now not required as the state gets automatically updated. }