コード例 #1
0
        public BTCPayServerEnvironment(IWebHostEnvironment env, BTCPayNetworkProvider provider, IHttpContextAccessor httpContext, TorServices torServices)
        {
            this.httpContext = httpContext;
            Version          = typeof(BTCPayServerEnvironment).GetTypeInfo().Assembly.GetCustomAttribute <AssemblyFileVersionAttribute>().Version;
#if DEBUG
            Build = "Debug";
#else
            Build = "Release";
#endif
            Environment      = env;
            NetworkType      = provider.NetworkType;
            this.torServices = torServices;
        }
コード例 #2
0
        public BTCPayServerEnvironment(IWebHostEnvironment env, BTCPayNetworkProvider provider, IHttpContextAccessor httpContext, TorServices torServices, BTCPayServerOptions opts)
        {
            this.httpContext = httpContext;
            Version          = typeof(BTCPayServerEnvironment).GetTypeInfo().Assembly.GetCustomAttribute <AssemblyFileVersionAttribute>().Version;
#if DEBUG
            Build = "Debug";
#else
            Build = "Release";
#endif
#if ALTCOINS
            AltcoinsVersion = true;
#else
            AltcoinsVersion = false;
#endif

            Environment      = env;
            NetworkType      = provider.NetworkType;
            this.torServices = torServices;
            CheatMode        = opts.CheatMode;
        }