Esempio n. 1
0
        public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
        {
            this.encrtpyHelper = context.HttpContext.RequestServices.GetService <IEncrtpyHelper>();
            //// execute any code before the action executes
            UnprotectProperties(context);

            var result = await next();

            // execute any code after the action executes
        }
Esempio n. 2
0
 public ProtectStringValueProviderX(System.Reflection.PropertyInfo pi, IEncrtpyHelper encryptHelper)
 {
     this.targetProperty = pi;
     this.encryptHelper  = encryptHelper;
 }
Esempio n. 3
0
 public ProtectedStringPropertyResolverX(IServiceProvider serviceProvider)
 {
     encrtpyHelper = (IEncrtpyHelper)serviceProvider.GetService(typeof(IEncrtpyHelper));
 }