C# Class IsThereAnyNews.DataAccess.Implementation.SocialLoginRepository

Inheritance: ISocialLoginRepository
Show file Open project: jstadnicki/isthereanynews

Public Methods

Method Description
CreateNewSociaLogin ( string identifierValue, AuthenticationTypeProvider authenticationTypeProvider, long newUserId ) : void
FindSocialLogin ( string socialLoginId, AuthenticationTypeProvider provider ) : SocialLogin
GetUserId ( string currentUserSocialLoginId, AuthenticationTypeProvider currentUserLoginProvider ) : long
SaveToDatabase ( SocialLogin socialLogin ) : void
SocialLoginRepository ( ItanDatabaseContext itanDatabaseContext ) : System.Linq
UserIsRegistered ( AuthenticationTypeProvider authenticationTypeProvider, string userId ) : bool

Method Details

CreateNewSociaLogin() public method

public CreateNewSociaLogin ( string identifierValue, AuthenticationTypeProvider authenticationTypeProvider, long newUserId ) : void
identifierValue string
authenticationTypeProvider AuthenticationTypeProvider
newUserId long
return void

FindSocialLogin() public method

public FindSocialLogin ( string socialLoginId, AuthenticationTypeProvider provider ) : SocialLogin
socialLoginId string
provider AuthenticationTypeProvider
return IsThereAnyNews.EntityFramework.Models.Entities.SocialLogin

GetUserId() public method

public GetUserId ( string currentUserSocialLoginId, AuthenticationTypeProvider currentUserLoginProvider ) : long
currentUserSocialLoginId string
currentUserLoginProvider AuthenticationTypeProvider
return long

SaveToDatabase() public method

public SaveToDatabase ( SocialLogin socialLogin ) : void
socialLogin IsThereAnyNews.EntityFramework.Models.Entities.SocialLogin
return void

SocialLoginRepository() public method

public SocialLoginRepository ( ItanDatabaseContext itanDatabaseContext ) : System.Linq
itanDatabaseContext IsThereAnyNews.EntityFramework.ItanDatabaseContext
return System.Linq

UserIsRegistered() public method

public UserIsRegistered ( AuthenticationTypeProvider authenticationTypeProvider, string userId ) : bool
authenticationTypeProvider AuthenticationTypeProvider
userId string
return bool