Esempio n. 1
0
        protected override void Response(HttpChannel channel)
        {
            if (channel.ContentType.Contains("pdf"))
            {
                StreamListenerTee stream_listener_tee = new StreamListenerTee();
                stream_listener_tee.Completed += streamListener_Completed;

                TraceableChannel tc = channel.CastToTraceableChannel();
                tc.SetNewListener(stream_listener_tee);
            }
        }
Esempio n. 2
0
 protected override void ObserveRequest(HttpChannel p_HttpChannel)
 {
     if (p_HttpChannel != null)
     {
         //if (p_HttpChannel.Uri.AbsolutePath.Contains("/ticket.aspx"))
         //{
         TraceableChannel  oTC     = p_HttpChannel.CastToTraceableChannel();
         StreamListenerTee oStream = new StreamListenerTee();
         oStream.Completed += (se, ev) => { Stream_Completed(se, p_HttpChannel.Uri.ToString()); };
         oTC.SetNewListener(oStream);
         //}
     }
 }
Esempio n. 3
0
        protected override void ObserveRequest(HttpChannel p_HttpChannel)
        {
            if (p_HttpChannel != null)
            {
                if (p_HttpChannel.Uri.AbsolutePath.Contains(Utils.Constants.SEARCH_RESPONSE_ENDPOINT) || p_HttpChannel.Uri.AbsolutePath.Contains(Utils.Constants.AUTH_RESPONSE_ENDPOINT))
                {
                    this.url = p_HttpChannel.Uri.AbsolutePath;

                    TraceableChannel  oTC     = p_HttpChannel.CastToTraceableChannel();
                    StreamListenerTee oStream = new StreamListenerTee();
                    oStream.Completed += Stream_Completed;
                    oTC.SetNewListener(oStream);
                }
            }
        }