public RollCallController(HttpListenerContext client, RollcallServer server)
 {
     this.client   = client;
     this.request  = client.Request;
     this.response = client.Response;
     this.server   = server;
 }
 public SignController(McrRepository mcrRepository,
     HttpListenerContext client, RollcallServer server, Session session) : base(client, server)
 {
     var encoding = request.ContentEncoding;
     this.mcrRepository = mcrRepository;
     this.session = session;
     identityCookie = request.Cookies[Keys.IDENTITY];
 }
Beispiel #3
0
        public ResourceController(HttpListenerContext client, RollcallServer server) : base(client, server)
        {
            var segments = request.Url.Segments;
            var strb     = new StringBuilder();

            for (int i = 1; i < segments.Length; i++)
            {
                strb.Append(segments[i]);
            }
            this.sourceName = strb.ToString();
            if (sourceName.Contains(".html"))
            {
                response.ContentType = "text/html; charset=utf-8";
            }
        }