public static AuditScope GetCurrentAuditScope(this System.Web.Http.ApiController apiController)
 {
     return(AuditApiAttribute.GetCurrentScope(apiController.Request));
 }
        /// <summary>
        /// Gets the current Audit Scope.
        /// </summary>
        /// <param name="apiController">The API controller.</param>
        /// <returns>The current Audit Scope or NULL.</returns>
#if NETSTANDARD1_6 || NET451
        public static AuditScope GetCurrentAuditScope(this Microsoft.AspNetCore.Mvc.Controller apiController)
        {
            return(AuditApiAttribute.GetCurrentScope(apiController.HttpContext));
        }
 /// <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 httpContext, IContextWrapper contextWrapper = null)
 {
     return(AuditApiAttribute.GetCurrentScope(httpContext, contextWrapper));
 }
示例#4
0
 public static AuditScope GetCurrentAuditScope(this HttpRequestMessage httpContext)
 {
     return(AuditApiAttribute.GetCurrentScope(httpContext));
 }
 /// <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(AuditApiAttribute.GetCurrentScope(apiController.Request, contextWrapper));
 }