示例#1
0
 public AuthController(
     ServiceLocation serviceLocation,
     IConfiguration configuration,
     IHostingEnvironment env,
     AuthService <ApplicationUser> authService,
     OAuthService oauthService,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     UserService userService,
     AppsContainer appsContainer,
     ChatPushService pusher,
     ChannelService channelService,
     VersionChecker version,
     ApplicationDbContext dbContext,
     ThirdPartyPushService thirdPartyPushService)
 {
     _serviceLocation       = serviceLocation;
     _configuration         = configuration;
     _env                   = env;
     _authService           = authService;
     _oauthService          = oauthService;
     _userManager           = userManager;
     _signInManager         = signInManager;
     _userService           = userService;
     _appsContainer         = appsContainer;
     _pusher                = pusher;
     _channelService        = channelService;
     _version               = version;
     _dbContext             = dbContext;
     _thirdPartyPushService = thirdPartyPushService;
 }
 public FriendshipController(
     UserManager <ApplicationUser> userManager,
     ApplicationDbContext dbContext,
     ChatPushService pushService)
 {
     _userManager = userManager;
     _dbContext   = dbContext;
     _pusher      = pushService;
 }