public void PipelineWebApi()
        {
            var pipe = new WebApiMicroservicePipeline();

            pipe.Start();

            pipe.Stop();
        }
Esempio n. 2
0
        public void PipelineWebApi()
        {
            var pipe = new WebApiMicroservicePipeline();

            pipe
            .AddChannelIncoming("freddyin", autosetPartition01: false)
            .AttachPriorityPartition(0, 1, 2)
            .Revert()
            .AddChannelOutgoing("freddyout", autosetPartition01: false)
            .AttachPriorityPartition(1, 2)
            ;

            pipe.Start();

            pipe.Stop();
        }
Esempio n. 3
0
        public void Configuration(IAppBuilder app)
        {
            try
            {
                var Service = new WebApiMicroservicePipeline();

                RouteConfig.Register(Service);

                SwaggerConfig.Register(Service);

                Service.Start();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }