Exemple #1
0
        /* You can construct a Server instance, supplying optional
         * information about hostname, port, path, ssl support, and
         * tracer. */


        /*! \name Constructors  */
        //@{

        //////////////////////////////////////////////////////////////////////
        /// <summary>Initialize a new instance of the <see cref="Server"/> class
        /// with the specified parameters.</summary>
        /// <param name="hostname">The name of the server to use</param>
        /// <param name="port">The port to use</param>
        /// <param name="path">The path to use</param>
        /// <param name="ssl">If <b>true</b>, use https for connections, otherwise use http</param>
        /// <param name="traceWriter">A <b>TextWriter</b> instance to trace to</param>
        /// <remarks>The <paramref name="path"/> paremeter denotes the path to Bugzilla
        /// on the server. E.g. if Bugzilla is installed on <c>http://example.com/bugs</c>,
        /// then <paramref name="path"/> is <c>"bugs"</c>.</remarks>
        public Server(string hostname, uint port, string path, bool ssl, TextWriter traceWriter)
        {
            // Create the bugzillaproxy instance, associate it with our tracer
            this.Proxy  = XmlRpcProxyGen.Create <IProxy> ();
            this.tracer = new TextWriterTracer();
            this.tracer.Attach(Proxy);
            this.Hostname      = hostname;
            this.Port          = port;
            this.Path          = path;
            this.ssl           = ssl;
            this.tracer.Writer = traceWriter;
            LoggedIn           = false;
            UpdateUrl();
        }
Exemple #2
0
 /* You can construct a Server instance, supplying optional
   information about hostname, port, path, ssl support, and
   tracer. */
 /*! \name Constructors  */
 //@{
 //////////////////////////////////////////////////////////////////////
 /// <summary>Initialize a new instance of the <see cref="Server"/> class
 /// with the specified parameters.</summary>
 /// <param name="hostname">The name of the server to use</param>
 /// <param name="port">The port to use</param>
 /// <param name="path">The path to use</param>
 /// <param name="ssl">If <b>true</b>, use https for connections, otherwise use http</param>
 /// <param name="traceWriter">A <b>TextWriter</b> instance to trace to</param>
 /// <remarks>The <paramref name="path"/> paremeter denotes the path to Bugzilla
 /// on the server. E.g. if Bugzilla is installed on <c>http://example.com/bugs</c>,
 /// then <paramref name="path"/> is <c>"bugs"</c>.</remarks>
 public Server(string hostname, uint port, string path, bool ssl, TextWriter traceWriter)
 {
     // Create the bugzillaproxy instance, associate it with our tracer
     this.Proxy = XmlRpcProxyGen.Create<IProxy> ();
     this.tracer = new TextWriterTracer ();
     this.tracer.Attach (Proxy);
     this.Hostname = hostname;
     this.Port = port;
     this.Path = path;
     this.ssl = ssl;
     this.tracer.Writer = traceWriter;
     LoggedIn = false;
     UpdateUrl ();
 }