Beispiel #1
0
 /// <summary>
 /// Add a global handler to be run when every Solid.Http client object is created.
 /// </summary>
 /// <param name="builder">The extended ISolidHttpBuilder</param>
 /// <param name="action">The handler to be run</param>
 /// <returns>The builder</returns>
 public static ISolidHttpCoreBuilder OnClientCreated(this ISolidHttpCoreBuilder builder, Action <ISolidHttpClient> action)
 => builder.OnClientCreated((_, c) => action(c));