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

CodeMaid cleanup

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