I believe I'm doing everything right with my session so I'm not totally
sure why I'm getting this error.
I open a session , do a number of operations and once complete I call
SaveChanges - I am only calling SaveChanges once.
My concern is that perhaps this is an issue with my architecture: I have a
Windows Service that is consuming from a RabbitMQ Queue inside a class that
exists for the lifetime of the service. When a message arrives it calls a
handler method which opens the session and saves stuff.
I declare a private DocumentStore at the top of that class - does this all
make sense - as there is only one instance of the class that runs the
DocumentStore there must be only one DocumentStore right? Or should I be
ensuring it's a singleton somehow?
Thanks very much,