/[dgee]/dgee/cslib/DotGNU/DGEE/Protocols/XmlRpc/XmlRpcInvoker.cs
ViewVC logotype

Diff of /dgee/cslib/DotGNU/DGEE/Protocols/XmlRpc/XmlRpcInvoker.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.2 by npg, Tue Jul 8 17:36:54 2003 UTC revision 1.1.2.2.2.1 by npg, Mon Jul 28 19:16:36 2003 UTC
# Line 21  Line 21 
21   *   *
22   * --------------------------------------------------------------------------   * --------------------------------------------------------------------------
23   */   */
24    using DotGNU.XmlRpc;
25    
26  namespace DotGNU.DGEE.Protocols.XmlRpc  namespace DotGNU.DGEE.Protocols.XmlRpc
27  {  {
28    /// <summary>    /// <summary>
# Line 49  namespace DotGNU.DGEE.Protocols.XmlRpc Line 51  namespace DotGNU.DGEE.Protocols.XmlRpc
51        // This is for testing only.  See whether a -f is given and use        // This is for testing only.  See whether a -f is given and use
52        // that content as input for the invoker.  This simulates the incoming        // that content as input for the invoker.  This simulates the incoming
53        // request from the DGEE VM.        // request from the DGEE VM.
       String request;  
54    
55        if( args[0] == "-f" ) {        if( args[0] == "-f" ) {
56          System.IO.FileInfo fi = new System.IO.FileInfo( args[1] );          System.IO.FileInfo fi = new System.IO.FileInfo( args[1] );
57          System.IO.StreamReader sr = fi.OpenText();          System.IO.StreamReader sr = fi.OpenText();
58          request = sr.ReadToEnd();          string r = sr.ReadToEnd();
59            //XmlRpcReader reader = new XmlRpcReader( r );
60        }        }
61        else {        else {
62          request = args[0];          IWebServiceRequest request = new MethodRequest();
63            request.Assembly = args[0];
64            request.Class = args[1];
65            request.Method = args[2];
66            invoker.Run( request );
67        }        }
       invoker.Run( request );  
68      }      }
69    }    }
70  }  }

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.2.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26