Beispiel #1
0
 public CacheProviderTests()
 {
     _providerFactory     = GetRequiredService <IStateProviderFactory>();
     _innerProvider       = _providerFactory.CreateStateProvider() as ScopedStateProvider;
     _blockStateSetManger = GetRequiredService <IBlockStateSetManger>();
     _smartContractHelper = GetRequiredService <SmartContractHelper>();
     _hostSmartContractBridgeContextService = GetRequiredService <IHostSmartContractBridgeContextService>();
 }
 public SmartContractExecutiveService(
     ISmartContractRunnerContainer smartContractRunnerContainer, IStateProviderFactory stateProviderFactory,
     IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider,
     IHostSmartContractBridgeContextService hostSmartContractBridgeContextService)
 {
     _smartContractRunnerContainer          = smartContractRunnerContainer;
     _stateProviderFactory                  = stateProviderFactory;
     _defaultContractZeroCodeProvider       = defaultContractZeroCodeProvider;
     _hostSmartContractBridgeContextService = hostSmartContractBridgeContextService;
 }
Beispiel #3
0
 public CacheProviderTests()
 {
     _providerFactory = GetRequiredService <IStateProviderFactory>();
     _innerProvider   = _providerFactory.CreateStateProvider() as ScopedStateProvider;
 }