Пример #1
0
 public AuthService
 (
     IAuthFactory authFactory,
     IAuthRepository authRepository,
     IHashService hashService,
     IJsonWebTokenService jsonWebTokenService
 )
 {
     _authFactory         = authFactory;
     _authRepository      = authRepository;
     _hashService         = hashService;
     _jsonWebTokenService = jsonWebTokenService;
 }
Пример #2
0
 private static void Initialize()
 {
     _credentialsAccessor         = TweetinviContainer.Resolve <ICredentialsAccessor>();
     _authFactoryForCurrentThread = TweetinviContainer.Resolve <IAuthFactory>();
 }
Пример #3
0
 public Repository(IConnectionFactory connectionFactory, IAuthFactory authFactory)
 {
     _connectionFactory = connectionFactory;
     _authFactory       = authFactory;
 }
Пример #4
0
 public UserAccountService(IAuthFactory auth, IUserApi userApi)
 {
     this.IAuthFac = auth;
     this.IUser    = userApi;
 }
Пример #5
0
 static AuthFlow()
 {
     _authFactory      = TweetinviContainer.Resolve <IAuthFactory>();
     _webTokenFactory  = TweetinviContainer.Resolve <IWebTokenFactory>();
     _credentialsStore = TweetinviContainer.Resolve <ICredentialsStore>();
 }
Пример #6
0
 static AuthFlow()
 {
     _authFactory = TweetinviContainer.Resolve<IAuthFactory>();
     _webTokenFactory = TweetinviContainer.Resolve<IWebTokenFactory>();
     _credentialsStore = TweetinviContainer.Resolve<ICredentialsStore>();
 }