コード例 #1
0
        public Task DeleteUserProfileAsync(int userId, int profileId, CancellationToken token = default)
        {
            userId.EnsureGreaterThenZero();
            profileId.EnsureGreaterThenZero();

            return(Task.Run(async() =>
            {
                _cachingService.ClearRegion(CacheRegions.UserProfiles);

                await _graphQLService.DeleteUserProfileAsync(userId, profileId, token).ConfigureAwait(false);
            }, token));
        }