We are going to need this one(hopefully the only one) since the context of incomming pipeline needs to be available to outgoing(send, publish) pipelines. I talked this through with mogens and the only other option was using the childcontainer(yuck).

Other ideas are much appreciated!

Sent from my iPhone

On 14 okt 2013, at 00:36, John Simons <notifications@github.com> wrote:

> In src/NServiceBus.Core/Pipeline/BehaviorContext.cs:
> 
> > @@ -0,0 +1,129 @@
> > +﻿namespace NServiceBus.Pipeline
> > +{
> > +    using System;
> > +    using System.Collections.Generic;
> > +    using System.Linq;
> > +    using System.Threading;
> > +    using Janitor;
> > +
> > +    /// <summary>
> > +    /// yeah, we should probably see if we can come up with better names :)
> > +    /// </summary>
> > +    [SkipWeaving]
> > +    public class BehaviorContext : IBehaviorContext, IDisposable
> > +    {
> > +        [ThreadStatic]
> Why do we need ThreadStatics!
> Lets avoid them at all costs
> 
> —
> Reply to this email directly or view it on GitHub.