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); }
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); }