|
@@ -28,19 +28,14 @@ namespace DotNetCore.CAP.Dashboard |
|
|
|
|
|
|
|
|
public CapDashboardRequest(HttpContext context) |
|
|
public CapDashboardRequest(HttpContext context) |
|
|
{ |
|
|
{ |
|
|
if (context == null) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentNullException(nameof(context)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_context = context; |
|
|
|
|
|
|
|
|
_context = context ?? throw new ArgumentNullException(nameof(context)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public override string Method => _context.Request.Method; |
|
|
public override string Method => _context.Request.Method; |
|
|
public override string Path => _context.Request.Path.Value; |
|
|
public override string Path => _context.Request.Path.Value; |
|
|
public override string PathBase => _context.Request.PathBase.Value; |
|
|
public override string PathBase => _context.Request.PathBase.Value; |
|
|
public override string LocalIpAddress => _context.Connection.LocalIpAddress.ToString(); |
|
|
|
|
|
public override string RemoteIpAddress => _context.Connection.RemoteIpAddress.ToString(); |
|
|
|
|
|
|
|
|
public override string LocalIpAddress => _context.Connection.LocalIpAddress.MapToIPv4().ToString(); |
|
|
|
|
|
public override string RemoteIpAddress => _context.Connection.RemoteIpAddress.MapToIPv4().ToString(); |
|
|
|
|
|
|
|
|
public override string GetQuery(string key) |
|
|
public override string GetQuery(string key) |
|
|
{ |
|
|
{ |
|
|