c# - Using RavenDb FilesStore from F# Interactive hangs -
i trying access ravendb file system f# script.
i have code:
#r "libs/raven.abstractions.dll" #r "libs/raven.client.lightweight.dll" open raven.client.filesystem let fs = new filesstore(url = "http://localhost:8080", defaultfilesystem = "testfs") let s = fs.initialize() printfn "%a" s.identifier
if execute script using fsi
on file or compiling script fsc
runs , prints http://localhost:8080
expected if execute in f# interactive
inside visualstudio hangs on fs.initialize()
line
now, if call initialize
method false
(ensurefilesystemexists) runs ok in interactive.
why work this?
this piece of filesstore.cs code:
if (ensurefilesystemexists && string.isnullorempty(defaultfilesystem) == false) { try { asyncfilescommands.forfilesystem(defaultfilesystem) .ensurefilesystemexistsasync() .wait(); } catch(exception) { if (failifcannotcreate) throw; } }
the ensurefilesystemexists
variable false
pass on second call initialize
(the 1 works on vs' f# interactive)
update latest build, should resolve issue. underlying issue tpl scheduler used default.
Comments
Post a Comment