public DebugApiController(
     UserManager <KahlaUser> userManager,
     SignInManager <KahlaUser> signInManager,
     KahlaDbContext dbContext,
     PushKahlaMessageService pushService,
     IConfiguration configuration,
     AuthService <KahlaUser> authService,
     ServiceLocation serviceLocation,
     OAuthService oauthService,
     ChannelService channelService,
     StorageService storageService,
     AppsContainer appsContainer,
     UserService userService) : base(
         userManager,
         signInManager,
         dbContext,
         pushService,
         configuration,
         authService,
         serviceLocation,
         oauthService,
         channelService,
         storageService,
         appsContainer,
         userService)
 {
 }
Exemplo n.º 2
0
 public ApiController(
     UserManager <KahlaUser> userManager,
     SignInManager <KahlaUser> signInManager,
     KahlaDbContext dbContext,
     PushKahlaMessageService pushService,
     IConfiguration configuration,
     AuthService <KahlaUser> authService,
     ServiceLocation serviceLocation,
     OAuthService oauthService,
     ChannelService channelService,
     StorageService storageService,
     AppsContainer appsContainer,
     UserService userService)
 {
     _userManager     = userManager;
     _signInManager   = signInManager;
     _dbContext       = dbContext;
     _pusher          = pushService;
     _configuration   = configuration;
     _authService     = authService;
     _serviceLocation = serviceLocation;
     _oauthService    = oauthService;
     _channelService  = channelService;
     _storageService  = storageService;
     _appsContainer   = appsContainer;
     _userService     = userService;
 }
Exemplo n.º 3
0
 public AuthController(
     StargateLocator serviceLocation,
     AuthService <KahlaUser> authService,
     UserManager <KahlaUser> userManager,
     SignInManager <KahlaUser> signInManager,
     UserService userService,
     AppsContainer appsContainer,
     KahlaPushService pusher,
     ChannelService channelService,
     KahlaDbContext dbContext,
     IOptions <List <DomainSettings> > optionsAccessor,
     EventService eventService,
     OnlineJudger onlineJudger,
     StargatePushService stargatePushService)
 {
     _stargateLocator     = serviceLocation;
     _authService         = authService;
     _userManager         = userManager;
     _signInManager       = signInManager;
     _userService         = userService;
     _appsContainer       = appsContainer;
     _pusher              = pusher;
     _channelService      = channelService;
     _dbContext           = dbContext;
     _eventService        = eventService;
     _onlineJudger        = onlineJudger;
     _stargatePushService = stargatePushService;
     _appDomains          = optionsAccessor.Value;
 }
Exemplo n.º 4
0
 public AuthController(
     ServiceLocation serviceLocation,
     IConfiguration configuration,
     IHostingEnvironment env,
     AuthService <KahlaUser> authService,
     OAuthService oauthService,
     UserManager <KahlaUser> userManager,
     SignInManager <KahlaUser> signInManager,
     UserService userService,
     AppsContainer appsContainer,
     KahlaPushService pusher,
     ChannelService channelService,
     VersionChecker version,
     KahlaDbContext dbContext,
     IMemoryCache cache)
 {
     _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;
     _cache           = cache;
 }
 public PushKahlaMessageService(
     KahlaDbContext dbContext,
     PushMessageService pushMessageService)
 {
     _dbContext          = dbContext;
     _pushMessageService = pushMessageService;
 }
Exemplo n.º 6
0
 public AuthController(
     ServiceLocation serviceLocation,
     IWebHostEnvironment env,
     AuthService <KahlaUser> authService,
     UserManager <KahlaUser> userManager,
     SignInManager <KahlaUser> signInManager,
     UserService userService,
     AppsContainer appsContainer,
     KahlaPushService pusher,
     ChannelService channelService,
     VersionChecker version,
     KahlaDbContext dbContext,
     IOptions <List <DomainSettings> > optionsAccessor,
     AiurCache cache)
 {
     _serviceLocation = serviceLocation;
     _env             = env;
     _authService     = authService;
     _userManager     = userManager;
     _signInManager   = signInManager;
     _userService     = userService;
     _appsContainer   = appsContainer;
     _pusher          = pusher;
     _channelService  = channelService;
     _version         = version;
     _dbContext       = dbContext;
     _cache           = cache;
     _appDomains      = optionsAccessor.Value;
 }
Exemplo n.º 7
0
 public GroupsController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext)
 {
     _userManager = userManager;
     _dbContext   = dbContext;
 }
Exemplo n.º 8
0
 public ConversationController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext,
     KahlaPushService pushService)
 {
     _userManager = userManager;
     _dbContext   = dbContext;
     _pusher      = pushService;
 }
Exemplo n.º 9
0
 public DebugApiController(
     UserManager <KahlaUser> userManager,
     SignInManager <KahlaUser> signInManager,
     KahlaDbContext dbContext,
     PushKahlaMessageService pushService,
     IConfiguration configuration,
     AuthService <KahlaUser> authService) : base(userManager, signInManager, dbContext, pushService, configuration, authService)
 {
 }
Exemplo n.º 10
0
 public DevicesController(
     KahlaDbContext dbContext,
     ThirdPartyPushService thirdPartyPushService,
     UserManager <KahlaUser> userManager)
 {
     _dbContext             = dbContext;
     _thirdPartyPushService = thirdPartyPushService;
     _userManager           = userManager;
 }
Exemplo n.º 11
0
 public FriendshipController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext,
     KahlaPushService pushService)
 {
     _userManager = userManager;
     _dbContext   = dbContext;
     _pusher      = pushService;
 }
Exemplo n.º 12
0
 public GroupsController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext,
     KahlaPushService pusher)
 {
     _userManager = userManager;
     _dbContext   = dbContext;
     _pusher      = pusher;
 }
Exemplo n.º 13
0
 public StorageController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext,
     IConfiguration configuration,
     StorageService storageService)
 {
     _userManager    = userManager;
     _dbContext      = dbContext;
     _configuration  = configuration;
     _storageService = storageService;
 }
Exemplo n.º 14
0
 public DevicesController(
     KahlaDbContext dbContext,
     UserManager <KahlaUser> userManager,
     AppsContainer appsContainer,
     CannonService cannonService)
 {
     _dbContext     = dbContext;
     _userManager   = userManager;
     _appsContainer = appsContainer;
     _cannonService = cannonService;
 }
Exemplo n.º 15
0
 public StargatePushService(
     ChannelService channelService,
     AppsContainer appsContainer,
     PushMessageService pushMessageService,
     KahlaDbContext kahlaDbContext)
 {
     _channelService     = channelService;
     _appsContainer      = appsContainer;
     _pushMessageService = pushMessageService;
     _kahlaDbContext     = kahlaDbContext;
 }
Exemplo n.º 16
0
 public ThirdPartyPushService(
     IConfiguration configuration,
     WebPushClient webPushClient,
     ILogger <ThirdPartyPushService> logger,
     KahlaDbContext dbContext)
 {
     _configuration = configuration;
     _webPushClient = webPushClient;
     _dbContext     = dbContext;
     _logger        = logger;
 }
Exemplo n.º 17
0
 public PushKahlaMessageService(
     KahlaDbContext dbContext,
     PushMessageService pushMessageService,
     AppsContainer appsContainer,
     ChannelService channelService)
 {
     _dbContext          = dbContext;
     _pushMessageService = pushMessageService;
     _appsContainer      = appsContainer;
     _channelService     = channelService;
 }
Exemplo n.º 18
0
 public HomeController(
     ServiceLocation serviceLocation,
     KahlaDbContext dbContext,
     AuthService <KahlaUser> authService,
     AppsContainer appsContainer)
 {
     _serviceLocation = serviceLocation;
     _dbContext       = dbContext;
     _authService     = authService;
     _appsContainer   = appsContainer;
 }
Exemplo n.º 19
0
 public FriendshipController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext,
     KahlaPushService pushService,
     OnlineJudger onlineJudger)
 {
     _userManager  = userManager;
     _dbContext    = dbContext;
     _pusher       = pushService;
     _onlineJudger = onlineJudger;
 }
Exemplo n.º 20
0
 public DevicesController(
     KahlaDbContext dbContext,
     ThirdPartyPushService thirdPartyPushService,
     UserManager<KahlaUser> userManager,
     PushMessageService stargatePushService,
     AppsContainer appsContainer)
 {
     _dbContext = dbContext;
     _thirdPartyPushService = thirdPartyPushService;
     _userManager = userManager;
     _stargatePushService = stargatePushService;
     _appsContainer = appsContainer;
 }
Exemplo n.º 21
0
 public ThirdPartyPushService(
     KahlaDbContext dbContext,
     IConfiguration configuration,
     WebPushClient webPushClient,
     ILogger <ThirdPartyPushService> logger,
     TelemetryClient telemetry)
 {
     _dbContext     = dbContext;
     _configuration = configuration;
     _webPushClient = webPushClient;
     _logger        = logger;
     _telemetry     = telemetry;
 }
Exemplo n.º 22
0
 public KahlaPushService(
     KahlaDbContext dbContext,
     PushMessageService stargatePushService,
     AppsContainer appsContainer,
     ChannelService channelService,
     ThirdPartyPushService thirdPartyPushService)
 {
     _dbContext             = dbContext;
     _stargatePushService   = stargatePushService;
     _appsContainer         = appsContainer;
     _channelService        = channelService;
     _thirdPartyPushService = thirdPartyPushService;
 }
Exemplo n.º 23
0
 public ApiController(UserManager <KahlaUser> userManager,
                      SignInManager <KahlaUser> signInManager,
                      KahlaDbContext dbContext,
                      PushKahlaMessageService pushService,
                      IConfiguration configuration,
                      AuthService <KahlaUser> authService)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _dbContext     = dbContext;
     _pusher        = pushService;
     _configuration = configuration;
     _authService   = authService;
 }
Exemplo n.º 24
0
        public override async Task <DateTime> SetLastRead(KahlaDbContext dbContext, string userId)
        {
            var relation = await dbContext.UserGroupRelations
                           .SingleOrDefaultAsync(t => t.UserId == userId && t.GroupId == Id);

            try
            {
                return(relation.ReadTimeStamp);
            }
            finally
            {
                relation.ReadTimeStamp = DateTime.UtcNow;
            }
        }
Exemplo n.º 25
0
 public StorageController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext,
     IConfiguration configuration,
     TokenService tokenService,
     AppsContainer appsContainer,
     ServiceLocation serviceLocation)
 {
     _userManager     = userManager;
     _dbContext       = dbContext;
     _configuration   = configuration;
     _tokenService    = tokenService;
     _appsContainer   = appsContainer;
     _serviceLocation = serviceLocation;
 }
Exemplo n.º 26
0
 public HomeController(
     IWebHostEnvironment env,
     ServiceLocation serviceLocation,
     KahlaDbContext dbContext,
     AuthService <KahlaUser> authService,
     AppsContainer appsContainer,
     VersionService sdkVersion)
 {
     _env             = env;
     _serviceLocation = serviceLocation;
     _dbContext       = dbContext;
     _authService     = authService;
     _appsContainer   = appsContainer;
     _sdkVersion      = sdkVersion;
 }
Exemplo n.º 27
0
 public GroupsController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext,
     KahlaPushService pusher,
     OwnerChecker ownerChecker,
     IConfiguration configuration,
     FoldersService foldersService,
     AppsContainer appsContainer)
 {
     _userManager    = userManager;
     _dbContext      = dbContext;
     _pusher         = pusher;
     _ownerChecker   = ownerChecker;
     _configuration  = configuration;
     _foldersService = foldersService;
     _appsContainer  = appsContainer;
 }
Exemplo n.º 28
0
 public StorageController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext,
     IConfiguration configuration,
     TokenService tokenService,
     AppsContainer appsContainer,
     ProbeLocator probeLocator,
     FilesService probeFileService)
 {
     _userManager      = userManager;
     _dbContext        = dbContext;
     _configuration    = configuration;
     _tokenService     = tokenService;
     _appsContainer    = appsContainer;
     _probeLocator     = probeLocator;
     _probeFileService = probeFileService;
 }
Exemplo n.º 29
0
 public GroupsController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext,
     OwnerChecker ownerChecker,
     IConfiguration configuration,
     FoldersService foldersService,
     AppsContainer appsContainer,
     CannonQueue cannonQueue)
 {
     _userManager    = userManager;
     _dbContext      = dbContext;
     _ownerChecker   = ownerChecker;
     _configuration  = configuration;
     _foldersService = foldersService;
     _appsContainer  = appsContainer;
     _cannonQueue    = cannonQueue;
 }
Exemplo n.º 30
0
 public FilesController(
     UserManager <KahlaUser> userManager,
     KahlaDbContext dbContext,
     IConfiguration configuration,
     ServiceLocation serviceLocation,
     StorageService storageService,
     AppsContainer appsContainer,
     SecretService secretService)
 {
     _userManager     = userManager;
     _dbContext       = dbContext;
     _configuration   = configuration;
     _serviceLocation = serviceLocation;
     _storageService  = storageService;
     _appsContainer   = appsContainer;
     _secretService   = secretService;
 }