Exemplo n.º 1
0
        public CastleWindsorBenchmarkTest()
        {
            WindsorContainer windsorContainer = new WindsorContainer();

            CastleWindsorFeignBuilder = windsorContainer.AddFeignClients(options =>
            {
                options.Assemblies.Add(typeof(IBaiduTestService).Assembly);
            });
            AddTestFeignClients(CastleWindsorFeignBuilder);
            WindsorContainer = windsorContainer;
        }
Exemplo n.º 2
0
        public void TestMethod_CastleWindsor()
        {
            IWindsorContainer windsorContainer = new WindsorContainer();

            windsorContainer.AddFeignClients(options =>
            {
                options.Assemblies.Add(typeof(ITestService).Assembly);
                options.FeignClientPipeline.ReceivingQueryResult();
            })
            .AddLoggerFactory <DefaultLoggerFactory>()
            ;
            ITestService testService = windsorContainer.Resolve <ITestService>();

            Assert.IsNotNull(testService);
            //var result = testService.GetQueryResultValue("", null);
        }