mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Prepare startup.cs for netcoreapp3.0
This commit is contained in:
@@ -14,6 +14,10 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
using BTCPayServer.Data;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
#if !NETCOREAPP21
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
#endif
|
||||
|
||||
namespace BTCPayServer.PaymentRequest
|
||||
{
|
||||
@@ -85,7 +89,12 @@ namespace BTCPayServer.PaymentRequest
|
||||
{
|
||||
return request.GetRelativePathOrAbsolute("/payment-requests/hub");
|
||||
}
|
||||
|
||||
#if NETCOREAPP21
|
||||
public static void Register(HubRouteBuilder route)
|
||||
#else
|
||||
public static void Register(IEndpointRouteBuilder route)
|
||||
#endif
|
||||
{
|
||||
route.MapHub<PaymentRequestHub>("/payment-requests/hub");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user