2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / Microsoft.Web.Services / Microsoft.Web.Services.Diagnostics / TraceInputFilter.cs
1 //
2 // TraceInputFilter.cs: Trace Input Filter
3 //
4 // Author:
5 //      Sebastien Pouliot (spouliot@motus.com)
6 //
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
8 //
9
10 using System;
11 using System.IO;
12 using System.Reflection;
13 using System.Xml;
14
15 using Microsoft.Web.Services.Configuration;
16
17 namespace Microsoft.Web.Services.Diagnostics {
18
19         public class TraceInputFilter : SoapInputFilter {
20
21                 private const string tracename = "InputTrace.webinfo";
22                 private string file;
23
24                 public TraceInputFilter () 
25                 {
26                         string filename = WebServicesConfiguration.Config.TraceInput;
27                         if (filename == null)
28                                 filename = tracename;
29                         file = TraceFilter.GetCompleteFilename (filename);
30                 }
31
32                 public override void ProcessMessage (SoapEnvelope envelope) 
33                 {
34                         TraceFilter.WriteEnvelope (file, envelope);
35                 }
36         }
37 }