Exemplo n.º 1
0
 public void Clear()
 {
     _selectedRepo      = RepositoryType.NotSelected;
     _selectedPublisher = PublisherType.NotSelected;
     _sqliteRepoConfig  = null;
     _lmdbRepoConfig    = null;
     _customRepository  = null;
     _customPublisher   = null;
 }
Exemplo n.º 2
0
        public LMDBEventRepository(LMDBRepositoryConfiguration configuration)
        {
            _serializer  = configuration.Serializer;
            _environment = new LightningEnvironment(configuration.EnvironmentPath)
            {
                MaxDatabases = configuration.MaxDatabases,
                MapSize      = configuration.MapSize
            };
            _environment.Open();

            _nextSerialNumber = InitSerialNumber();
        }
Exemplo n.º 3
0
 public IEventPublisherBuilder Configuration(string environmentPath, int maxDatabases, long mapSize, IBinaryEventsSerializer serializer)
 {
     _lmdbRepoConfig = new LMDBRepositoryConfiguration(environmentPath, maxDatabases, mapSize, serializer);
     return(this);
 }