Esempio n. 1
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)
 {
     return(dbUserLogins.Delete(
                siteId,
                loginProvider,
                providerKey,
                userId));
 }
Esempio n. 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(dbUserLogins.Delete(
                       siteId,
                       loginProvider,
                       providerKey,
                       userId));
        }