public Task InitRpcModules() { AnalyticsModule analyticsModule = new AnalyticsModule(_api.BlockTree, _api.StateReader, _api.LogManager); _api.RpcModuleProvider.Register(new SingletonModulePool <IAnalyticsModule>(analyticsModule)); return(Task.CompletedTask); }
public Task InitRpcModules() { var(getFromAPi, _) = _api.ForRpc; AnalyticsModule analyticsModule = new AnalyticsModule( getFromAPi.BlockTree, getFromAPi.StateReader, getFromAPi.LogManager); getFromAPi.RpcModuleProvider.Register(new SingletonModulePool <IAnalyticsModule>(analyticsModule)); return(Task.CompletedTask); }