Example #1
0
        private SolidHttpClient CreateSolidHttpClient(HttpClient inner)
        {
            var client = new SolidHttpClient(inner, _deserializers, _events);

            _events.InvokeOnClientCreated(this, client);
            return(client);
        }
Example #2
0
        public void InvokeOnClientCreated(object invoker, SolidHttpClient client)
        {
            var args = CreateArgs(client);

            foreach (var handler in _events.GetOnClientCreatedEventHandlers())
            {
                handler(invoker, args);
            }
        }
Example #3
0
 public SolidHttpClientCreatedEventArgs CreateArgs(SolidHttpClient client)
 {
     return(new SolidHttpClientCreatedEventArgs {
         Client = client, Services = _scope
     });
 }