Joseph Musser

Results 575 comments of Joseph Musser

Maybe this gets at the crux of my question: if we secretly ignored the DeviceMode.Overlapped setting and always used non-overlapped I/O, what would the difference be for the users of...

Oh! I noticed that the timeout parameter is silently ignored if you don't specify DeviceMode.Overlapped. Maybe the only reason for overlapped I/O was to enable timeouts, and maybe not. How...

Hans Passant is pretty knowledgeable. On a question involving reading from a serial port (https://stackoverflow.com/a/18220867) he says: > In other words, you have not yet found a good reason to...

Chatting about this a bit at https://discordapp.com/channels/143867839282020352/312132327348240384/760576302121615442 in https://aka.ms/csharp-discord, it's sounding like SetCommTimeouts would not work for concurrent per-thread, per-operation timeouts with different timeouts. One thread's SetCommTimeouts call could happen...

SetCommTimeouts is great for when you have a single timeout setting per file handle. But the HidDevice.ReadData method takes an `int timeout` parameter, which means that timeouts can be different...

Another goal we might have is to replace the code with FileStream (the proof of concept seemed to work) which would also open up the possibility of true (no-thread) async:...

Today I discovered https://docs.microsoft.com/en-us/uwp/api/windows.devices.humaninterfacedevice.hiddevice?view=winrt-19041. (All UWP APIs are available in .NET Framework and .NET Core projects by adding `` or similar in the csproj.)

Using a DIY interceptor (defined at ): ```cs // In Program.Main command.Handler = CommandHandler.Create(CommandVerifier.Intercept(MigrateAsync)); ``` ```cs using NUnit.Framework; using Shouldly; public static class EntryPointTests { [Test] public static async Task...

@dasMulli I'd have a mild preference for avoiding an extra assembly, and maybe I'd support it by saying it would be more symmetrical on the outside (`startImmediately` doesn't require the...

No problem. I'm working through my OSS backlog and this was on it, but let me know what you want to do. If it's not something we want, I'm just...