Ejemplo n.º 1
0
        public BlockRepository(Network network, string folder)
        {
            Guard.NotNull(network, nameof(network));
            Guard.NotEmpty(folder, nameof(folder));

            this.session            = new DBreezeSingleThreadSession($"DBreeze {this.GetType().Name}", folder);
            this.network            = network;
            this.PerformanceCounter = new BlockStoreRepositoryPerformanceCounter();
        }
        public BlockRepository(Network network, DBreezeSingleThreadSession session)
        {
            Guard.NotNull(network, nameof(network));
            Guard.NotNull(session, nameof(session));

            this.session            = session;
            this.network            = network;
            this.PerformanceCounter = PerformanceCounterFactory();
        }