/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="api">The tool API.</param> /// <param name="toolset">The toolset information.</param> public ToolMercury(IToolApi api, ToolsetInfoAttribute toolset) : base(api, toolset) { // Create the configuration. this.config = new MercuryConfig(api); // Create the control. this.control = new ControlMercury(this.config); }
/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="api">The tool API.</param> /// <param name="toolset">The toolset information.</param> public ToolCdnFinder(IToolApi api, ToolsetInfoAttribute toolset) : base(api, toolset) { // Create the configuration. this.config = new CdnFinderConfig(api); // Create the control. this.control = new ControlCdnFinder(this.config); }
/// <summary> /// Creates a new control instance. /// </summary> /// <param name="api">The tools API.</param> public ControlWebCrawler(IToolApi api) { // Initialize the component. this.InitializeComponent(); // Set the API. this.api = api; }
/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="api">The tool API.</param> /// <param name="toolset">The toolset information.</param> public ToolWebClient(IToolApi api, ToolsetInfoAttribute toolset) : base(api, toolset) { // Create the configuration. this.config = new WebClientConfig(api); // Initialize the control. this.control = new ControlWebClient(this.config); }
/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="api">The tool API.</param> /// <param name="toolset">The toolset information.</param> public ToolTraceroute(IToolApi api, ToolsetInfoAttribute toolset) : base(api, toolset) { // Create the configuration. this.config = new TracerouteConfig(api); // Initialize the control. this.control = new ControlTraceroute(this.config); }
/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="tool">The tool for this tool item.</param> /// <param name="api">The tool API.</param> public ToolMercuryAnalytics(Tool tool, IToolApi api) : base(tool, api) { // Create the configuration. this.config = new MercuryConfig(api); // Create the control. this.control = new ControlMercuryAnalytics(this.config); }
/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="api">The tool API.</param> /// <param name="toolset">The toolset information.</param> public Tool(IToolApi api, ToolsetInfoAttribute toolset) { // Check the arguments. if (null == api) throw new ArgumentNullException("api"); if (null == toolset) throw new ArgumentNullException("toolset"); // Set the parameters. this.api = api; this.toolset = toolset; // Get the tool information. this.info = Tool.GetToolInfo(this.GetType()); // Check the tool information is not null. if (null == this.info) throw new InvalidOperationException("Cannot create a tool object from a class without the tool information attribute."); }
/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="api">The tool API.</param> /// <param name="toolset">The toolset information.</param> public ToolAlexaTopSites(IToolApi api, ToolsetInfoAttribute toolset) : base(api, toolset) { // Create the control. this.control = new ControlAlexaTopSites(api); // Create the Alexa ranking database table. this.dbTableRanking = new DbTableTemplate<AlexaRankDbObject>(new Guid("7D65B301-C4C9-4823-9D64-0EB4E2CA43F4"), "Alexa ranking"); this.dbTableHistory = new DbTableTemplate<AlexaHistoryDbObject>(new Guid("BD058EA2-0D75-4671-80A0-5A94A979B7E9"), "Alexa history"); // Add the tables to the database. this.Api.DatabaseAddTable(this.dbTableRanking); this.Api.DatabaseAddTable(this.dbTableHistory); this.Api.DatabaseAddRelationship(this.dbTableHistory, this.dbTableRanking, "Timestamp", "Timestamp", true); this.Api.DatabaseAddRelationship(this.dbTableHistory, this.dbTableRanking, "Global", "Global", true); this.Api.DatabaseAddRelationship(this.dbTableHistory, this.dbTableRanking, "Country", "Country", true); }
/// <summary> /// Creates a new control instance. /// </summary> /// <param name="api">The tools API.</param> public ControlAlexaTopSites(IToolApi api) { // Initialize the component. this.InitializeComponent(); // Set the API. this.api = api; // Set the status. this.status = this.api.Status.GetHandler(this); this.status.Send(ApplicationStatus.StatusType.Normal, "Ready.", Resources.Information_16); // Initialize the number of pages. this.comboBoxPages.SelectedIndex = 0; // Initialize the list of countries. this.OnUpdateCountries(); }
/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="tool">The tool for this tool item.</param> /// <param name="api">The tool API.</param> public ToolMercuryClient(Tool tool, IToolApi api) : base(tool, api) { // Create the configuration. this.config = new MercuryConfig(api); // Create the control. this.control = new ControlMercuryClient(this.config); // Create the tool methods. this.Tool.AddMethod( new Guid("24FDC1EC-FA12-4A42-B410-3A868B9576D9"), Resources.ToolMercuryClientMethodUploadSessionFromPlanetLabName, Resources.ToolMercuryClientMethodUploadSessionFromPlanetLabDescription, this.UploadSessionFromPlanetLab); this.Tool.AddMethod( new Guid("5AD386C4-EA86-4C31-A0A1-DCD6CF1107B2"), Resources.ToolMercuryClientMethodUploadTracerouteFromPlanetLabName, Resources.ToolMercuryClientMethodUploadTracerouteFromPlanetLabDescription, this.UploadTracerouteFromPlanetLab); }
/// <summary> /// Creates a new SSH client configuration instance. /// </summary> /// <param name="api">The tools API.</param> public SshClientConfig(IToolApi api) { this.api = api; }
/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="api">The tool API.</param> /// <param name="toolset">The toolset information.</param> public ToolWebCrawler(IToolApi api, ToolsetInfoAttribute toolset) : base(api, toolset) { }
/// <summary> /// Creates a new web client configuration instance. /// </summary> /// <param name="api">The tools API.</param> public TracerouteConfig(IToolApi api) { this.api = api; }
/// <summary> /// Creates a new Mercury client configuration instance. /// </summary> /// <param name="api">The tools API.</param> public MercuryConfig(IToolApi api) { this.api = api; }
/// <summary> /// Creates a new tool item instance. /// </summary> /// <param name="tool">The tool.</param> /// <param name="api">The tool API.</param> public ToolItem(Tool tool, IToolApi api) { this.tool = tool; this.api = api; }
/// <summary> /// Creates a new CDN Finder configuration instance. /// </summary> /// <param name="api">The tools API.</param> public CdnFinderConfig(IToolApi api) { this.api = api; }