Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Func<HttpContextBase> ContextProvider = () => new HttpContextWrapper(HttpContext.Current);
- public override bool IsValid(object value)
- {
- if (value == null) return false;
- var identityName = ContextProvider().User.Identity.Name;
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment