private SolidHttpClient CreateSolidHttpClient(HttpClient inner) { var client = new SolidHttpClient(inner, _deserializers, _events); _events.InvokeOnClientCreated(this, client); return(client); }
public void InvokeOnClientCreated(object invoker, SolidHttpClient client) { var args = CreateArgs(client); foreach (var handler in _events.GetOnClientCreatedEventHandlers()) { handler(invoker, args); } }
public SolidHttpClientCreatedEventArgs CreateArgs(SolidHttpClient client) { return(new SolidHttpClientCreatedEventArgs { Client = client, Services = _scope }); }