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; }
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(); } }
public BaseQuery(Repository source) { }
public ReportedByQuery(Repository source) : base(source) { }
public Query(Repository source) { Source = source; }
public void SetSource(Repository source) { if (bugProxy == null) { Console.WriteLine ("Configuring base query"); Source = source; bugProxy = XmlRpcProxyGen.Create<IBugAPI> (); bugProxy = (IBugAPI)Source.ConfigureXmlRpcProxy (bugProxy); } }