last ...
This commit is contained in:
@@ -77,22 +77,22 @@ namespace xIdentityService.Middlewares
|
||||
statusCode = StatusCodes.Status500InternalServerError;
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
//
|
||||
sw.Stop();
|
||||
var dto = new XApiKeyUsageDto
|
||||
{
|
||||
ApiKeyId = apiKeyId,
|
||||
ClientIP = clientIp,
|
||||
Endpoint = endpointName,
|
||||
StatusCode = statusCode,
|
||||
HttpMethod = httpMethod,
|
||||
RequestedOn = requestedOn,
|
||||
ResponseTimeMs = sw.ElapsedMilliseconds,
|
||||
};
|
||||
// await identityProvider.AddApiKeyUsage();
|
||||
}
|
||||
// finally
|
||||
// {
|
||||
// //
|
||||
// sw.Stop();
|
||||
// var dto = new XApiKeyUsageDto
|
||||
// {
|
||||
// ApiKeyId = apiKeyId,
|
||||
// ClientIP = clientIp,
|
||||
// Endpoint = endpointName,
|
||||
// StatusCode = statusCode,
|
||||
// HttpMethod = httpMethod,
|
||||
// RequestedOn = requestedOn,
|
||||
// ResponseTimeMs = sw.ElapsedMilliseconds,
|
||||
// };
|
||||
// // await identityProvider.AddApiKeyUsage();
|
||||
// }
|
||||
} else
|
||||
{
|
||||
await next(context);
|
||||
|
||||
Reference in New Issue
Block a user