Skip to content

Instantly share code, notes, and snippets.

@aaronpowell
Created October 15, 2014 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronpowell/3fc27e97f6ef3544a08c to your computer and use it in GitHub Desktop.
Save aaronpowell/3fc27e97f6ef3544a08c to your computer and use it in GitHub Desktop.
Nimbus + F#
open System
open Config
open MyApp.Messages
[<EntryPoint>]
let main argv =
let bus = busBuilder()
{ Value = "Hey from F#" }
|> bus.Send
|> ignore
Console.ReadKey() |> ignore
return 0
namespace MyApp.Messages
open Nimbus.MessageContracts
[<CLIMutable>]
type SomeCommand =
{ Value : string }
with interface IBusCommand
namespace NyApp.Handlers
open Nimbus.Handlers
open MyApp.Messages
type SumeCommandHandler() =
interface IHandleCommand<SomeCommand> with
member x.Handle(busCommand: SomeCommand): Task =
//Do stuff here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment