示例#1
0
 public AuthController(
     SignInManager <ApplicationUser> signInManager,
     RoleManager <IdentityRole <long> > roleManager,
     TwitterAppConfiguration twitterConfiguration,
     RolesConfiguration roles)
 {
     _signInManager        = signInManager;
     _roleManager          = roleManager;
     _userManager          = signInManager.UserManager;
     _twitterConfiguration = twitterConfiguration;
     _adminUsers           = roles.AdminUsers;
 }
示例#2
0
        public TwitterService(
            IServiceScopeFactory scopeFactory,
            TwitterAppConfiguration configuration,

            IPostsWatcher postsWatcher,
            IPostsChecker postsChecker,
            IProvidersOperator providersOperator,
            IPostOperationValidator postOperationValidator)
        {
            _scopeFactory  = scopeFactory;
            _configuration = configuration;

            _postsWatcher           = postsWatcher;
            _postsChecker           = postsChecker;
            _providersOperator      = providersOperator;
            _postOperationValidator = postOperationValidator;
        }