コード例 #1
0
ファイル: UserRepository.cs プロジェクト: fazueu/cloudscribe
 /// <summary>
 /// Deletes an instance of UserLogin. Returns true on success.
 /// </summary>
 /// <param name="loginProvider"> loginProvider </param>
 /// <param name="providerKey"> providerKey </param>
 /// <param name="userId"> userId </param>
 /// <returns>bool</returns>
 public async Task <bool> DeleteLogin(
     int siteId,
     string loginProvider,
     string providerKey,
     string userId)
 {
     return(await dbUserLogins.Delete(
                siteId,
                loginProvider,
                providerKey,
                userId));
 }
コード例 #2
0
 /// <summary>
 /// Deletes an instance of UserLogin. Returns true on success.
 /// </summary>
 /// <param name="loginProvider"> loginProvider </param>
 /// <param name="providerKey"> providerKey </param>
 /// <param name="userId"> userId </param>
 /// <returns>bool</returns>
 public async Task <bool> DeleteLogin(
     int siteId,
     string loginProvider,
     string providerKey,
     string userId,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     cancellationToken.ThrowIfCancellationRequested();
     return(await dbUserLogins.Delete(
                siteId,
                loginProvider,
                providerKey,
                userId));
 }