private static void pipelineSkeleton(object message, Action <IConfigurablePublishing> configuration)
        {
            var p     = new PublishChainCasing(null).Configure(configuration);
            var token = new PublishToken(message, new ISubscription[] { });

            p.LookAt(token);
        }
Example #2
0
 internal Bus()
 {
     _services.Add <IPublisher>(this);
     _services.Add(new ObservableRelay(this));
     _publishChainCasing = new PublishChainCasing(this);
     _subscriber         = new Subscriber(_services);
     _disposer           = new DisposeContainer {
         _publishChainCasing, _subscriber, (IDisposable)_services
     };
 }
Example #3
0
 public static PublishChainCasing Configure(this PublishChainCasing pipeline, Action <IConfigurablePublishing> configure)
 {
     configure(pipeline);
     return(pipeline);
 }