Snippets created by Joel Mueller

  • Async SNTP client

    An asynchronous SNTP client that can retrieve the current time from an internet time server (such as and optionally update the local system clock to match. Demonstrates async UDP communication, bit-shifting, and native interop/PInvoke.

    13 people like this

    Posted: 9 years ago by Joel Mueller

  • Get Assemblies from NuGet

    Given a NuGet package name, this code will download the package, extract it to a temp directory, and return a sequence of FileInfo objects representing assemblies from that package, with a preference for .NET 4.5 and 4.0 assemblies, if present. Requires the "DotNetZip" package.

    6 people like this

    Posted: 8 years ago by Joel Mueller

  • Using AutoMapper with F#

    This wrapper will handle translating F# quotations into LINQ expressions that AutoMapper can use, enabling AutoMapper to be configured from F# code. You must reference AutoMapper and FSharp.PowerPack.Linq, or include Linq.fsi and Linq.fs from the PowerPack into your project.

    10 people like this

    Posted: 8 years ago by Joel Mueller

  • Asynchronous Entity Framework Query

    Entity Framework doesn't currently support async operations, but as long as the underlying provider is System.Data.SqlClient we can make it work.

    3 people like this

    Posted: 7 years ago by Joel Mueller