Skip to content
Snippets Groups Projects
Commit 3d77cb94 authored by brewdente's avatar brewdente
Browse files

CodeMaid cleanup

parent 00f37935
Branches
Tags
No related merge requests found
Showing
with 60 additions and 141 deletions
...@@ -4,9 +4,7 @@ using System; ...@@ -4,9 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Linq;
using System.Net; using System.Net;
using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
...@@ -15,9 +13,10 @@ namespace MasterDevs.ChromeDevTools ...@@ -15,9 +13,10 @@ namespace MasterDevs.ChromeDevTools
public class ChromeProcess : IChromeProcess public class ChromeProcess : IChromeProcess
{ {
public DirectoryInfo UserDirectory { get; set; } public DirectoryInfo UserDirectory { get; set; }
public Process Process { get; set; } public Process Process { get; set; }
public string RemoteDebuggingUri { get; set; }
public string RemoteDebuggingUri { get; set; }
public void Dispose() public void Dispose()
{ {
......
using System; using System.Diagnostics;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO; using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
......
...@@ -73,7 +73,6 @@ namespace MasterDevs.ChromeDevTools ...@@ -73,7 +73,6 @@ namespace MasterDevs.ChromeDevTools
}); });
} }
public Task<ICommandResponse> SendAsync<T>() public Task<ICommandResponse> SendAsync<T>()
{ {
var command = _commandFactory.Create<T>(); var command = _commandFactory.Create<T>();
...@@ -166,6 +165,7 @@ namespace MasterDevs.ChromeDevTools ...@@ -166,6 +165,7 @@ namespace MasterDevs.ChromeDevTools
return response; return response;
}); });
} }
private bool TryGetCommandResponse(byte[] data, out ICommandResponse response) private bool TryGetCommandResponse(byte[] data, out ICommandResponse response)
{ {
response = _responseFactory.Create(data); response = _responseFactory.Create(data);
......
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public class ChromeSessionFactory : IChromeSessionFactory public class ChromeSessionFactory : IChromeSessionFactory
{ {
......
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public interface ICommand public interface ICommand
{ {
...@@ -12,6 +6,7 @@ namespace MasterDevs.ChromeDevTools ...@@ -12,6 +6,7 @@ namespace MasterDevs.ChromeDevTools
string Method { get; } string Method { get; }
} }
public class Command : ICommand public class Command : ICommand
{ {
public long Id public long Id
......
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
......
using System; using System.Collections.Concurrent;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
......
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public interface ICommandResponse public interface ICommandResponse
{ {
...@@ -12,6 +6,7 @@ namespace MasterDevs.ChromeDevTools ...@@ -12,6 +6,7 @@ namespace MasterDevs.ChromeDevTools
string Method { get; } string Method { get; }
} }
public class CommandResponse : ICommandResponse public class CommandResponse : ICommandResponse
{ {
public long Id public long Id
......
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
......
using System; using Newtonsoft.Json.Linq;
using System.Collections.Generic; using System;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
......
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
public interface IErrorResponse public interface IErrorResponse
{ {
Error Error { get; } Error Error { get; }
long Id { get; } long Id { get; }
} }
public class Error public class Error
{ {
public int Code { get; set; } public int Code { get; set; }
public string Message { get; set; } public string Message { get; set; }
} }
public class ErrorResponse : IErrorResponse, ICommandResponse public class ErrorResponse : IErrorResponse, ICommandResponse
{ {
public Error Error public Error Error
......
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public interface IEvent public interface IEvent
{ {
string Method { get; set; } string Method { get; set; }
} }
public class Event : IEvent public class Event : IEvent
{ {
public string Method { get; set; } public string Method { get; set; }
} }
public class Event<T> : Event public class Event<T> : Event
{ {
public T Params { get; set; } public T Params { get; set; }
} }
} }
\ No newline at end of file
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
......
using System; using Newtonsoft.Json.Linq;
using System.Collections.Generic; using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
......
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public delegate void EventHandler(object sender, IEvent response); public delegate void EventHandler(object sender, IEvent response);
} }
\ No newline at end of file
using System; namespace Newtonsoft.Json.Linq
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Newtonsoft.Json.Linq
{ {
public static class JTokenExtensions public static class JTokenExtensions
{ {
......
using System; using System;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
......
using System; using System;
using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
......
using System; namespace MasterDevs.ChromeDevTools
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools
{ {
public interface IChromeProcessFactory public interface IChromeProcessFactory
{ {
......
using System; using System.Threading.Tasks;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasterDevs.ChromeDevTools namespace MasterDevs.ChromeDevTools
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment