Skip to content
Snippets Groups Projects
Commit 1e5477a4 authored by brewdente's avatar brewdente
Browse files

Ficing the "using" formatting. Adding a using statement to the example.

parent a43a406d
No related branches found
No related tags found
No related merge requests found
Showing
with 41 additions and 29 deletions
......@@ -232,6 +232,7 @@ namespace ChromeDevToolsProtocolParser
var className = ToCamelCase(commandName) + CommandResponseSubclass;
var sb = new StringBuilder();
sb.AppendFormat("using ChromeDevTools;");
sb.AppendLine();
sb.AppendLine("using Newtonsoft.Json;");
sb.AppendLine("using System.Collections.Generic;");
sb.AppendLine();
......@@ -264,6 +265,7 @@ namespace ChromeDevToolsProtocolParser
var className = ToCamelCase(commandName) + CommandSubclass;
var sb = new StringBuilder();
sb.AppendFormat("using ChromeDevTools;");
sb.AppendLine();
sb.AppendLine("using Newtonsoft.Json;");
sb.AppendLine("using System.Collections.Generic;");
sb.AppendLine();
......@@ -310,6 +312,7 @@ namespace ChromeDevToolsProtocolParser
var className = type["id"].ToString();
var sb = new StringBuilder();
sb.AppendFormat("using ChromeDevTools;");
sb.AppendLine();
sb.AppendLine("using Newtonsoft.Json;");
sb.AppendLine("using System.Collections.Generic;");
sb.AppendLine();
......
......@@ -18,11 +18,9 @@ namespace AutoWebPerf
static void Main(string[] args)
{
IChromeProcess chromeProcess = null;
try
var chromeProcessFactory = new ChromeProcessFactory();
using (var chromeProcess = chromeProcessFactory.Create(9222))
{
var chromeProcessFactory = new ChromeProcessFactory();
chromeProcess = chromeProcessFactory.Create(9222);
var endpointUrl = chromeProcess.GetSessions().Result.LastOrDefault();
var chromeSessionFactory = new ChromeSessionFactory();
......@@ -39,13 +37,6 @@ namespace AutoWebPerf
Console.ReadLine();
}
finally
{
if (null != chromeProcess)
{
chromeProcess.Dispose();
}
}
}
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Accessibility
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Accessibility
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Accessibility
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Accessibility
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Accessibility
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Accessibility
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Accessibility
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
using ChromeDevTools;using Newtonsoft.Json;
using ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace ChromeDevTools.Protocol.Animation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment