Beispiel #1
0
 public UserService(Repository source)
 {
     Source = source;
     userProxy = XmlRpcProxyGen.Create<IUserAPI>();
     userProxy.Url = source.Url;
     Console.WriteLine ("The url is " + userProxy.Url);
     if(source.Proxy != "")
     {
         Console.WriteLine ("The proxy is :" + source.Proxy);
         userProxy.Proxy = new WebProxy(source.Proxy);
     }
     LoggedIn = false;
 }
Beispiel #2
0
 public void TestStuff()
 {
     // Create a new repository and log in
     Repository source = new Repository ();
     source.Name = "Bugzilla Landfill";
     source.Url = "https://landfill.bugzilla.org/bugzilla-3.4-branch/xmlrpc.cgi";
     source.UserName = "******";
     source.Password = "******";
     // not my real password, don't worry
     source.Proxy = "http://10.3.100.211:8080";
     if (source.LoginAndVerify ()) {
         source.FetchLegalValues();
         Sources.Add(source);
         //Query q1 = new Query();
         //Queries.Add(q1);
         //q1.SourceID = 0;
         //q1.TestStuff();
         SaveState();
     }
 }
Beispiel #3
0
 public BaseQuery(Repository source)
 {
 }
Beispiel #4
0
 public ReportedByQuery(Repository source)
     : base(source)
 {
 }
Beispiel #5
0
 public Query(Repository source)
 {
     Source = source;
 }
Beispiel #6
0
 public void SetSource(Repository source)
 {
     if (bugProxy == null) {
         Console.WriteLine ("Configuring base query");
         Source = source;
         bugProxy = XmlRpcProxyGen.Create<IBugAPI> ();
         bugProxy = (IBugAPI)Source.ConfigureXmlRpcProxy (bugProxy);
     }
 }