Esempio n. 1
0
        private static IGenericTokenPrincipal GetPrincipal(WfClientServiceBrokerContext context)
        {
            IGenericTokenPrincipal principal = PrincipaContextAccessor.GetPrincipalInContext <IGenericTokenPrincipal, WfClientServiceBrokerContext>(context);

            if (principal == null)
            {
                principal = PrincipaContextAccessor.GetPrincipal <IGenericTokenPrincipal>();
            }

            return(principal);
        }
Esempio n. 2
0
 private static DeluxePrincipal GetPrincipal()
 {
     return(PrincipaContextAccessor.GetPrincipal <DeluxePrincipal>());
 }