When you overload Start actions, you donβt need to create an entire type just for the initial configuration. You should also use use instead of manual deletion.
let startup (a:IAppBuilder) = a.UseCors(CorsOptions.AllowAll) |> ignore a.MapSignalR() |> ignore use app = WebApp.Start(hostUrl, startup)
But in order to make the code more pleasant, there is a problem with your hub code, because the dynamic module you called can only call a method with one argument, use FSharp.Interop.Dynamic (in nuget) for a reliable DLR statement ? .
open EkonBenefits.FSharp.Dynamic type MyHub() = inherit Hub() member this.Send (name : string) (message : string) = this.Clients.All?addMessage(name,message) |> ignore
jbtule
source share