示例#1
0
 public AccountsController(
     IOwinContextProvider owinContextProvider,
     IUserInformationService userInformationService)
 {
     this.owinContextProvider    = owinContextProvider;
     this.userInformationService = userInformationService;
 }
 public AuthHttpService(IOwinContextProvider owinContextProvider, IUserIdentityProvider userIdentityProvider)
 {
     _owinContextProvider  = owinContextProvider;
     _userIdentityProvider = userIdentityProvider;
 }
 public IdentityApplicationUserManager(IOwinContextProvider owinContextProvider, IUserIdentityProvider userIdentityProvider)
 {
     _owinContextProvider  = owinContextProvider;
     _userIdentityProvider = userIdentityProvider;
 }
示例#4
0
 public UsersController(IOwinContextProvider owinContextProvider)
 {
     owinContext = owinContextProvider.GetOwinContext(HttpContext.ApplicationInstance.Context);
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestContext" /> class.
 /// </summary>
 /// <param name="owinContextProvider">The owin context provider.</param>
 public RequestContext(IOwinContextProvider owinContextProvider)
 {
     this.userInfo = new Lazy <IUserInfo>(() => InitializeUserInfo(owinContextProvider.CurrentContext));
 }
示例#6
0
 public TestController(IOwinContextProvider provider, IUserRepository userRepository, IAccountRepository accountRepository)
 {
     this.provider          = provider;
     this.userRepository    = userRepository;
     this.accountRepository = accountRepository;
 }