17 references to BindabilityMethod
Microsoft.AspNetCore.Http.RequestDelegateGenerator (17)
src\Shared\RoslynUtils\ParsabilityHelper.cs (6)
20
private static readonly BoundedCacheWithFactory<ITypeSymbol, (
BindabilityMethod
?, IMethodSymbol?)> BindabilityCache = new();
162
internal static Bindability GetBindability(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, out
BindabilityMethod
? bindabilityMethod, out IMethodSymbol? bindMethodSymbol)
170
BindabilityMethod
? bindabilityMethod = null;
174
return (
BindabilityMethod
.IBindableFromHttpContext, null);
190
bindabilityMethod =
BindabilityMethod
.BindAsyncWithParameter;
196
bindabilityMethod =
BindabilityMethod
.BindAsync;
StaticRouteHandlerModel\Emitters\EmitterExtensions.cs (1)
19
EndpointParameterSource.BindAsync => endpointParameter.BindMethod ==
BindabilityMethod
.BindAsync
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (4)
352
case
BindabilityMethod
.IBindableFromHttpContext:
355
case
BindabilityMethod
.BindAsyncWithParameter:
358
case
BindabilityMethod
.BindAsync:
362
throw new NotImplementedException($"Unreachable! Unexpected {nameof(
BindabilityMethod
)}: {endpointParameter.BindMethod}");
StaticRouteHandlerModel\Endpoint.cs (2)
70
case
BindabilityMethod
.IBindableFromHttpContext:
71
case
BindabilityMethod
.BindAsyncWithParameter:
StaticRouteHandlerModel\EndpointParameter.cs (4)
220
endpoint.EmitterContext.RequiresPropertyAsParameterInfo = IsProperty && bindMethod is
BindabilityMethod
.BindAsyncWithParameter or
BindabilityMethod
.IBindableFromHttpContext;
300
public
BindabilityMethod
? BindMethod { get; set; }
303
private static bool HasBindAsync(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, [NotNullWhen(true)] out
BindabilityMethod
? bindMethod, [NotNullWhen(true)] out IMethodSymbol? bindMethodSymbol)