Skip to content

Issue #31: ETW APIs are unimplemented#213

Merged
david-c-kline merged 5 commits into
microsoft:masterfrom
CBaud:master
Feb 14, 2017
Merged

Issue #31: ETW APIs are unimplemented#213
david-c-kline merged 5 commits into
microsoft:masterfrom
CBaud:master

Conversation

@CBaud
Copy link
Copy Markdown
Contributor

@CBaud CBaud commented Feb 14, 2017

No description provided.

@msftclas
Copy link
Copy Markdown

Hi @CBaud, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Chris Baudin). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

Copy link
Copy Markdown
Contributor

@WilliamsJason WilliamsJason left a comment

Choose a reason for hiding this comment

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

Looks good to me! Would be good to get at least one other person to look at these then we should merge them in. If nobody has time in the next day or two, I'll just merge them in anyways.

Looks like the websocket changes would be considered breaking changes for anyone consuming the DLL if they update to a newer version, is that correct? If so we might want to update the version number as well and make sure we document the change.

/// <param name="etwEvents">The <see cref="EtwEvents"/> to validate.</param>
private static void ValidateEtwEvents(EtwEvents etwEvents)
{
Assert.IsNotNull(etwEvents);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't need to check event list elements?

@Scottj1s
Copy link
Copy Markdown
Member

Great work! Nice to see this support.

{
TestHelpers.MockHttpResponder.AddMockResponse(DevicePortal.EtwProvidersApi, HttpMethods.Get);

Task<EtwProviders> getEtwProvidersTask = TestHelpers.Portal.GetEtwProvidersAsync();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I believe that the VS test infrastructure supports making methods 'public async Task' so you can 'await' on the task to make things a little cleaner and more representative; i.e.
EtwProviders etwProviders = await TestHelpers.Portal.GetEtwProvidersAsync();

@david-c-kline david-c-kline self-requested a review February 14, 2017 17:33

/// <summary>
/// The connection to the websocket.
/// </summary>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You're adding an IDisposable member - shouldn't you add an IDisposable implementation to this class? That being said, there was already an IDisposable member, so perhaps it's unnecessary?

@david-c-kline
Copy link
Copy Markdown

This is fantastic! Thanks for implementing this, Chris!

@david-c-kline david-c-kline merged commit 5870eb3 into microsoft:master Feb 14, 2017
This was referenced Feb 14, 2017
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.

7 participants