Imagine you have a global "execution context" service for logging (comparable to MDC) and two kinds of triggers like user interaction and web socket connection.
We have a logger service, which uses the "execution context" for log messages. The user press on a button, the service gets the context, a http request will be triggered and the result interpreted including logging. Meanwhile we receive a message over the websocket and needs to interpret it as well. So we set our "execution context" and overwrite the existing one in the services. The issue will be that the log messages will get the same execution context if the websocket observable will be triggered before the http result is received. Is there any possibility to have own execution context for multiple observables? I was thinking about using the NgZone (zone.js) for this, but I don't find any method for storing a context. There is no direct access to the fork method for storing zone properties. I am using Angular 2.5.7. StackOverflow <http://stackoverflow.com/q/42854478/390177> -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
