Ejemplo n.º 1
0
 public Storage(IStorage implementation, string name, IStorageState internalState, IServiceProvider services)
 {
     _logger        = LogHelper.GetLoggerWithIdentifier(this, name);
     _internalState = internalState;
     _services      = services;
     _dispatcher    = services.Get <IDispatcher>();
     _eventManager  = services.Get <IEventManager>();
     Implementation = implementation;
     Name           = name;
     Identifier     = internalState.Identifier;
     Load();
 }
Ejemplo n.º 2
0
 private static TSnapshotType SnaphotFromState(IStorageState state)
 {
     return((TSnapshotType)Activator.CreateInstance(typeof(TSnapshotType), state));
 }
Ejemplo n.º 3
0
 public TransactionSnapshot(IStorageState state)
 {
     _state = state;
 }
Ejemplo n.º 4
0
 public ContractSnapshot(IStorageState state)
 {
     _state = state;
 }
Ejemplo n.º 5
0
 public EventSnapshot(IStorageState state)
 {
     _state = state;
 }
Ejemplo n.º 6
0
 public StorageSnapshot(IStorageState state)
 {
     _state = state;
 }
Ejemplo n.º 7
0
 public Storage(ILocalStorageService localStorage, IStorageState storageState)
 {
     _localStorage = localStorage;
     _storageState = storageState;
 }
Ejemplo n.º 8
0
 public BlockSnapshot(IStorageState state)
 {
     _state = state;
 }
Ejemplo n.º 9
0
 public BalanceSnapshot(IStorageState state)
 {
     _state = state;
 }
Ejemplo n.º 10
0
 public ValidatorSnapshot(IStorageState state)
 {
     _state = state;
 }
Ejemplo n.º 11
0
 public SyncService(IRemoteStorage remoteStorage, IStorageState storageState, IStorage storage)
 {
     _remoteStorage = remoteStorage;
     _storageState  = storageState;
     _storage       = storage;
 }