/// <summary>
 /// Adds the specified convention to the builder. Conventions are used to customize <see cref="EndpointBuilder"/> instances.
 /// </summary>
 /// <param name="convention">The convention to add to the builder.</param>
 public void Add(Action <EndpointBuilder> convention)
 {
     _hubEndpoint.Add(convention);
     _disconnectEndpoint.Add(convention);
     _jsInitializersEndpoint.Add(convention);
 }
Exemplo n.º 2
0
 /// <inheritdoc />
 public void Add(Action <EndpointBuilder> convention) =>
 _builder.Add(convention);
Exemplo n.º 3
0
 public static IEndpointConventionBuilder WithModelService(this IEndpointConventionBuilder builder,
                                                           ModelNameSource source = ModelNameSource.Route)
 {
     builder.Add(b => b.Metadata.Add(new ModelMetadata(source)));
     return(builder);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Adds the specified convention to the builder. Conventions are used to customize <see cref="EndpointBuilder"/> instances.
 /// </summary>
 /// <param name="convention">The convention to add to the builder.</param>
 public void Add(Action <EndpointBuilder> convention)
 {
     _endpointConventionBuilder.Add(convention);
 }
 public void Add(Action <EndpointBuilder> convention)
 {
     ApiEndpoint.Add(convention);
     WebhooksEndpoint.Add(convention);
 }