etl - ravendb from console app -


i'm trying raven working in rhino.etl console import date sql raven.

i have raveninstaller:

public class raveninstaller : iwindsorinstaller     {         public void install(iwindsorcontainer container, iconfigurationstore store)         {             container.register(                 component.for<idocumentstore>().implementedby<documentstore>()                     .dependson(new { connectionstringname = "someravenconnectionstring" })                     .oncreate(doinitialisation)                     .lifestyle.singleton                 );         }          static idocumentsession getdocumentsesssion(ikernel kernel)         {             var store = kernel.resolve<idocumentstore>();             return store.opensession();         }          public static void doinitialisation(ikernel kernel, idocumentstore store)         {             store.initialize();         }     } 

however - when call _documentsession.opensession() app hangs.

is there need specify console app environment? keeps saying it's timed out - url in config localhost:8080 correct?

i've changed use:

using (var documentstore = new documentstore { url = "http://localhost:8080" })             {                 documentstore.initialize();                 using (var session = documentstore.opensession())                 {                     var mp = _container.resolve<mainprocess>();                     mp.documentsession = session;                     mp.execute();                 }             } 

but still hanging on opensession.

where hang occurs? in method inside opensession?


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -