Category : .net-5

I am not using Docker Desktop, I only installed the CLI on Ubuntu, on WSL2. I also downloaded RabbitMQ image and successfully connected to localhost:15672 from my browser on Windows host. But, when it came to the .NET project, it wasn’t possible. This is the connection string: "host=localhost:5672;publisherConfirms=true;timeout=25;username=nerdstore;password=!abcd1234!" One solution was to use eth0’s inet ..

Read more

There are two (it would seem) idiomatic ways to minimize WPF window in in code: window.WindowState = window.WindowState.Minimized SystemCommands.MinimizeWindow(window) The desired behavior is that the windows 11 window minimize animation is seen. The actual behavior is that the window instantly disappears from the screen. This is for a window with a custom chrome – therefore ..

Read more

There are two (it would seem) idiomatic ways to minimize WPF window in in code: window.WindowState = window.WindowState.Minimized SystemCommands.MinimizeWindow(window) The desired behavior is that the windows 11 window minimize animation is seen. The actual behavior is that the window instantly disappears from the screen. This is for a window with a custom chrome – therefore ..

Read more

I used to use PInvoke: [DllImport("Kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private extern static bool GetVolumeInformation( string rootPathName, StringBuilder volumeNameBuffer, int volumeNameSize, out uint volumeSerialNumber, out uint maximumComponentLength, out FileSystemFeature fileSystemFlags, StringBuilder fileSystemNameBuffer, int nFileSystemNameSize); public static VolumeInformation GetVolumeInfo(string path) { string root = System.IO.Path.GetPathRoot(path); const int maxPath = 261; StringBuilder volumeNameBuffer ..

Read more