示例#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;
 }
示例#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 = "[email protected]";
     source.Password = "opeth";
     // 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();
     }
 }
示例#3
0
 public BaseQuery(Repository source)
 {
 }
示例#4
0
 public ReportedByQuery(Repository source)
     : base(source)
 {
 }
示例#5
0
 public Query(Repository source)
 {
     Source = source;
 }
示例#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);
     }
 }