Example #1
0
        static server()
        {
            PersonFetchHandler handler = personId =>{
                return new Person{
                    Id = 1,
                    Enabled = true,
                    Name = "刘铭",
                    Sex = 1,
                    Username = "******"
                };
            };

            SSOLoginHandler ssoHandler = (user, pwd) =>
            {
                return 1;
            };

            SessionSington = new SessionServer(handler, ssoHandler,"123456",null);
        }
 public SessionServerResponse(SessionServer server, string communicateToken)
 {
     this._server = server;
     this._communicateToken = communicateToken;
 }
Example #3
0
 public SessionServerResponse(SessionServer server, string communicateToken)
 {
     this._server           = server;
     this._communicateToken = communicateToken;
 }
Example #4
0
 internal SessionServerResponse(SessionServer server)
 {
     this._server = server;
 }