mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Prepare BTCPayServer for .netcore 3.0
This commit is contained in:
@@ -6,6 +6,11 @@ using Microsoft.Extensions.Hosting;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
#if NETCOREAPP21
|
||||
using IWebHostEnvironment = Microsoft.AspNetCore.Hosting.IHostingEnvironment;
|
||||
#else
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
#endif
|
||||
|
||||
namespace BTCPayServer.Services
|
||||
{
|
||||
@@ -27,7 +32,7 @@ namespace BTCPayServer.Services
|
||||
{
|
||||
private readonly Language[] _languages;
|
||||
|
||||
public LanguageService(IHostingEnvironment environment)
|
||||
public LanguageService(IWebHostEnvironment environment)
|
||||
{
|
||||
var path = (environment as HostingEnvironment)?.WebRootPath;
|
||||
if (string.IsNullOrEmpty(path))
|
||||
|
||||
Reference in New Issue
Block a user