public static void Initialize <T, R>(IInterceptorChain interceptorChain) where T : IMessage <R> where R : class { Assert.State(CurrentUnitOfWork <T, R> .IsStarted(), () => "An active Unit of Work is required for injecting interceptor chain"); CurrentUnitOfWork <T, R> .Get().Resources().Add(INTERCEPTOR_CHAIN_EMITTER_KEY, interceptorChain); }