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(); }
private static TSnapshotType SnaphotFromState(IStorageState state) { return((TSnapshotType)Activator.CreateInstance(typeof(TSnapshotType), state)); }
public TransactionSnapshot(IStorageState state) { _state = state; }
public ContractSnapshot(IStorageState state) { _state = state; }
public EventSnapshot(IStorageState state) { _state = state; }
public StorageSnapshot(IStorageState state) { _state = state; }
public Storage(ILocalStorageService localStorage, IStorageState storageState) { _localStorage = localStorage; _storageState = storageState; }
public BlockSnapshot(IStorageState state) { _state = state; }
public BalanceSnapshot(IStorageState state) { _state = state; }
public ValidatorSnapshot(IStorageState state) { _state = state; }
public SyncService(IRemoteStorage remoteStorage, IStorageState storageState, IStorage storage) { _remoteStorage = remoteStorage; _storageState = storageState; _storage = storage; }