예제 #1
0
        public HttpServer(PhotonAgent agent)
        {
            this.agent = agent;

            Authorization = new HybridAuthorization();

            Security = new HttpSecurityManager {
                Authorization = Authorization,
                CookieName    = "PHOTON.AGENT.AUTH",
            };

            Context = new HttpReceiverContext {
                SecurityMgr = Security,
            };
        }
예제 #2
0
        public HttpServer(PhotonServer server)
        {
            this.server = server;

            Authorization = new HybridAuthorization();

            Security = new HttpSecurityManager {
                Authorization = Authorization,
                CookieName    = "PHOTON.SERVER.AUTH",
            };

            Context = new HttpReceiverContext {
                SecurityMgr = Security,
            };
        }