예제 #1
0
        public HttpClient(IContainerConfiguration containerConfiguration)
        {
            var registry = containerConfiguration.InitializeContainer();

            ObjectFactory.Initialize(
                x => x.AddRegistry(registry));

            _codec = ObjectFactory.GetInstance<ICodec>();

            _log = ObjectFactory.TryGetInstance<ILog>();

            Request = new HttpRequest(_codec);
        }
예제 #2
0
        public HttpClient(IContainerConfiguration containerConfiguration)
        {
            var registry = containerConfiguration.InitializeContainer();

            ObjectFactory.Initialize(x => x.AddRegistry(registry));

            _encoder = ObjectFactory.GetInstance<IEncoder>();
            _decoderFactory = ObjectFactory.GetInstance<IDecoderFactory>();

            Request = new HttpRequest(_encoder);
        }