Is it possible to create a context that is accessible from a set of windows but not from a different set?
For example, two web request are running in their own context and objects like ServiceSecurityContext.Current
are pointing to different instances.
My application is a Word like application with a PlanWindow
that open a plan document. I would like to be able to do something like PlanContext.Current
which would return me the current plan, instead of having to pass the document around to any dialog that is opened from this PlanWindow
.
I presume that this has something to do with threading but I don't know where to start.