An unhandled exception of type 'System.AggregateException' occurred in FSharp.Core.dll
File EventStore.fs line# 58 gives the above error
let subscribe (projection: Event -> unit) (getStore: Async) =
async {
let! store = getStore
let credential = SystemData.UserCredentials("admin", "changeit")
do! Async.AwaitTask
<| store.SubscribeToAllAsync(true, (fun s e -> deserialize e |> Option.iter projection), userCredentials = credential) |> Async.Ignore
return store }
|> Async.RunSynchronously