public HttpServer(PhotonAgent agent) { this.agent = agent; Authorization = new HybridAuthorization(); Security = new HttpSecurityManager { Authorization = Authorization, CookieName = "PHOTON.AGENT.AUTH", }; Context = new HttpReceiverContext { SecurityMgr = Security, }; }
public HttpServer(PhotonServer server) { this.server = server; Authorization = new HybridAuthorization(); Security = new HttpSecurityManager { Authorization = Authorization, CookieName = "PHOTON.SERVER.AUTH", }; Context = new HttpReceiverContext { SecurityMgr = Security, }; }