public static class AnonymousAccessExtensions
IServiceCollection AddAnonymousAccessForDevelopment(this IServiceCollection services)
public static class FormFileExtensions
Task<byte[]> GetBytes(this IFormFile formFile)
public static class HeaderDictionaryExtensions
string AddCorrelationId(this IHeaderDictionary headers, string correlationId)
string GetCallingOnBehalfOfIdentity(this IHeaderDictionary headers)
string GetOrAddCorrelationId(this IHeaderDictionary headers)Summary: Gets the correlation id from header , if not found a new is added to the header and returned.
Parameters:
headers
- The headers.Returns: Correlation id for request.
string GetOrAddRequestId(this IHeaderDictionary headers)
public static class HttpContextExExtensions
string GetCorrelationId(this HttpContext context)
string GetRequestId(this HttpContext context)
public static class HttpRequestExExtensions
Task<byte[]> GetRawBodyBytesAsync(this HttpRequest request)Summary: Retrieves the raw body as a byte array from the Request.Body stream
Parameters:
request
- Request instance to applies to
Task<string> GetRawBodyStringAsync(this HttpRequest request, Encoding encoding = null)Summary: Retrieve the raw body as a string from the Request.Body stream
Parameters:
request
- Request instance to applies to
encoding
- Optional - Encoding, defaults to UTF8
public static class WellKnownHttpHeaders
string CallingIdentity
string Continuation
string CorrelationId
string ETag
string Filename
string IfMatch
string IfNoneMatch
string MaxItemCount
string OnBehalfOf
string RequestId
string ValueSeparator
Generated by MarkdownCodeDoc version 1.2