public MessagePoolService(IOnionServiceClient onionServiceClient, IUnitOfWork unitOfWork, ITorClient torClient, IMembershipServiceClient membershipServiceClient, ILogger <MessagePoolService> logger) { this.onionServiceClient = onionServiceClient; this.unitOfWork = unitOfWork; this.torClient = torClient; this.membershipServiceClient = membershipServiceClient; this.logger = logger; }
public HttpService(IMembershipServiceClient membershipServiceClient, IOnionServiceClient onionServiceClient, ITorClient torClient, ISigningActorProvider signingActorProvider, IConfiguration configuration, IOptions <BlockmainiaOptions> blockmainiaOptions, ILogger <HttpService> logger) { this.membershipServiceClient = membershipServiceClient; this.onionServiceClient = onionServiceClient; this.torClient = torClient; this.signingActorProvider = signingActorProvider; this.blockmainiaOptions = blockmainiaOptions.Value; this.logger = logger; var gatewaySection = configuration.GetSection("Gateway"); GatewayUrl = gatewaySection.GetValue <string>("Url"); Members = new ConcurrentDictionary <ulong, string>(); SetNodeIdentity(); cancellationTokenSource = new CancellationTokenSource(); MaintainMembers(cancellationTokenSource.Token); }
public BroadcastClient(ITorClient torClient, IMembershipServiceClient membershipServiceClient) { _torClient = torClient; _membershipServiceClient = membershipServiceClient; }