Security C# Tutorial

using System;
using System.Security.Permissions;
class MainClass
{
 
    [PrincipalPermission(SecurityAction.Demand, Role = @"MACHINE\Managers")]
    [PrincipalPermission(SecurityAction.Demand, Role = @"MACHINE\Developers")]    
    public static void MyMethod()
    {
    }
}