2 instantiations of Endpoint
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
RequestDelegateGenerator.cs (1)
30
return new
Endpoint
(invocationOperation, wellKnownTypes, context.SemanticModel);
RequestDelegateGeneratorSuppressor.cs (1)
62
var endpoint = new
Endpoint
(invocationOperation, wellKnownTypes, semanticModel);
42 references to Endpoint
Microsoft.AspNetCore.Http.RequestDelegateGenerator (42)
RequestDelegateGenerator.cs (1)
58
var
endpoint = endpointWithLocations.Source;
RequestDelegateGeneratorSuppressor.cs (1)
62
var
endpoint = new Endpoint(invocationOperation, wellKnownTypes, semanticModel);
StaticRouteHandlerModel\Emitters\EndpointEmitter.cs (5)
69
public static void EmitRouteOrQueryResolver(this
Endpoint
endpoint, CodeWriter codeWriter)
83
static void ProcessParameter(EndpointParameter parameter, CodeWriter codeWriter,
Endpoint
endpoint)
95
public static void EmitJsonBodyOrServiceResolver(this
Endpoint
endpoint, CodeWriter codeWriter)
126
public static void EmitLoggingPreamble(this
Endpoint
endpoint, CodeWriter codeWriter)
134
public static string EmitArgumentList(this
Endpoint
endpoint) => string.Join(", ", endpoint.Parameters.Select(p => p.EmitArgument()));
StaticRouteHandlerModel\Emitters\EndpointJsonPreparationEmitter.cs (1)
9
internal static void EmitJsonPreparation(this
Endpoint
endpoint, CodeWriter codeWriter)
StaticRouteHandlerModel\Endpoint.cs (4)
111
o is
Endpoint
other && InterceptableLocation == other.InterceptableLocation && SignatureEquals(this, other);
116
public static bool SignatureEquals(
Endpoint
a,
Endpoint
b)
136
public static int GetSignatureHashCode(
Endpoint
endpoint)
StaticRouteHandlerModel\EndpointDelegateComparer.cs (6)
8
internal sealed class EndpointDelegateComparer : IEqualityComparer<
Endpoint
>
12
public bool Equals(
Endpoint
a,
Endpoint
b) =>
Endpoint
.SignatureEquals(a, b);
13
public int GetHashCode(
Endpoint
endpoint) =>
Endpoint
.GetSignatureHashCode(endpoint);
StaticRouteHandlerModel\EndpointHttpMethodComparer.cs (4)
9
internal sealed class EndpointHttpMethodComparer : IEqualityComparer<
Endpoint
>
14
public bool Equals(
Endpoint
x,
Endpoint
y) => OrdinalComparer.Equals(x.HttpMethod, y.HttpMethod);
16
public int GetHashCode(
Endpoint
obj) => OrdinalComparer.GetHashCode(obj.HttpMethod);
StaticRouteHandlerModel\EndpointParameter.cs (5)
21
public EndpointParameter(
Endpoint
endpoint, IParameterSymbol parameter, WellKnownTypes wellKnownTypes) : this(endpoint, parameter.Type, parameter.Name, wellKnownTypes)
30
private EndpointParameter(
Endpoint
endpoint, IPropertySymbol property, IParameterSymbol? parameter, WellKnownTypes wellKnownTypes) : this(endpoint, property.Type, property.Name, wellKnownTypes)
53
private EndpointParameter(
Endpoint
endpoint, ITypeSymbol typeSymbol, string parameterName, WellKnownTypes wellKnownTypes)
67
private void ProcessEndpointParameterSource(
Endpoint
endpoint, ISymbol symbol, ImmutableArray<AttributeData> attributes, WellKnownTypes wellKnownTypes)
457
private static bool TryGetAsParametersConstructor(
Endpoint
endpoint, INamedTypeSymbol type, out bool? isDefaultConstructor, [NotNullWhen(true)] out IEnumerable<ConstructorParameter>? matchedProperties)
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (15)
17
public static string EmitHandlerDelegateType(this
Endpoint
endpoint)
44
public static string EmitVerb(this
Endpoint
endpoint)
68
public static void EmitRequestHandler(this
Endpoint
endpoint, CodeWriter codeWriter)
170
public static void EmitFilteredRequestHandler(this
Endpoint
endpoint, CodeWriter codeWriter)
201
private static void EmitBuiltinResponseTypeMetadata(this
Endpoint
endpoint, CodeWriter codeWriter)
228
private static void EmitCallToMetadataProviderForResponse(this
Endpoint
endpoint, CodeWriter codeWriter)
240
private static void EmitCallsToMetadataProvidersForParameters(this
Endpoint
endpoint, CodeWriter codeWriter)
286
public static void EmitFormAcceptsMetadata(this
Endpoint
endpoint, CodeWriter codeWriter)
300
public static void EmitJsonAcceptsMetadata(this
Endpoint
endpoint, CodeWriter codeWriter)
352
public static void EmitAcceptsMetadata(this
Endpoint
endpoint, CodeWriter codeWriter)
367
public static void EmitParameterBindingMetadata(this
Endpoint
endpoint, CodeWriter codeWriter)
402
public static void EmitEndpointMetadataPopulation(this
Endpoint
endpoint, CodeWriter codeWriter)
411
public static void EmitFilteredInvocation(this
Endpoint
endpoint, CodeWriter codeWriter)
441
public static string EmitFilteredArgumentList(this
Endpoint
endpoint)
467
public static string EmitFilterInvocationContextTypeArgs(this
Endpoint
endpoint)