4 instantiations of Results
Microsoft.AspNetCore.Http.Results (4)
ResultsOfT.Generated.cs (4)
193
public static implicit operator Results<TResult1, TResult2, TResult3, TResult4>(TResult1 result) =>
new
(result);
199
public static implicit operator Results<TResult1, TResult2, TResult3, TResult4>(TResult2 result) =>
new
(result);
205
public static implicit operator Results<TResult1, TResult2, TResult3, TResult4>(TResult3 result) =>
new
(result);
211
public static implicit operator Results<TResult1, TResult2, TResult3, TResult4>(TResult4 result) =>
new
(result);
61 references to Results
Microsoft.AspNetCore.Http.Results (8)
ResultsOfT.Generated.cs (8)
190
/// Converts the <typeparamref name="TResult1"/> to a <see cref="
Results
{TResult1, TResult2, TResult3, TResult4}" />.
193
public static implicit operator
Results
<TResult1, TResult2, TResult3, TResult4>(TResult1 result) => new(result);
196
/// Converts the <typeparamref name="TResult2"/> to a <see cref="
Results
{TResult1, TResult2, TResult3, TResult4}" />.
199
public static implicit operator
Results
<TResult1, TResult2, TResult3, TResult4>(TResult2 result) => new(result);
202
/// Converts the <typeparamref name="TResult3"/> to a <see cref="
Results
{TResult1, TResult2, TResult3, TResult4}" />.
205
public static implicit operator
Results
<TResult1, TResult2, TResult3, TResult4>(TResult3 result) => new(result);
208
/// Converts the <typeparamref name="TResult4"/> to a <see cref="
Results
{TResult1, TResult2, TResult3, TResult4}" />.
211
public static implicit operator
Results
<TResult1, TResult2, TResult3, TResult4>(TResult4 result) => new(result);
Microsoft.AspNetCore.Http.Results.Tests (52)
ResultsOfTTests.Generated.cs (52)
515
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4> MyApi(int id)
527
var
result = MyApi(input);
541
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4> MyApi(int checksum)
554
var
result = MyApi(input);
607
Results
<IResult, ChecksumResult2, ChecksumResult3, ChecksumResult4> MyApi(int id)
620
var
result = MyApi(input);
636
Results
<ChecksumResult1, IResult, ChecksumResult3, ChecksumResult4> MyApi(int id)
649
var
result = MyApi(input);
665
Results
<ChecksumResult1, ChecksumResult2, IResult, ChecksumResult4> MyApi(int id)
678
var
result = MyApi(input);
694
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, IResult> MyApi(int id)
707
var
result = MyApi(input);
716
[InlineData(1, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
717
[InlineData(2, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
718
[InlineData(3, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
719
[InlineData(4, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
724
Results<
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>, ChecksumResult5> MyApi(int id)
728
1 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult1(1),
729
2 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult2(2),
730
3 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult3(3),
731
4 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult4(4),
747
[InlineData(1, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
748
[InlineData(2, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
749
[InlineData(3, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
750
[InlineData(4, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
755
Results<
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>, ChecksumResult5> MyApi(int id)
759
1 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult1(1),
760
2 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult2(2),
761
3 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult3(3),
762
4 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult4(4),
778
[InlineData(1, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
779
[InlineData(2, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
780
[InlineData(3, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
781
[InlineData(4, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
786
Results<
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>, ChecksumResult5> MyApi(int id)
790
1 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult1(1),
791
2 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult2(2),
792
3 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult3(3),
793
4 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult4(4),
809
[InlineData(1, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
810
[InlineData(2, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
811
[InlineData(3, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
812
[InlineData(4, typeof(
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>))]
817
Results<
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>, ChecksumResult5> MyApi(int id)
821
1 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult1(1),
822
2 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult2(2),
823
3 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult3(3),
824
4 => (
Results
<ChecksumResult1, ChecksumResult2, ChecksumResult3, ChecksumResult4>)new ChecksumResult4(4),
843
Results
<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4> MyApi() { throw new NotImplementedException(); }
847
PopulateMetadata<
Results
<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4>>(((Delegate)MyApi).GetMethodInfo(), builder);
860
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<
Results
<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
861
Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<
Results
<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null));
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
122
routeGroup.MapPost("/refresh", async Task<
Results
<Ok<AccessTokenResponse>, UnauthorizedHttpResult, SignInHttpResult, ChallengeHttpResult>>