public WalletManager( WalletConfiguration config, RpcClient client) { this.config = config; this.client = client; }
public static IServiceCollection AddWallet( this IServiceCollection services, WalletConfiguration config) { services.AddSingleton(config); services.TryAddSingleton <RpcClient>(); services.AddSingleton <WalletManager>(); return(services); }