コード例 #1
0
        void ISecurityBeforeExecuteAction.OnExecuteAction(ISecurityContext context)
        {
            var result = context.Assert();

            if (result.IsDenied)
            {
                throw result.SecurityError;
            }
        }
コード例 #2
0
 void ISecurityBeforeExecuteAction.OnExecuteAction(ISecurityContext context)
 {
     var result = context.Assert();
     if (result.IsDenied)
         throw result.SecurityError;
 }