Exemplo n.º 1
0
        public IEndpointConventionBuilder AddEndpointBuilder(EndpointBuilder endpointBuilder)
        {
            var builder = new DefaultEndpointConventionBuilder(endpointBuilder);

            _endpointConventionBuilders.Add(builder);

            return(builder);
        }
Exemplo n.º 2
0
                static string TransformDisplayName(EndpointBuilder builder)
                {
                    var original = builder.DisplayName;
                    var segments = original.Split(' ');

                    if (segments.Length != 2)
                    {
                        return(original);
                    }
                    if (!segments[1].StartsWith('(') || !segments[1].EndsWith(')'))
                    {
                        return(original);
                    }
                    var prefix = segments[1][1..^ 1] + ".";
 public DefaultEndpointConventionBuilder(EndpointBuilder endpointBuilder)
 {
     EndpointBuilder = endpointBuilder;
     _conventions    = new();
 }
 public DefaultEndpointConventionBuilder(EndpointBuilder endpointBuilder)
 {
     EndpointBuilder = endpointBuilder;
     _conventions    = new List <Action <EndpointBuilder> >();
 }