Beispiel #1
0
        public void TestMethod1()
        {
            DynamicAssembly dynamicAssembly = new DynamicAssembly();

            dynamicAssembly.DEBUG_MODE = true;
            FeignClientHttpProxyTypeBuilder feignClientTypeBuilder = new FeignClientHttpProxyTypeBuilder(dynamicAssembly);
            FeignClientTypeInfo             feignClientTypeInfo    = feignClientTypeBuilder.Build(typeof(ITestService));
            FeignClientTypeInfo             feignClientTypeInfo1   = feignClientTypeBuilder.Build(typeof(ITestControllerService));

            feignClientTypeBuilder.Save();
        }
Beispiel #2
0
        public void TestMethod1()
        {
            FeignClientHttpRequest request = new FeignClientHttpRequest(null, null, null, null, null);

            request.RequestHeaderHandlers = new List <Request.Headers.IRequestHeaderHandler>();
            Request.Headers.IRequestHeaderHandler requestHeaderHandler = null;
            request.RequestHeaderHandlers.Add(requestHeaderHandler);
            DynamicAssembly dynamicAssembly = new DynamicAssembly();

            dynamicAssembly.DEBUG_MODE = true;
            FeignClientHttpProxyTypeBuilder feignClientTypeBuilder = new FeignClientHttpProxyTypeBuilder(dynamicAssembly);
            FeignClientTypeInfo             feignClientTypeInfo    = feignClientTypeBuilder.Build(typeof(ITestService));
            FeignClientTypeInfo             feignClientTypeInfo1   = feignClientTypeBuilder.Build(typeof(ITestControllerService));

            feignClientTypeBuilder.Save();
        }