Skip to content

Conversation

svatal
Copy link
Contributor

@svatal svatal commented Oct 26, 2017

No description provided.


namespace MasterDevs.ChromeDevTools
{
public interface ICommandResponseWrapper<T>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@svatal any reason not to merge the ICommandResponse and ICommandResponseWrapper?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have been afraid how deserialization would cope with a class that have something more than a basic properties. Did not tested it though.

if the communication from chrome results in Exception, there is no way
for user of the library to catch/handle it (except for
AppDomain.CurrentDomain.UnhandledException)
@svatal
Copy link
Contributor Author

svatal commented Nov 3, 2017

I've added error handling for the response. Since it does not happen on main program flow, I haven't found a way how to catch these exeptions ...

I've been using protocol 60 with chromium 62 and for a one particulat website (seznam.cz) it delivered Page.lifecycle events even thought they have own switch to enable them.

Protocol update will probably follow soon in own PR.

private static object _Lock = new object();

public ChromeSession(string endpoint, ICommandFactory commandFactory, ICommandResponseFactory responseFactory, IEventFactory eventFactory)
public ChromeSession(string endpoint, ICommandFactory commandFactory, ICommandResponseFactory responseFactory, IEventFactory eventFactory, Action<Exception> onError)
Copy link
Member

@brewdente brewdente Dec 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onError should be optional. If it's not provided, it should throw by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is a breaking change, but if we keep the throwing behaviour, there is no place to catch it - since it can occur on another thread while recieving event from chrome.
Are you sure you really want to keep this behaviour by default instead of forcing user to handle it?

@svatal
Copy link
Contributor Author

svatal commented Feb 8, 2018

Ad AppVeyor fail: comparing with older builds, dotnet pack built only netstandard, not net45 but were looking for both anyway - could you look into it, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants