public CachingAggregateRootRepositoryDecorator(IAggregateRootRepository innerAggregateRootRepository, ISnapshotCache snapshotCache, IEventStore eventStore, IDomainEventSerializer domainEventSerializer)
 {
     _innerAggregateRootRepository = innerAggregateRootRepository;
     _snapshotCache         = snapshotCache;
     _eventStore            = eventStore;
     _domainEventSerializer = domainEventSerializer;
 }
Example #2
0
        public ServerConnectionHandler(
            IObjectSerializer packetSerializer,
            IIncomingNetworkEventHandler networkEventProcessor,
            ILogger logger,
            IEventBus eventBus,
            ISnapshotCache snapshotCache,
            IGamePlatformAccessor gamePlatformAccessor,
            IMapManager mapManager) : base(packetSerializer, networkEventProcessor, logger, eventBus, gamePlatformAccessor)
        {
            m_EventBus   = eventBus;
            m_MapManager = mapManager;
            m_Logger     = logger;

            m_Snapshots   = snapshotCache;
            ClientTimeOut = TimeSpan.FromSeconds(15);
        }
Example #3
0
 public GatewayController(IOptions <GatewayOptions> options)
 {
     _cache    = new SnapshotCache(true, _logger);
     _snapshot = new Snapshot(options.Value);
 }