44 references to WriteIndentedLine
ResultsOfTGenerator (44)
Program.cs (44)
125
writer.
WriteIndentedLine
("// Use implicit cast operators to create an instance");
126
writer.
WriteIndentedLine
($"private Results(IResult activeResult)");
127
writer.
WriteIndentedLine
("{");
129
writer.
WriteIndentedLine
("}");
133
writer.
WriteIndentedLine
("/// <summary>");
134
writer.
WriteIndentedLine
($"/// Gets the actual <see cref=\"IResult\"/> returned by the <see cref=\"Endpoint\"/> route handler delegate.");
135
writer.
WriteIndentedLine
("/// </summary>");
136
writer.
WriteIndentedLine
("public IResult Result { get; }");
140
writer.
WriteIndentedLine
("/// <inheritdoc/>");
141
writer.
WriteIndentedLine
("public Task ExecuteAsync(HttpContext httpContext)");
142
writer.
WriteIndentedLine
("{");
151
writer.
WriteIndentedLine
("}");
168
writer.
WriteIndentedLine
("/// <summary>");
169
writer.
WriteIndentedLine
($"/// Converts the <typeparamref name=\"TResult{j}\"/> to a <see cref=\"Results{{{typeArgsList}}}\" />.");
170
writer.
WriteIndentedLine
("/// </summary>");
171
writer.
WriteIndentedLine
("/// <param name=\"result\">The result.</param>");
172
writer.
WriteIndentedLine
($"public static implicit operator Results<{typeArgsList}>(TResult{j} result) => new(result);");
182
writer.
WriteIndentedLine
("/// <inheritdoc/>");
183
writer.
WriteIndentedLine
("static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)");
184
writer.
WriteIndentedLine
("{");
192
writer.
WriteIndentedLine
("}");
328
writer.
WriteIndentedLine
("[Theory]");
333
writer.
WriteIndentedLine
($"[InlineData({j}, typeof(ChecksumResult{j}))]");
343
writer.
WriteIndentedLine
("{");
385
writer.
WriteIndentedLine
("}");
418
writer.
WriteIndentedLine
("[Theory]");
423
writer.
WriteIndentedLine
($"[InlineData({j})]");
434
writer.
WriteIndentedLine
("{");
478
writer.
WriteIndentedLine
("}");
504
writer.
WriteIndentedLine
("[Fact]");
513
writer.
WriteIndentedLine
("{");
561
writer.
WriteIndentedLine
("[Fact]");
570
writer.
WriteIndentedLine
("{");
632
writer.
WriteIndentedLine
("[Theory]");
637
writer.
WriteIndentedLine
($"[InlineData({j}, typeof(ChecksumResult{j}))]");
647
writer.
WriteIndentedLine
("{");
755
writer.
WriteIndentedLine
("[Theory]");
762
writer.
WriteIndentedLine
($"[InlineData({j}, typeof({nestedResultTypeName}))]");
766
writer.
WriteIndentedLine
($"[InlineData({j}, typeof(ChecksumResult{j}))]");
777
writer.
WriteIndentedLine
("{");
830
writer.
WriteIndentedLine
("[Fact]");
839
writer.
WriteIndentedLine
("{");
895
writer.
WriteIndentedLine
("[Fact]");
904
writer.
WriteIndentedLine
("{");