Exemple #1
0
        /// <summary>
        /// Gets the current Audit Scope.
        /// </summary>
        /// <param name="controller">The MVC controller.</param>
        /// <returns>The current Audit Scope or NULL.</returns>
#if NETSTANDARD1_6
        public static AuditScope GetCurrentAuditScope(this Microsoft.AspNetCore.Mvc.Controller controller)
        {
            return(AuditAttribute.GetCurrentScope(controller.HttpContext));
        }
Exemple #2
0
 public static AuditScope GetCurrentAuditScope(this System.Web.Mvc.Controller controller)
 {
     return(AuditAttribute.GetCurrentScope(controller.HttpContext));
 }
Exemple #3
0
 /// <summary>
 /// Gets the current Audit Scope.
 /// </summary>
 /// <param name="page">The razor page.</param>
 /// <returns>The current Audit Scope or NULL.</returns>
 public static AuditScope GetCurrentAuditScope(this Microsoft.AspNetCore.Mvc.RazorPages.PageModel page)
 {
     return(AuditAttribute.GetCurrentScope(page.HttpContext));
 }