/// <summary>
 /// Gets the current Audit Scope.
 /// </summary>
 /// <param name="httpRequest">The http request to get the scope from.</param>
 /// <returns>The current Audit Scope or NULL.</returns>
 /// <param name="contextWrapper">The context wrapper instance to use to provide the context. Default is NULL to use the default ContextWrapper.</param>
 public static AuditScope GetCurrentAuditScope(this HttpRequestMessage httpRequest, IContextWrapper contextWrapper = null)
 {
     return(AuditApiAdapter.GetCurrentScope(httpRequest, contextWrapper));
 }
 /// <summary>
 /// Discards the Audit Scope related to the current context, if any.
 /// </summary>
 public static void DiscardCurrentAuditScope(this HttpContext httpContext)
 {
     AuditApiAdapter.DiscardCurrentScope(httpContext);
 }
 /// <summary>
 /// Gets the current Audit Scope.
 /// </summary>
 /// <param name="apiController">The API controller.</param>
 /// <returns>The current Audit Scope or NULL.</returns>
 /// <param name="contextWrapper">The context wrapper instance to use to provide the context. Default is NULL to use the default ContextWrapper.</param>
 public static AuditScope GetCurrentAuditScope(this System.Web.Http.ApiController apiController, IContextWrapper contextWrapper = null)
 {
     return(AuditApiAdapter.GetCurrentScope(apiController.Request, contextWrapper));
 }
 /// <summary>
 /// Gets the current Audit Scope.
 /// </summary>
 /// <param name="httpContext">The http context to get the scope from.</param>
 /// <returns>The current Audit Scope or NULL.</returns>
 public static AuditScope GetCurrentAuditScope(this HttpContext httpContext)
 {
     return(AuditApiAdapter.GetCurrentScope(httpContext));
 }
 /// <summary>
 /// Gets the current Audit Scope.
 /// </summary>
 /// <param name="apiController">The API controller.</param>
 /// <returns>The current Audit Scope or NULL.</returns>
 public static AuditScope GetCurrentAuditScope(this Microsoft.AspNetCore.Mvc.ControllerBase apiController)
 {
     return(AuditApiAdapter.GetCurrentScope(apiController.HttpContext));
 }