Skip to content

Conversation

@Mandrakia
Copy link
Contributor

Added UserAgentFallback to the App object

BridgeConnector.Socket.Emit("appGetUserAgentFallback");

return taskCompletionSource.Task;
}).Result;
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm .Result can causes deadlocks. The cleanest implementation would be:
public Task GetUserAgentFallback
public void SetUserAgentFallback

Or what do you guys think?

Copy link
Member

Choose a reason for hiding this comment

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

I think it would be a problem with functions that are called regularly during application runtime. I would leave it at Properties.

Copy link
Member

Choose a reason for hiding this comment

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

I think some application design is important too... otherwise we would only have methods..

@GregorBiswanger GregorBiswanger self-assigned this May 19, 2020
@GregorBiswanger
Copy link
Member

@Mandrakia Thanks for your contribution.
Write me your postal address on Gitter and you will get Electron.NET sticker :)

@GregorBiswanger GregorBiswanger merged commit c40affb into ElectronNET:master May 19, 2020
@GregorBiswanger GregorBiswanger added this to the 9.31.1 milestone Jun 2, 2020
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.

3 participants