Ejemplo n.º 1
0
        public Principal(UserWorkRequest request, IIdentity identity)
        {
            if (request == null)
            {
                throw new FatalException("request arguement can't be null.");
            }
            if (identity == null)
            {
                throw new FatalException("identity arguement can't be null.");
            }

            _request = request;
            _identity = identity;
        }
Ejemplo n.º 2
0
        public Principal(UserWorkRequest request, IIdentity identity)
        {
            if (request == null)
            {
                throw new FatalException("request arguement can't be null.");
            }
            if (identity == null)
            {
                throw new FatalException("identity arguement can't be null.");
            }

            _request  = request;
            _identity = identity;
        }