var documentStore = new EmbeddableDocumentStore { RunInMemory = true, Configuration = { RunInUnreliableYetFastModeThatIsNotSuitableForProduction = true } }; documentStore.Initialize(); documentStore.DocumentDatabase.PutTriggers.Add(new AnyDocumentPutTrigger { Database = documentStore.DocumentDatabase });
documentStore.DatabaseCommands.GlobalAdmin.EnsureDatabaseExists("someDatabaseName", true);// here trigger will be fired on system database with document put by command above !!!
using store
using (var session = documentStore.OpenAsyncSession("someDatabaseName")) { await session.StoreAsync(new Doc {Id = "some id", Data = "some values"}); await session.SaveChangesAsync(); }
Trigger will not be fired. Is trigger registered incorrectly?
We tried to register it via plugin folder - same result (fired for system but not for named session
PluginsDirectory = Path.GetDirectoryName(typeof(RevisionDocumentPutTrigger).Assembly.Location)
Help is much appreciated.
Thanks and regards,
Sergiy
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.