Exemplo n.º 1
0
 public GrpcCrossChainClientNodePluginTest()
 {
     _grpcCrossChainServerNodePlugin = GetRequiredService <INodePlugin>();
     _grpcCrossChainClientNodePlugin = GetRequiredService <GrpcCrossChainClientNodePlugin>();
     _chainOptions = GetRequiredService <IOptionsSnapshot <ChainOptions> >().Value;
     _grpcCrossChainConfigOption = GetRequiredService <IOptionsSnapshot <GrpcCrossChainConfigOption> >().Value;
 }
Exemplo n.º 2
0
 public GrpcCrossChainClientNodePlugin(CrossChainGrpcClientController crossChainGrpcClientController,
                                       IOptionsSnapshot <GrpcCrossChainConfigOption> grpcCrossChainConfigOption,
                                       IOptionsSnapshot <CrossChainConfigOption> crossChainConfigOption,
                                       ICrossChainDataProvider crossChainDataProvider, IBlockchainService blockchainService)
 {
     _crossChainGrpcClientController = crossChainGrpcClientController;
     _crossChainDataProvider         = crossChainDataProvider;
     _blockchainService          = blockchainService;
     _grpcCrossChainConfigOption = grpcCrossChainConfigOption.Value;
     _crossChainConfigOption     = crossChainConfigOption.Value;
 }
Exemplo n.º 3
0
 public GrpcCrossChainServerNodePlugin(IOptionsSnapshot <GrpcCrossChainConfigOption> grpcCrossChainConfigOption,
                                       ICrossChainServer crossChainServer)
 {
     _grpcCrossChainConfigOption = grpcCrossChainConfigOption.Value;
     _crossChainServer           = crossChainServer;
 }