Beispiel #1
0
        public void Configure(IApplicationBuilder app, ILogger logger, IConfiguration config, PegGateway gateway)
        {
            app.UseCors(builder => builder.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin());

            app.UseIISPlatformHandler();

            // Add MVC to the request pipeline.
            app.UseMvc();

            this.workers.Add(gateway.OpenchainToBitcoin());
            //this.workers.Add(gateway.BitcoinToOpenChain());
        }
 public PaymentRequestController(ILogger logger, PegGateway gateway)
 {
     this.logger  = logger;
     this.gateway = gateway;
     this.manager = new PaymentRequestManager(gateway.BitcoinClient.Network.Name == Network.Main.Name, gateway.BitcoinClient.ReceivingAddress);
 }
Beispiel #3
0
        public void Configure(IApplicationBuilder app, ILogger logger, IConfiguration config, PegGateway gateway)
        {
            app.UseCors(builder => builder.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin());

            app.UseIISPlatformHandler();

            // Add MVC to the request pipeline.
            app.UseMvc();

            this.workers.Add(gateway.TedchainToBitcoin());
            //this.workers.Add(gateway.BitcoinToTedChain());
        }
 public PaymentRequestController(ILogger logger, PegGateway gateway)
 {
     this.logger = logger;
     this.gateway = gateway;
     this.manager = new PaymentRequestManager(gateway.BitcoinClient.Network.Name == Network.Main.Name, gateway.BitcoinClient.ReceivingAddress);
 }