public AccountController() { novell = new NovelleDirectory.NovelleDirectory(); factory = new DbContextFactory(); context = new ApplicationDbContext(); identityHelper = new IdentityHelper(); request = new Request(); }
public AccountController(IDbContextFactory factory, IApplicationDbContext context, IRequest request, IIdentityHelper identityHelper, INovelleDirectory novell, ApplicationUserManager userManager) { this.novell = novell; this.factory = factory; this.UserManager = userManager; this.context = context; this.identityHelper = identityHelper; this.request = request; }
//если вернемся к теме логгирования //инициализация //private static Logger logger = LogManager.GetCurrentClassLogger(); //лог //logger.Log(LogLevel.Info, "Credentials correct in Novell", context.UserName, context.Password); /// <summary> /// Ctor of oAuth provider /// </summary> /// <param name="publicClientId"></param> public ApplicationOAuthProvider(string publicClientId) { if (publicClientId == null) { throw new ArgumentNullException("publicClientId"); } _publicClientId = publicClientId; novell = new NovelleDirectory.NovelleDirectory(); novellGroupWise = new NovellGroupWise(); }
public AccountController(IDbContextFactory factory, IIdentityHelper identityHelper, IRequest request) { this.factory = factory; this.identityHelper = identityHelper; this.request = request; context = new ApplicationDbContext(); novell = new NovelleDirectory.NovelleDirectory(); identityHelper = new IdentityHelper(); }
public AccountController(IDbContextFactory factory, IApplicationDbContext context, IIdentityHelper identityHelper) { this.factory = factory; this.identityHelper = identityHelper; this.context = context; request = new Request(); novell = new NovelleDirectory.NovelleDirectory(); identityHelper = new IdentityHelper(); }
public AccountController(ApplicationUserManager userManager, ISecureDataFormat <AuthenticationTicket> accessTokenFormat) { this.UserManager = userManager; this.AccessTokenFormat = accessTokenFormat; novell = new NovelleDirectory.NovelleDirectory(); factory = new DbContextFactory(); context = new ApplicationDbContext(); identityHelper = new IdentityHelper(); request = new Request(); }
public ApplicationOAuthProvider(INovelleDirectory novell, INovellGroupWise novellGroupWise) { this.novell = novell; this.novellGroupWise = novellGroupWise; }