Beispiel #1
0
        public static OwinSelfHost Start(string configSectionName, Action <OwinConfiguration> configure = null)
        {
            var owinSelfHost = new OwinSelfHost();

            owinSelfHost.StartAsync(configSectionName, configure).WaitOnCompletionSource();
            return(owinSelfHost);
        }
Beispiel #2
0
 public OwinMiddlewareFixture()
 {
     _sendingHost   = OwinSelfHost.Start("platibus.owin0");
     _receivingHost = OwinSelfHost.Start("platibus.owin1", configuration =>
     {
         configuration.AddHandlingRule <TestMessage>(".*TestMessage", TestHandler.HandleMessage, "TestHandler");
         configuration.AddHandlingRule(".*TestPublication", new TestPublicationHandler(), "TestPublicationHandler");
     });
 }