CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of attributes
C#
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
    public class SomeAuthorization : AuthorizeAttribute
    {
        public SomeAuthorization()
        {
        }
 
        protected override bool AuthorizeCore(HttpContextBase httpContext)
        {
            var result = Service.SomeCheckMethod(HttpContext.Current.User);
by Joel Mendoza   December 20, 2010 @ 11:28am
172 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate