public ChanpropsRepository(PeerchatDBContext peerChatDb, PeerchatCacheDatabase peerChatCacheDb, IMQConnectionFactory connectionFactory)
 {
     PEERCHAT_EXCHANGE           = "peerchat.core";
     PEERCAHT_CLIENT_MESSAGE_KEY = "peerchat.client-messages";
     PEERCHAT_KEYUPDATE_KEY      = "peerchat.keyupdate-messages";
     this.peerChatDb             = peerChatDb;
     this.peerChatCacheDb        = peerChatCacheDb;
     this.connectionFactory      = connectionFactory;
 }
Esempio n. 2
0
        public SnapShotRepository(ISnapShotDBContext snapshotDb, IMQConnectionFactory connectionFactory, IRepository <Game, GameLookup> gameRepository)
        {
            GSTATS_EXCHANGE    = "openspy.gamestats";
            GSTATS_ROUTING_KEY = "snapshots";
            var db = snapshotDb.GetDatabase();

            collection             = db.GetCollection <BsonDocument>("snapshots");
            this.connectionFactory = connectionFactory;
            this.gameRepository    = gameRepository;
        }
Esempio n. 3
0
 public AuthSessionRepository(SessionCacheDatabase sessionCache, IRepository <User, UserLookup> userRepository, IRepository <Profile, ProfileLookup> profileRepository, IRepository <Game, GameLookup> gameRepository, IMQConnectionFactory mqConnectionFactory, PresencePreAuthProvider rsaProvider)
 {
     this.defaultTimeSpan     = TimeSpan.FromHours(6);
     this.userRepository      = userRepository;
     this.profileRepository   = profileRepository;
     this.gameRepository      = gameRepository;
     this.mqConnectionFactory = mqConnectionFactory;
     this.rsaProvider         = rsaProvider;
     this.sessionCache        = sessionCache;
 }
Esempio n. 4
0
        public BlockRepository(GameTrackerDBContext gameTrackerDb, IRepository <User, UserLookup> userRepository, IRepository <Profile, ProfileLookup> profileRepository, IMQConnectionFactory connectionFactory)
        {
            GP_EXCHANGE          = "presence.core";
            GP_BLOCK_ROUTING_KEY = "presence.buddies";

            this.userRepository    = userRepository;
            this.profileRepository = profileRepository;
            this.gameTrackerDb     = gameTrackerDb;
            this.connectionFactory = connectionFactory;
        }
 public PresenceProfileStatusRepository(PresenceStatusDatabase presenceStatusDatabase, IRepository <Profile, ProfileLookup> profileRepository, IMQConnectionFactory connectionFactory, IRepository <User, UserLookup> userRepository, IRepository <Buddy, BuddyLookup> buddyLookup, IRepository <Block, BuddyLookup> blockLookup)
 {
     GP_EXCHANGE                 = "presence.core";
     GP_BUDDY_ROUTING_KEY        = "presence.buddies";
     this.profileRepository      = profileRepository;
     this.userRepository         = userRepository;
     this.buddyLookup            = buddyLookup;
     this.blockLookup            = blockLookup;
     this.presenceStatusDatabase = presenceStatusDatabase;
     this.connectionFactory      = connectionFactory;
     this.defaultTimeSpan        = TimeSpan.FromHours(2);
 }
Esempio n. 6
0
        public BuddyRepository(GameTrackerDBContext gameTrackerDb, IRepository <User, UserLookup> userRepository, IRepository <Profile, ProfileLookup> profileRepository, IMQConnectionFactory connectionFactory, PresenceStatusDatabase presenceStatusDatabase)
        {
            GP_EXCHANGE             = "presence.core";
            GP_BUDDY_ROUTING_KEY    = "presence.buddies";
            BUDDY_ADDREQ_EXPIRETIME = TimeSpan.FromSeconds(604800);

            this.userRepository         = userRepository;
            this.profileRepository      = profileRepository;
            this.gameTrackerDb          = gameTrackerDb;
            this.connectionFactory      = connectionFactory;
            this.presenceStatusDatabase = presenceStatusDatabase;
        }