public async Task <UserSession> UpsertUserSessionAsync(UserSession userSession)
        {
            var container = await _cosmosInfrastructure.CreateContainer();

            return(await _policies.ResiliencePolicy.ExecuteAsync(() => container.UpsertItemAsync(userSession)));
        }
        public async Task CreateQueueMessageAsync(QueueMessage msg)
        {
            var container = await _cosmosInfrastructure.CreateContainer();

            await _policies.ResiliencePolicy.ExecuteAsync(() => container.CreateItemAsync(msg));
        }