Exemplo n.º 1
0
        public void Call(string serviceType, object args)
        {
            ICustomIdentity Identity = new CustomIdentity();
            IExpando        expando  = args as IExpando;

            if (expando.Contain("IsAuthenticated"))
            {
                Identity.IsAuthenticated = expando.GetBoolean("IsAuthenticated");
            }

            if (expando.Contain("UserId"))
            {
                Identity.UserId = expando.GetString("UserId");
            }
            if (expando.Contain("Ticket"))
            {
                Identity.Ticket = expando.GetString("Ticket");
            }
            context.Identity = Identity;
        }