Esempio n. 1
0
 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);
        }