示例#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();
 }
示例#2
0
 private static TSnapshotType SnaphotFromState(IStorageState state)
 {
     return((TSnapshotType)Activator.CreateInstance(typeof(TSnapshotType), state));
 }
示例#3
0
 public TransactionSnapshot(IStorageState state)
 {
     _state = state;
 }
示例#4
0
 public ContractSnapshot(IStorageState state)
 {
     _state = state;
 }
示例#5
0
 public EventSnapshot(IStorageState state)
 {
     _state = state;
 }
示例#6
0
 public StorageSnapshot(IStorageState state)
 {
     _state = state;
 }
示例#7
0
文件: Storage.cs 项目: feruxmax/ties
 public Storage(ILocalStorageService localStorage, IStorageState storageState)
 {
     _localStorage = localStorage;
     _storageState = storageState;
 }
示例#8
0
 public BlockSnapshot(IStorageState state)
 {
     _state = state;
 }
示例#9
0
 public BalanceSnapshot(IStorageState state)
 {
     _state = state;
 }
示例#10
0
 public ValidatorSnapshot(IStorageState state)
 {
     _state = state;
 }
示例#11
0
 public SyncService(IRemoteStorage remoteStorage, IStorageState storageState, IStorage storage)
 {
     _remoteStorage = remoteStorage;
     _storageState  = storageState;
     _storage       = storage;
 }