C# Class Blog.Common.Identity.Repository.BlogDbRepository

Inheritance: IDisposable, IBlogDbRepository
Mostrar archivo Open project: jsnmgpnty/Blogness2.0

Public Methods

Method Description
AddClaim ( string userId, Claim claim ) : Task
AddToRolesAsync ( string id, string roles ) : Task
BlogDbRepository ( ) : System
CreateRoleAsync ( BlogRole blogRole ) : Task
Dispose ( ) : void
FindUser ( string userName, string password ) : Task
FindUsers ( string username ) : Task
GetClaims ( string userId ) : Task>
GetRoles ( ) : IEnumerable
RegisterUser ( BlogRegisterModel userModel ) : Task
RemoveClaim ( string userId, Claim claim ) : Task

Method Details

AddClaim() public method

public AddClaim ( string userId, Claim claim ) : Task
userId string
claim System.Security.Claims.Claim
return Task

AddToRolesAsync() public method

public AddToRolesAsync ( string id, string roles ) : Task
id string
roles string
return Task

BlogDbRepository() public method

public BlogDbRepository ( ) : System
return System

CreateRoleAsync() public method

public CreateRoleAsync ( BlogRole blogRole ) : Task
blogRole Blog.Common.Identity.Role.BlogRole
return Task

Dispose() public method

public Dispose ( ) : void
return void

FindUser() public method

public FindUser ( string userName, string password ) : Task
userName string
password string
return Task

FindUsers() public method

public FindUsers ( string username ) : Task
username string
return Task

GetClaims() public method

public GetClaims ( string userId ) : Task>
userId string
return Task>

GetRoles() public method

public GetRoles ( ) : IEnumerable
return IEnumerable

RegisterUser() public method

public RegisterUser ( BlogRegisterModel userModel ) : Task
userModel Blog.Common.Identity.Models.BlogRegisterModel
return Task

RemoveClaim() public method

public RemoveClaim ( string userId, Claim claim ) : Task
userId string
claim System.Security.Claims.Claim
return Task