2990 references to Func
aspire (14)
Aspire.Azure.AI.Inference (1)
Aspire.Azure.AI.Inference.Tests (4)
Aspire.Azure.AI.OpenAI (1)
Aspire.Azure.AI.OpenAI.Tests (10)
Aspire.Azure.Data.Tables (1)
Aspire.Azure.Messaging.EventHubs (1)
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Azure.Messaging.WebPubSub (1)
Aspire.Azure.Search.Documents (1)
Aspire.Azure.Security.KeyVault (1)
Aspire.Azure.Storage.Blobs (1)
Aspire.Azure.Storage.Queues (1)
Aspire.Cli.Tests (9)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (121)
Components_Controls_ResourceFilters_razor.g.cs (4)
341public required Func<Task> OnAllFilterVisibilityCheckedChangedAsync { get; set; }
375public static void CreateSelectResourceOptions_0<TValue>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.String __arg0, int __seq1, global::System.Collections.Concurrent.ConcurrentDictionary<TValue, global::System.Boolean> __arg1, int __seq2, global::System.Func<global::System.Threading.Tasks.Task> __arg2, int __seq3, global::System.Func<TValue, global::System.Boolean, global::System.Threading.Tasks.Task> __arg3)
417public static void CreateSelectResourceOptions_1<TValue>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.String __arg0, int __seq1, global::System.Collections.Concurrent.ConcurrentDictionary<TValue, global::System.Boolean> __arg1, int __seq2, global::System.Func<global::System.Threading.Tasks.Task> __arg2, int __seq3, global::System.Func<TValue, global::System.Boolean, global::System.Threading.Tasks.Task> __arg3)
459public static void CreateSelectResourceOptions_2<TValue>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.String __arg0, int __seq1, global::System.Collections.Concurrent.ConcurrentDictionary<TValue, global::System.Boolean> __arg1, int __seq2, global::System.Func<global::System.Threading.Tasks.Task> __arg2, int __seq3, global::System.Func<TValue, global::System.Boolean, global::System.Threading.Tasks.Task> __arg3)
Components_Controls_ResourceSelect_razor.g.cs (3)
380public static void CreateFluentSelect_0<TOption>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Collections.Generic.IEnumerable<TOption> __arg0, int __seq1, global::System.Boolean __arg1, int __seq2, global::System.String __arg2, int __seq3, global::System.Func<TOption, global::System.String> __arg3, int __seq4, global::System.Func<TOption, global::System.Boolean> __arg4, int __seq5, global::System.Func<TOption, global::System.String> __arg5, int __seq6, global::Microsoft.AspNetCore.Components.EventCallback<global::System.String> __arg6, int __seq7, global::System.String __arg7, int __seq8, global::System.String __arg8, int __seq9, global::System.String __arg9, int __seq10, TOption __arg10, int __seq11, global::Microsoft.AspNetCore.Components.EventCallback<TOption> __arg11, int __seq12, global::System.Linq.Expressions.Expression<global::System.Func<TOption>> __arg12, int __seq13, global::Microsoft.AspNetCore.Components.RenderFragment<TOption> __arg13, int __seq14, object __arg14)
490public static void CreateFluentSelect_0_CaptureParameters<TOption>(global::System.Collections.Generic.IEnumerable<TOption> __arg0, out global::System.Collections.Generic.IEnumerable<TOption> __arg0_out, global::System.Boolean __arg1, out global::System.Boolean __arg1_out, global::System.String __arg2, out global::System.String __arg2_out, global::System.Func<TOption, global::System.String> __arg3, out global::System.Func<TOption, global::System.String> __arg3_out, global::System.Func<TOption, global::System.Boolean> __arg4, out global::System.Func<TOption, global::System.Boolean> __arg4_out, global::System.Func<TOption, global::System.String> __arg5, out global::System.Func<TOption, global::System.String> __arg5_out, global::Microsoft.AspNetCore.Components.EventCallback<global::System.String> __arg6, out global::Microsoft.AspNetCore.Components.EventCallback<global::System.String> __arg6_out, global::System.String __arg7, out global::System.String __arg7_out, global::System.String __arg8, out global::System.String __arg8_out, global::System.String __arg9, out global::System.String __arg9_out, TOption __arg10, out TOption __arg10_out, global::Microsoft.AspNetCore.Components.EventCallback<TOption> __arg11, out global::Microsoft.AspNetCore.Components.EventCallback<TOption> __arg11_out, global::System.Linq.Expressions.Expression<global::System.Func<TOption>> __arg12, out global::System.Linq.Expressions.Expression<global::System.Func<TOption>> __arg12_out)
Components_Dialogs_InteractionsInputDialog_razor.g.cs (6)
629__builder5.AddComponentParameter(43, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTextField.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => input.ViewModel.Value));
846__builder5.AddComponentParameter(61, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTextField.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => input.ViewModel.Value));
1122__builder5.AddComponentParameter(81, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentSelect<SelectViewModel<string>>.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => input.ViewModel.Value));
1360__builder5.AddComponentParameter(98, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentCombobox<SelectViewModel<string>>.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => input.ViewModel.Value));
1581__builder5.AddComponentParameter(117, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentCheckbox.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.Boolean>>>(() => input.ViewModel.IsChecked));
1780__builder5.AddComponentParameter(133, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentNumberField<int?>.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<int?>>>(() => input.ViewModel.NumberValue));
Model\Assistant\Prompts\IceBreakersBuilder.cs (9)
136public void StructuredLogs(BuildIceBreakersContext context, Func<PagedResult<OtlpLogEntry>> getCurrentLogs, bool hasErrors, Func<PagedResult<OtlpLogEntry>> getErrorLogs)
168public void StructuredLogs(BuildIceBreakersContext context, OtlpResource resource, Func<PagedResult<OtlpLogEntry>> getCurrentLogs, bool hasErrors, Func<PagedResult<OtlpLogEntry>> getErrorLogs)
212public void Traces(BuildIceBreakersContext context, Func<PagedResult<OtlpTrace>> getCurrentTraces, bool hasErrors, Func<PagedResult<OtlpTrace>> getErrorTraces)
244private InitialPrompt CreateErrorTracesPrompt(Func<PagedResult<OtlpTrace>> getErrorTraces)
256public void Traces(BuildIceBreakersContext context, OtlpResource resource, Func<PagedResult<OtlpTrace>> getCurrentTraces, bool hasErrors, Func<PagedResult<OtlpTrace>> getErrorTraces)
Otlp\Storage\TelemetryRepository.cs (5)
253public Subscription OnNewResources(Func<Task> callback)
258public Subscription OnNewLogs(ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback)
263public Subscription OnNewMetrics(ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback)
268public Subscription OnNewTraces(ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback)
273private Subscription AddSubscription(string name, ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback, List<Subscription> subscriptions)
Aspire.Dashboard.Components.Tests (9)
Aspire.Dashboard.Tests (13)
Aspire.Hosting (21)
ApplicationModel\HttpCommandContext.cs (2)
9/// or <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{EndpointReference}?, string?, HttpCommandOptions?)"/>.
47/// or <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{EndpointReference}?, string?, HttpCommandOptions?)"/>.
ResourceBuilderExtensions.cs (8)
96public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, Func<string> callback) where T : IResourceWithEnvironment
1580var endpointSelector = endpointName is not null
1616public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, Func<EndpointReference>? endpointSelector, string? path = null, int? statusCode = null) where T : IResourceWithEndpoints
1965Func<EndpointReference>? endpointSelector,
2209private static Func<EndpointReference> NamedEndpointSelector<TResource>(IResourceBuilder<TResource> builder, string[] endpointNames, string errorDisplayNoun)
2235private static Func<EndpointReference> DefaultEndpointSelector<TResource>(IResourceBuilder<TResource> builder)
2635var endpointSelector = endpointName is not null
2675public static IResourceBuilder<T> WithHttpProbe<T>(this IResourceBuilder<T> builder, ProbeType type, Func<EndpointReference>? endpointSelector, string? path = null, int? initialDelaySeconds = null, int? periodSeconds = null, int? timeoutSeconds = null, int? failureThreshold = null, int? successThreshold = null)
Aspire.Hosting.Azure (3)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.Kusto.Tests (10)
KustoPublicApiTests.cs (8)
12var action = () => new AzureKustoClusterResource(null!, _ => { });
24var action = () => new AzureKustoClusterResource(name, _ => { });
51var action = () => new AzureKustoReadWriteDatabaseResource(null!, "db", parentResource);
66var action = () => new AzureKustoReadWriteDatabaseResource("kusto-db", name, parentResource);
79var action = () => new AzureKustoReadWriteDatabaseResource("kusto-db", null!, parentResource);
94var action = () => new AzureKustoReadWriteDatabaseResource("kusto-db", name, parentResource);
107var action = () => new AzureKustoReadWriteDatabaseResource("kusto-db", "db1", kustoParentResource);
130var action = () => new AzureKustoEmulatorResource(null!);
Aspire.Hosting.Azure.Tests (163)
PublicApiTests\CosmosDBPublicApiTests.cs (34)
24var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPath, parent);
44var action = () => new AzureCosmosDBContainerResource(name, containerName, [partitionKeyPath], parent);
64var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPath, parent);
84var action = () => new AzureCosmosDBContainerResource(name, containerName, [partitionKeyPath], parent);
104var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPath, parent);
122var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPaths, parent);
138var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPaths, parent);
156var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPaths, parent);
170var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPath, parent);
184var action = () => new AzureCosmosDBContainerResource(name, containerName, [partitionKeyPath], parent);
200var action = () => new AzureCosmosDBDatabaseResource(name, databaseName, parent.Resource);
218var action = () => new AzureCosmosDBDatabaseResource(name, databaseName, parent.Resource);
233var action = () => new AzureCosmosDBDatabaseResource(name, databaseName, parent);
244var action = () => new AzureCosmosDBEmulatorResource(innerResource);
258var action = () => new AzureCosmosDBResource(name, configureInfrastructure);
272var action = () => new AzureCosmosDBResource(name, configureInfrastructure);
284var action = () => builder.AddAzureCosmosDB(name);
298var action = () => builder.AddAzureCosmosDB(name);
312var action = () => builder.RunAsEmulator(configureContainer);
325var action = () => builder.RunAsPreviewEmulator(configureContainer);
336var action = () => builder.WithDataVolume();
348var action = () => builder.WithGatewayPort(port);
360var action = () => builder.WithPartitionCount(count);
373var action = () => builder.AddDatabase(databaseName);
389var action = () => cosmos.AddDatabase(databaseName);
403var action = () => builder.AddCosmosDatabase(name);
418var action = () => cosmos.AddCosmosDatabase(name);
433var action = () => builder.AddContainer(name, partitionKeyPath);
450var action = () => cosmos.AddContainer(name, partitionKeyPath);
469var action = () => cosmos.AddContainer(name, partitionKeyPath);
484var action = () => cosmos.AddContainer(name, partitionKeyPaths!);
496var action = () => cosmos.AddContainer(name, partitionKeyPaths);
510var action = () => cosmos.AddContainer(name, partitionKeyPaths);
521var action = () => builder.WithDataExplorer();
PublicApiTests\EventHubsPublicApiTests.cs (28)
23var action = () => new AzureEventHubConsumerGroupResource(name, consumerGroupName, parent);
42var action = () => new AzureEventHubConsumerGroupResource(name, consumerGroupName, parent);
57var action = () => new AzureEventHubConsumerGroupResource(name, consumerGroupName, parent);
72var action = () => new AzureEventHubResource(name, hubName, parent);
89var action = () => new AzureEventHubResource(name, hubName, parent);
104var action = () => new AzureEventHubResource(name, hubName, parent);
115var action = () => new AzureEventHubsEmulatorResource(innerResource);
127var action = () => builder.AddAzureEventHubs(name);
141var action = () => builder.AddAzureEventHubs(name);
156var action = () => builder.AddEventHub(name);
172var action = () => builder.AddEventHub(name);
186var action = () => builder.AddHub(name);
201var action = () => builder.AddHub(name);
215var action = () => builder.WithProperties(configure);
228var action = () => builder.WithProperties(configure);
240var action = () => builder.AddConsumerGroup(name);
255var action = () => builder.AddConsumerGroup(name);
268var action = () => builder.RunAsEmulator();
280var action = () => builder.WithDataBindMount();
293var action = () => builder.WithDataVolume();
307var action = () => builder.WithGatewayPort(port);
319var action = () => builder.WithHostPort(port);
331var action = () => builder.WithConfigurationFile(path);
347var action = () => builder.RunAsEmulator(configure => configure.WithConfigurationFile(path));
361var action = () => builder.WithConfiguration(configJson);
374var action = () => builder.RunAsEmulator(configure => configure.WithConfiguration(configJson));
388var action = () => new AzureEventHubsResource(name, configureInfrastructure);
402var action = () => new AzureEventHubsResource(name, configureInfrastructure);
PublicApiTests\PostgreSQLPublicApiTests.cs (13)
48var action = () => builder.AddAzurePostgresFlexibleServer(name);
62var action = () => builder.AddAzurePostgresFlexibleServer(name);
76var action = () => builder.AddDatabase(name);
91var action = () => builder.AddDatabase(name);
104var action = () => builder.RunAsContainer();
115var action = () => builder.WithPasswordAuthentication();
128var action = () => new AzurePostgresResource(innerResource, configureInfrastructure);
143var action = () => new AzurePostgresResource(innerResource, configureInfrastructure);
158var action = () => new AzurePostgresFlexibleServerDatabaseResource(name, databaseName, postgresParentResource);
175var action = () => new AzurePostgresFlexibleServerDatabaseResource(name, databaseName, postgresParentResource);
190var action = () => new AzurePostgresFlexibleServerDatabaseResource(name, databaseName, postgresParentResource);
204var action = () => new AzurePostgresFlexibleServerResource(name, configureInfrastructure);
218var action = () => new AzurePostgresFlexibleServerResource(name, configureInfrastructure);
Aspire.Hosting.DevTunnels.Tests (2)
Aspire.Hosting.Garnet.Tests (8)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.GitHub.Models.Tests (2)
Aspire.Hosting.Kafka.Tests (11)
Aspire.Hosting.Keycloak.Tests (10)
Aspire.Hosting.Milvus.Tests (18)
Aspire.Hosting.MongoDB.Tests (20)
MongoDBPublicApiTests.cs (20)
18var action = () => builder.AddMongoDB(name, port);
33var action = () => builder.AddMongoDB(name, port);
48var action = () => builder.AddMongoDB(name, userName: userName, password: password);
64var action = () => builder.AddMongoDB(name, userName: userName, password: password);
78var action = () => builder.AddDatabase(name);
93var action = () => builder.AddDatabase(name);
106var action = () => builder.WithMongoExpress();
120var action = () => builder.WithHostPort(port);
131var action = () => builder.WithDataVolume();
143var action = () => builder.WithDataBindMount(source);
158var action = () => builder.WithDataBindMount(source);
172var action = () => builder.WithInitBindMount("init.js");
189var action = () => builder.WithInitBindMount(source);
203var action = () => builder.WithInitFiles("init.js");
218var action = () => builder.WithInitFiles(source);
235var action = () => new MongoDBDatabaseResource(name, databaseName, parent);
252var action = () => new MongoDBDatabaseResource(name, databaseName, parent);
267var action = () => new MongoDBDatabaseResource(name, databaseName, parent);
280var action = () => new MongoDBServerResource(name);
295var action = () => new MongoExpressContainerResource(name);
Aspire.Hosting.MySql.Tests (23)
Aspire.Hosting.Nats.Tests (11)
Aspire.Hosting.NodeJs.Tests (12)
NodeJsPublicApiTests.cs (10)
19var action = () => new NodeAppResource(name, command, workingDirectory);
36var action = () => new NodeAppResource(name, command, workingDirectory);
51var action = () => new NodeAppResource(name, command, workingDirectory);
64var action = () => builder.AddNodeApp(name, scriptPath);
79var action = () => builder.AddNodeApp(name, scriptPath);
96var action = () => builder.AddNodeApp(name, scriptPath);
111var action = () => builder.AddNpmApp(name: name, workingDirectory: workingDirectory);
126var action = () => builder.AddNpmApp(name: name, workingDirectory);
141var action = () => builder.AddNpmApp(name, workingDirectory);
157var action = () => builder.AddNpmApp(name, workingDirectory, scriptName);
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.OpenAI.Tests (2)
Aspire.Hosting.Oracle.Tests (18)
Aspire.Hosting.PostgreSQL.Tests (24)
PostgrePublicApiTests.cs (22)
19var action = () => new PgAdminContainerResource(name);
34var action = () => new PgWebContainerResource(name);
48var action = () => builder.AddPostgres(name);
62var action = () => builder.AddPostgres(name);
76var action = () => builder.AddDatabase(name);
91var action = () => builder.AddDatabase(name);
104var action = () => builder.WithPgAdmin();
116var action = () => builder.WithHostPort(port);
128var action = () => builder.WithHostPort(port);
139var action = () => builder.WithPgWeb();
150var action = () => builder.WithDataVolume();
162var action = () => builder.WithDataBindMount(source);
177var action = () => builder.WithDataBindMount(source);
192var action = () => builder.WithInitBindMount(source);
205var action = () => builder.WithInitFiles(source);
221var action = () => builder.WithInitBindMount(source);
239var action = () => builder.WithInitFiles(source);
259var action = () => new PostgresDatabaseResource(name, databaseName, postgresParentResource);
279var action = () => new PostgresDatabaseResource(name, databaseName, postgresParentResource);
294var action = () => new PostgresDatabaseResource(name, databaseName, postgresParentResource);
310var action = () => new PostgresServerResource(name, userName, builder.Resource);
325var action = () => new PostgresServerResource(name, userName, password);
Aspire.Hosting.Python.Tests (15)
Aspire.Hosting.Qdrant.Tests (9)
Aspire.Hosting.RabbitMQ.Tests (11)
Aspire.Hosting.Redis.Tests (16)
Aspire.Hosting.Seq.Tests (6)
Aspire.Hosting.SqlServer.Tests (12)
Aspire.Hosting.Testing.Tests (31)
TestingPublicApiTests.cs (31)
17var action = () => new DistributedApplicationFactory(entryPoint);
29var action = () => new DistributedApplicationFactory(entryPoint, args);
41var action = () => new DistributedApplicationFactory(entryPoint, args);
55var action = () => new DistributedApplicationFactory(entryPoint, args);
76var action = () => distributedApplicationFactory.CreateHttpClient(resourceName);
93var action = async () => await distributedApplicationFactory.GetConnectionString(resourceName);
110var action = () => distributedApplicationFactory.GetEndpoint(resourceName);
124var action = () => app.CreateHttpClient(resourceName);
138var action = () => distributedApplication.CreateHttpClient(resourceName);
152var action = async () => await app.GetConnectionStringAsync(resourceName);
166var action = async () => await distributedApplication.GetConnectionStringAsync(resourceName);
180var action = () => app.GetEndpoint(resourceName);
194var action = () => distributedApplication.GetEndpoint(resourceName);
207var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint);
218var action = () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args);
231var action = () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args);
249var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args);
261var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args);
275var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args);
293var action = () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args, configureBuilder);
305var action = () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args, configureBuilder);
319var action = () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args, configureBuilder);
338var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args, configureBuilder);
351var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args, configureBuilder);
364var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args, configureBuilder);
379var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args, configureBuilder);
396var action = () => DistributedApplicationTestingBuilder.Create(args);
409var action = () => DistributedApplicationTestingBuilder.Create(args);
427var action = () => DistributedApplicationTestingBuilder.Create(args, configureBuilder);
439var action = () => DistributedApplicationTestingBuilder.Create(args, configureBuilder);
453var action = () => DistributedApplicationTestingBuilder.Create(args, configureBuilder);
Aspire.Hosting.Tests (2)
Aspire.Hosting.Valkey.Tests (9)
Aspire.Keycloak.Authentication.Tests (28)
KeycloakAuthenticationPublicApiTests.cs (28)
21var action = () => builder.AddKeycloakJwtBearer(serviceName, realm);
37var action = () => builder.AddKeycloakJwtBearer(serviceName, realm);
55var action = () => builder.AddKeycloakJwtBearer(serviceName, realm);
71var action = () => builder.AddKeycloakJwtBearer(serviceName, realm, authenticationScheme);
88var action = () => builder.AddKeycloakJwtBearer(serviceName, realm, authenticationScheme);
107var action = () => builder.AddKeycloakJwtBearer(serviceName, realm, authenticationScheme);
126var action = () => builder.AddKeycloakJwtBearer(serviceName, realm, authenticationScheme);
142var action = () => builder.AddKeycloakJwtBearer(serviceName, realm, configureOptions);
159var action = () => builder.AddKeycloakJwtBearer(serviceName, realm, configureOptions);
178var action = () => builder.AddKeycloakJwtBearer(serviceName, realm, configureOptions);
195var action = () => builder.AddKeycloakJwtBearer(
217var action = () => builder.AddKeycloakJwtBearer(
241var action = () => builder.AddKeycloakJwtBearer(
265var action = () => builder.AddKeycloakJwtBearer(
284var action = () => builder.AddKeycloakOpenIdConnect(serviceName, realm);
300var action = () => builder.AddKeycloakOpenIdConnect(serviceName, realm);
318var action = () => builder.AddKeycloakOpenIdConnect(serviceName, realm);
334var action = () => builder.AddKeycloakOpenIdConnect(serviceName, realm, authenticationScheme);
351var action = () => builder.AddKeycloakOpenIdConnect(serviceName, realm, authenticationScheme);
370var action = () => builder.AddKeycloakOpenIdConnect(serviceName, realm, authenticationScheme);
389var action = () => builder.AddKeycloakOpenIdConnect(serviceName, realm, authenticationScheme);
405var action = () => builder.AddKeycloakOpenIdConnect(serviceName, realm, configureOptions);
422var action = () => builder.AddKeycloakOpenIdConnect(serviceName, realm, configureOptions);
441var action = () => builder.AddKeycloakOpenIdConnect(serviceName, realm, configureOptions);
458var action = () => builder.AddKeycloakOpenIdConnect(
480var action = () => builder.AddKeycloakOpenIdConnect(
504var action = () => builder.AddKeycloakOpenIdConnect(
528var action = () => builder.AddKeycloakOpenIdConnect(
Aspire.Microsoft.Azure.Cosmos (1)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Milvus.Client (1)
Aspire.MongoDB.Driver (1)
Aspire.MySqlConnector (1)
Aspire.NATS.Net (1)
Aspire.Npgsql (1)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.OpenAI (1)
Aspire.OpenAI.Tests (12)
Aspire.Oracle.EntityFrameworkCore (1)
Aspire.Playground.Tests (2)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
Aspire.Qdrant.Client (1)
Aspire.RabbitMQ.Client (1)
Aspire.Seq (1)
Aspire.StackExchange.Redis (2)
Aspire.StackExchange.Redis.Tests (2)
BinaryFormatTests (2)
BlazorUnitedApp (10)
artifacts\obj\BlazorUnitedApp\Release\net10.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_AddressEditor_razor.g.cs (8)
126__builder.AddComponentParameter(6, nameof(global::Microsoft.AspNetCore.Components.Forms.InputText.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => Value.Street));
163__builder.AddComponentParameter(17, nameof(global::Microsoft.AspNetCore.Components.Forms.InputText.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => Value.State));
200__builder.AddComponentParameter(28, nameof(global::Microsoft.AspNetCore.Components.Forms.InputText.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => Value.Zip));
237__builder.AddComponentParameter(39, nameof(global::Microsoft.AspNetCore.Components.Forms.InputText.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => Value.City));
260public static void CreateValidationMessage_0<TValue>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Linq.Expressions.Expression<global::System.Func<TValue>> __arg0)
274public static void CreateValidationMessage_1<TValue>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Linq.Expressions.Expression<global::System.Func<TValue>> __arg0)
288public static void CreateValidationMessage_2<TValue>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Linq.Expressions.Expression<global::System.Func<TValue>> __arg0)
302public static void CreateValidationMessage_3<TValue>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Linq.Expressions.Expression<global::System.Func<TValue>> __arg0)
Client.ClientBase.IntegrationTests (1)
Client.ExpectedExceptions.IntegrationTests (2)
ClientSample (7)
DefaultBuilder.SampleApp (1)
dotnet (16)
dotnet.Tests (13)
dotnet-dev-certs (7)
dotnet-getdocument (7)
dotnet-new.IntegrationTests (1)
dotnet-openapi (8)
dotnet-sql-cache (7)
dotnet-svcutil-lib (17)
dotnet-user-jwts (7)
dotnet-user-secrets (7)
dotnet-watch.Tests (2)
ExceptionHandlerSample (1)
GetDocument.Insider (7)
IIS.FunctionalTests (3)
IIS.LongTests (3)
IIS.NewHandler.FunctionalTests (3)
IIS.NewShim.FunctionalTests (3)
IIS.ShadowCopy.Tests (3)
IISExpress.FunctionalTests (3)
Infrastructure.Common (1)
InMemory.FunctionalTests (5)
InteractiveHost32 (1)
InteractiveHost64 (1)
Interop.FunctionalTests (3)
InteropClient (1)
Metrics (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Metrics.Legacy (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.Arcade.Common (12)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Authentication.Test (2)
Microsoft.AspNetCore.Authorization.Policy (1)
Microsoft.AspNetCore.Components (29)
Microsoft.AspNetCore.Components.Authorization.Tests (5)
Microsoft.AspNetCore.Components.Forms (15)
Microsoft.AspNetCore.Components.Forms.Tests (6)
Microsoft.AspNetCore.Components.QuickGrid.Tests (5)
Microsoft.AspNetCore.Components.Server (6)
Microsoft.AspNetCore.Components.Tests (49)
RendererTest.cs (19)
630OnArbitraryDelegateEvent = (Func<Task>)(() => Task.CompletedTask),
1184builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Func<Task>)(() =>
1303builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Func<Task>)(() =>
1649builder.AddComponentParameter(1, nameof(EventComponent.OnClickAsyncAction), (Func<Task>)(async () =>
1760builder.AddComponentParameter(1, nameof(EventComponent.OnClickAsyncAction), (Func<Task>)(async () =>
1880builder.AddComponentParameter(1, nameof(EventComponent.OnClickAsyncAction), (Func<Task>)(async () =>
2321builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => throw exception1));
2355builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => default));
2395builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => { await tcs.Task; }));
2440builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => { await tcs.Task; throw exception1; }));
2479builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => throw new TaskCanceledException()));
2517(Func<ValueTask>)(() => new ValueTask(tcs.Task)));
4275builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => { disposed = true; throw exception1; }));
4303builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => { await tcs.Task; disposed = true; throw exception1; }));
4912builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => await exception2Tcs.Task));
5355public Func<Task> OnClickAsyncAction { get; set; }
5609public Func<ValueTask> AsyncDisposeAction { get; set; }
5863public Func<Task<(int id, EventType @event)>> EventAction { get; set; }
6115public Func<Task> Callback { get; set; }
Microsoft.AspNetCore.Components.Web (7)
Microsoft.AspNetCore.Components.Web.Tests (7)
Microsoft.AspNetCore.Components.WebAssembly (10)
Microsoft.AspNetCore.Components.WebView.Maui (3)
Microsoft.AspNetCore.Components.WebView.Photino (12)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.Connections.Abstractions (2)
Microsoft.AspNetCore.Cryptography.Internal (3)
Microsoft.AspNetCore.Cryptography.Internal.Tests (3)
Microsoft.AspNetCore.DataProtection (17)
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (4)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (7)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
Microsoft.AspNetCore.Grpc.Swagger (2)
Microsoft.AspNetCore.Hosting.Tests (4)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Abstractions (5)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Connections.Client (5)
Microsoft.AspNetCore.Http.Connections.Tests (3)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Results.Tests (4)
Microsoft.AspNetCore.HttpLogging.Tests (1)
Microsoft.AspNetCore.Identity.Test (2)
Microsoft.AspNetCore.InternalTesting (7)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (1)
Microsoft.AspNetCore.Mvc.Abstractions (9)
Microsoft.AspNetCore.Mvc.Core (29)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Microsoft.AspNetCore.Mvc.Razor (6)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.Razor.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages (6)
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
SelectTagHelperTest.cs (5)
19public static TheoryData<object, Type, Func<object>, NameAndId, string> GeneratesExpectedDataSet
57return new TheoryData<object, Type, Func<object>, NameAndId, string>
167Func<object> modelAccessor,
256Func<object> modelAccessor,
436Func<object> modelAccessor,
Microsoft.AspNetCore.Mvc.Testing (7)
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
Microsoft.AspNetCore.Owin (12)
OwinEnvironment.cs (10)
251public FeatureMap(Type featureInterface, Func<object, object> getter, Func<object> defaultFactory)
274public FeatureMap(Type featureInterface, Func<object, object> getter, Func<object> defaultFactory, Action<object, object> setter)
287public FeatureMap(Type featureInterface, Func<object, object> getter, Func<object> defaultFactory, Action<object, object> setter, Func<object> featureFactory)
299private Func<object> DefaultFactory { get; set; }
300private Func<object> FeatureFactory { get; set; }
365public FeatureMap(Func<TFeature, object> getter, Func<object> defaultFactory)
386public FeatureMap(Func<TFeature, object> getter, Func<object> defaultFactory, Action<TFeature, object> setter)
398public FeatureMap(Func<TFeature, object> getter, Func<object> defaultFactory, Action<TFeature, object> setter, Func<TFeature> featureFactory)
Microsoft.AspNetCore.RateLimiting.Tests (3)
Microsoft.AspNetCore.Razor.Runtime (11)
Microsoft.AspNetCore.Razor.Runtime.Test (5)
Microsoft.AspNetCore.Rewrite (5)
Microsoft.AspNetCore.Routing (4)
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (3)
Microsoft.AspNetCore.Session (6)
Microsoft.AspNetCore.Shared.Tests (7)
Microsoft.AspNetCore.SignalR.Client.Core (5)
Microsoft.AspNetCore.SignalR.Client.Tests (18)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (5)
Microsoft.AspNetCore.SignalR.Tests (11)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.TestHost (10)
Microsoft.AspNetCore.TestHost.Tests (3)
Microsoft.AspNetCore.Testing.Tests (1)
Microsoft.AspNetCore.WebSockets.Tests (2)
Microsoft.AspNetCore.WebUtilities (6)
Microsoft.Build (27)
PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.Build.Engine.OM.UnitTests (17)
Microsoft.Build.Engine.UnitTests (4)
Microsoft.Build.Tasks.Core (19)
Microsoft.Build.UnitTests.Shared (12)
Microsoft.Build.Utilities.Core (12)
Microsoft.CodeAnalysis (35)
ResourceDescription.cs (4)
24internal readonly Func<Stream> DataProvider;
38public ResourceDescription(string resourceName, Func<Stream> dataProvider, bool isPublic)
55public ResourceDescription(string resourceName, string? fileName, Func<Stream> dataProvider, bool isPublic)
60internal ResourceDescription(string resourceName, string? fileName, Func<Stream> dataProvider, bool isPublic, bool isEmbedded, bool checkArgs)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.Analyzers (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.AnalyzerUtilities (23)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.BannedApiAnalyzers (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.CodeStyle (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.Collections.Package (6)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (9)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (9)
NavigateTo\NavigateToSearcherTests.cs (9)
48It.IsAny<Func<Task>>(),
57Func<Task> onProjectCompleted,
71It.IsAny<Func<Task>>(),
79Func<Task> onProjectCompleted,
98It.IsAny<Func<Task>>(),
107Func<Task> onProjectCompleted,
515public Task SearchCachedDocumentsAsync(Solution solution, ImmutableArray<Project> projects, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken)
527public Task SearchGeneratedDocumentsAsync(Solution solution, ImmutableArray<Project> projects, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken)
533public Task SearchProjectsAsync(Solution solution, ImmutableArray<Project> projects, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Debugging.Package (6)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.EditorFeatures (37)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.Extensions.Package (6)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (2)
Microsoft.CodeAnalysis.Features (21)
NavigateTo\NavigateToSearcher.cs (2)
350Func<INavigateToSearchService, ImmutableArray<Project>, Func<ImmutableArray<INavigateToSearchResult>, Task>, Func<Task>, Task> processProjectAsync,
535public async Task SearchProjectsAsync(Solution solution, ImmutableArray<Project> projects, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.InteractiveHost (13)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Protocol\SumType.cs (3)
154public TResult Match<TResult>(Func<T1, TResult> firstMatch, Func<T2, TResult> secondMatch, Func<TResult>? defaultMatch = null)
427public TResult Match<TResult>(Func<T1, TResult> firstMatch, Func<T2, TResult> secondMatch, Func<T3, TResult> thirdMatch, Func<TResult>? defaultMatch = null)
798public TResult Match<TResult>(Func<T1, TResult> firstMatch, Func<T2, TResult> secondMatch, Func<T3, TResult> thirdMatch, Func<T4, TResult> fourthMatch, Func<TResult>? defaultMatch = null)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (19)
Microsoft.CodeAnalysis.PooledObjects.Package (6)
PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.PublicApiAnalyzers (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.Test.Utilities (16)
Microsoft.CodeAnalysis.Threading.Package (6)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.UnitTests (8)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.CodeAnalysis.Workspaces (30)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (18)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.CSharp (1)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.DotNet.ApiCompat.Tests (1)
Microsoft.DotNet.ApiCompat.Tool (1)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
Microsoft.DotNet.Cli.Utils (8)
Microsoft.DotNet.Configurer (4)
Microsoft.DotNet.Helix.Sdk (4)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.MSBuildSdkResolver (9)
Microsoft.DotNet.NativeWrapper (3)
Microsoft.DotNet.PackageInstall.Tests (2)
Microsoft.DotNet.RemoteExecutor (3)
Microsoft.DotNet.TemplateLocator (6)
Microsoft.DotNet.VersionTools.Tests (1)
Microsoft.DotNet.XUnitExtensions (3)
Microsoft.Extensions.AI.Evaluation (5)
Microsoft.Extensions.AI.Evaluation.Console (10)
Microsoft.Extensions.AI.Evaluation.NLP (5)
Microsoft.Extensions.AI.Evaluation.Quality (5)
Microsoft.Extensions.AI.Evaluation.Reporting (5)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (5)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (3)
Microsoft.Extensions.AI.Evaluation.Safety (5)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.Tests (8)
Microsoft.Extensions.AmbientMetadata.Application.Tests (6)
Microsoft.Extensions.AsyncState.Tests (1)
Microsoft.Extensions.Caching.MicroBenchmarks (4)
Microsoft.Extensions.Caching.StackExchangeRedis (2)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Microsoft.Extensions.Configuration.Binder (2)
Microsoft.Extensions.DependencyModel (2)
Microsoft.Extensions.Diagnostics.HealthChecks (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (11)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.Hosting (4)
Microsoft.Extensions.Http (5)
Microsoft.Extensions.Http.Diagnostics.Tests (18)
Microsoft.Extensions.Http.Polly.Tests (1)
Microsoft.Extensions.Http.Resilience (4)
Microsoft.Extensions.Http.Resilience.Tests (7)
Microsoft.Extensions.ObjectPool (1)
Microsoft.Extensions.Options (2)
Microsoft.Extensions.Primitives (4)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (7)
Microsoft.Extensions.ServiceDiscovery.Tests (16)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (3)
Microsoft.Extensions.Telemetry.Tests (7)
Microsoft.Extensions.WebEncoders (1)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Maui (8)
Microsoft.Maui.Controls (64)
AnimationExtensions.cs (7)
137 Func<bool> repeat = null)
143 Func<bool> r = () =>
156 Action<double, bool> finished = null, Func<bool> repeat = null)
163 Func<bool> repeat = null)
172 Action<T, bool> finished = null, Func<bool> repeat = null, IAnimationManager animationManager = null)
256 uint rate, uint length, Easing easing, Action<T, bool> finished, Func<bool> repeat)
390 public Func<bool> Repeat;
LegacyLayouts\RelativeLayout.cs (18)
279 Func<double> x;
289 Func<double> y;
299 Func<double> width;
300 Func<double> height = null;
343 void Add(T view, Expression<Func<Rect>> bounds);
345 void Add(T view, Expression<Func<double>> x = null, Expression<Func<double>> y = null, Expression<Func<double>> width = null, Expression<Func<double>> height = null);
359 public void Add(View view, Expression<Func<Rect>> bounds)
368 public void Add(View view, Expression<Func<double>> x = null, Expression<Func<double>> y = null, Expression<Func<double>> width = null, Expression<Func<double>> height = null)
370 Func<double> xCompiled = x != null ? x.Compile() : () => 0;
371 Func<double> yCompiled = y != null ? y.Compile() : () => 0;
373 Func<double> widthCompiled = width != null ? width.Compile() : () => view.Measure(Parent.Width, Parent.Height, MeasureFlags.IncludeMargins).Request.Width;
374 Func<double> heightCompiled = height != null ? height.Compile() : () => view.Measure(Parent.Width, Parent.Height, MeasureFlags.IncludeMargins).Request.Height;
Xaml\TypeConversionExtensions.cs (7)
45 internal static object ConvertTo(this object value, Type toType, Func<ParameterInfo> pinfoRetriever,
48 Func<TypeConverter> getConverter = () =>
62 internal static object ConvertTo(this object value, Type toType, Func<MemberInfo> minfoRetriever,
65 Func<TypeConverter> getConverter = () =>
118 ret = value.ConvertTo(toType, (Func<TypeConverter>)null, serviceProvider, out exception);
123 Func<TypeConverter> getConverter = () => (TypeConverter)Activator.CreateInstance(convertertype);
130 internal static object ConvertTo(this object value, Type toType, Func<TypeConverter> getConverter,
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.Xaml (5)
ApplyPropertiesVisitor.cs (4)
174 addMethod.Invoke(source, new[] { value.ConvertTo(addMethod.GetParameters()[0].ParameterType, (Func<TypeConverter>)null, new XamlServiceProvider(node, Context), out xpe) });
587 Func<MemberInfo> minforetriever;
753 addMethod.Invoke(collection, new[] { value.ConvertTo(addMethod.GetParameters()[0].ParameterType, (Func<TypeConverter>)null, serviceProvider, out exception) });
821 addMethod.Invoke(collection, new[] { value.ConvertTo(addMethod.GetParameters()[0].ParameterType, (Func<TypeConverter>)null, serviceProvider, out exception) });
Microsoft.Maui.Essentials (3)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
Microsoft.Maui.Resizetizer (3)
Microsoft.ML.AutoML.Tests (3)
Microsoft.ML.Core (12)
Microsoft.ML.Core.Tests (13)
UnitTests\CoreBaseTestClass.cs (13)
29protected Func<bool> GetIdComparer(DataViewRow r1, DataViewRow r2, out ValueGetter<DataViewRowId> idGetter)
45protected Func<bool> GetComparerOne<T>(DataViewRow r1, DataViewRow r2, int col, Func<T, T, bool> fn)
68protected Func<bool> GetComparerVec<T>(DataViewRow r1, DataViewRow r2, int col, int size, Func<T, T, bool> fn)
83protected Func<bool> GetColumnComparer(DataViewRow r1, DataViewRow r2, int col, DataViewType type, bool exactDoubles)
250Func<bool>[] comps = new Func<bool>[colLim];
269Func<bool> idComp = checkId ? GetIdComparer(curs1, curs2, out idGetter) : null;
309var comp = comps[col];
341Func<bool>[] comps = new Func<bool>[colLim];
343Func<bool>[] idComps = new Func<bool>[cursors.Length];
381var comp = comps[col];
Microsoft.ML.CpuMath (3)
Microsoft.ML.Data (35)
Microsoft.ML.FastTree (3)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.TestFramework (13)
DataPipe\TestDataPipeBase.cs (13)
707Func<bool>[] comps = new Func<bool>[colLim];
726Func<bool> idComp = checkId ? GetIdComparer(curs1, curs2, out idGetter) : null;
767var comp = comps[col];
799Func<bool>[] comps = new Func<bool>[colLim];
801Func<bool>[] idComps = new Func<bool>[cursors.Length];
839var comp = comps[col];
865protected Func<bool> GetIdComparer(DataViewRow r1, DataViewRow r2, out ValueGetter<DataViewRowId> idGetter)
881protected Func<bool> GetColumnComparer(DataViewRow r1, DataViewRow r2, int col, DataViewType type, bool exactDoubles)
1000protected Func<bool> GetComparerOne<T>(DataViewRow r1, DataViewRow r2, int col, Func<T, T, bool> fn)
1017protected Func<bool> GetComparerVec<T>(DataViewRow r1, DataViewRow r2, int col, int size, Func<T, T, bool> fn)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.Tests (3)
Microsoft.ML.TimeSeries (2)
Microsoft.ML.Tokenizers.Data.Tests (1)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.TorchSharp (2)
Microsoft.ML.Transforms (18)
Microsoft.NET.Build.Containers (4)
Registry\Registry.cs (4)
79private readonly Func<TimeSpan> _retryDelayProvider;
92internal Registry(string registryName, ILogger logger, IRegistryAPI registryAPI, RegistrySettings? settings = null, Func<TimeSpan>? retryDelayProvider = null) :
101internal Registry(Uri baseUri, ILogger logger, IRegistryAPI registryAPI, RegistrySettings? settings = null, Func<TimeSpan>? retryDelayProvider = null) :
109private Registry(Uri baseUri, ILogger logger, RegistryApiFactory factory, RegistrySettings? settings = null, Func<TimeSpan>? retryDelayProvider = null)
Microsoft.NET.Build.Tasks (4)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.NET.Sdk.WorkloadManifestReader (4)
Microsoft.NET.Sdk.WorkloadManifestReader.Tests (2)
Microsoft.TemplateEngine.Cli (8)
Microsoft.VisualBasic.Tests (2)
Microsoft.VisualStudio.LanguageServices (8)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.Implementation (6)
MSBuild (12)
MSBuildTaskHost (12)
mscorlib (1)
Mvc.Api.Analyzers.Test (1)
netstandard (1)
PresentationCore (6)
PresentationFramework (21)
Roslyn.Diagnostics.Analyzers (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
Roslyn.Diagnostics.CSharp.Analyzers (1)
Roslyn.VisualStudio.DiagnosticsWindow (1)
rzc (9)
Sample (30)
artifacts\obj\Sample\Release\net10.0\generated\Microsoft.AspNetCore.Http.RequestDelegateGenerator\Microsoft.AspNetCore.Http.RequestDelegateGenerator.RequestDelegateGenerator\GeneratedRouteBuilderExtensions.g.cs (30)
577var handler = Cast(del, global::TodoWithDueDate () => throw null!);
630var castHandler = Cast(handler, global::TodoWithDueDate () => throw null!);
662var handler = Cast(del, global::Triangle () => throw null!);
715var castHandler = Cast(handler, global::Triangle () => throw null!);
747var handler = Cast(del, global::Shape () => throw null!);
800var castHandler = Cast(handler, global::Shape () => throw null!);
831var handler = Cast(del, global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Triangle> () => throw null!);
887var castHandler = Cast(handler, global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Triangle> () => throw null!);
918var handler = Cast(del, global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Triangle>, global::Microsoft.AspNetCore.Http.HttpResults.NotFound<global::System.String>> () => throw null!);
974var castHandler = Cast(handler, global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Triangle>, global::Microsoft.AspNetCore.Http.HttpResults.NotFound<global::System.String>> () => throw null!);
1005var handler = Cast(del, global::Microsoft.AspNetCore.Http.IResult () => throw null!);
1061var castHandler = Cast(handler, global::Microsoft.AspNetCore.Http.IResult () => throw null!);
1869var handler = Cast(del, global::System.Collections.Generic.Dictionary<global::System.String, global::System.Int32> () => throw null!);
1922var castHandler = Cast(handler, global::System.Collections.Generic.Dictionary<global::System.String, global::System.Int32> () => throw null!);
1954var handler = Cast(del, global::System.Collections.Immutable.ImmutableDictionary<global::System.String, global::System.Int32> () => throw null!);
2007var castHandler = Cast(handler, global::System.Collections.Immutable.ImmutableDictionary<global::System.String, global::System.Int32> () => throw null!);
3368var handler = Cast(del, global::SchemasEndpointsExtensions.CustomIResultImplementor () => throw null!);
3424var castHandler = Cast(handler, global::SchemasEndpointsExtensions.CustomIResultImplementor () => throw null!);
3824var handler = Cast(del, global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::SchemasEndpointsExtensions.NullableResponseModel> () => throw null!);
3880var castHandler = Cast(handler, global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::SchemasEndpointsExtensions.NullableResponseModel> () => throw null!);
3912var handler = Cast(del, global::SchemasEndpointsExtensions.NullableResponseModel? () => throw null!);
3965var castHandler = Cast(handler, global::SchemasEndpointsExtensions.NullableResponseModel? () => throw null!);
4365var handler = Cast(del, global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::SchemasEndpointsExtensions.ModelWithDefaults> () => throw null!);
4421var castHandler = Cast(handler, global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::SchemasEndpointsExtensions.ModelWithDefaults> () => throw null!);
4452var handler = Cast(del, global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::SchemasEndpointsExtensions.EnumNullableModel> () => throw null!);
4508var castHandler = Cast(handler, global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::SchemasEndpointsExtensions.EnumNullableModel> () => throw null!);
4913var handler = Cast(del, global::System.String[] () => throw null!);
4966var castHandler = Cast(handler, global::System.String[] () => throw null!);
4996var handler = Cast(del, global::Microsoft.AspNetCore.Http.IResult () => throw null!);
5052var castHandler = Cast(handler, global::Microsoft.AspNetCore.Http.IResult () => throw null!);
ScenarioTests.Common.Tests (1)
SimpleWebSiteWithWebApplicationBuilderException (1)
Sockets.BindTests (2)
Sockets.FunctionalTests (6)
Swaggatherer (7)
System.ComponentModel.Annotations (5)
System.ComponentModel.Composition (16)
System.Composition.Hosting (3)
System.Composition.Runtime (3)
System.Configuration.ConfigurationManager (1)
System.Core (1)
System.Diagnostics.DiagnosticSource (53)
System\Diagnostics\Metrics\Meter.cs (19)
266public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<T> observeValue, string? unit = null, string? description = null) where T : struct =>
280public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
294public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit = null, string? description = null) where T : struct =>
308public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
321public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit = null, string? description = null) where T : struct =>
335public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
348public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<T> observeValue, string? unit = null, string? description = null) where T : struct =>
362public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
375public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit = null, string? description = null) where T : struct =>
389public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
403public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit = null, string? description = null) where T : struct =>
417public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
427public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<T> observeValue, string? unit = null, string? description = null) where T : struct =>
438public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
448public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<Measurement<T>> observeValue, string? unit = null, string? description = null) where T : struct =>
459public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
469public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit = null, string? description = null) where T : struct =>
480public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
544private Instrument GetOrCreateInstrument<T>(Type instrumentType, string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags, Func<Instrument> instrumentCreator)
System\Diagnostics\Metrics\ObservableCounter.cs (6)
20internal ObservableCounter(Meter meter, string name, Func<T> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
24internal ObservableCounter(Meter meter, string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
30internal ObservableCounter(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
34internal ObservableCounter(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
40internal ObservableCounter(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description) : this(meter, name, observeValues, unit, description, tags: null)
44internal ObservableCounter(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
System\Diagnostics\Metrics\ObservableGauge.cs (6)
20internal ObservableGauge(Meter meter, string name, Func<T> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
24internal ObservableGauge(Meter meter, string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
30internal ObservableGauge(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
34internal ObservableGauge(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
40internal ObservableGauge(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description) : this(meter, name, observeValues, unit, description, tags: null)
44internal ObservableGauge(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
System\Diagnostics\Metrics\ObservableUpDownCounter.cs (6)
20internal ObservableUpDownCounter(Meter meter, string name, Func<T> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
24internal ObservableUpDownCounter(Meter meter, string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
30internal ObservableUpDownCounter(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
34internal ObservableUpDownCounter(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
40internal ObservableUpDownCounter(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description) : this(meter, name, observeValues, unit, description, tags: null)
44internal ObservableUpDownCounter(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
System.Drawing.Common.Tests (12)
System.Linq.Expressions (5)
System.Linq.Parallel (3)
System.Linq.Queryable (5)
System.Net.Http (9)
System.Net.Quic (2)
System.Net.Security (2)
System.Private.CoreLib (69)
src\libraries\System.Private.CoreLib\src\System\Threading\LazyInitializer.cs (11)
81/// <param name="valueFactory">The <see cref="Func{T}"/> invoked to initialize the
102public static T EnsureInitialized<T>([NotNull] ref T? target, Func<T> valueFactory) where T : class =>
112private static T EnsureInitializedCore<T>([NotNull] ref T? target, Func<T> valueFactory) where T : class
190/// <param name="valueFactory">The <see cref="Func{T}"/> invoked to initialize the
193public static T EnsureInitialized<T>([AllowNull] ref T target, ref bool initialized, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock, Func<T> valueFactory)
214/// The <see cref="Func{T}"/> to invoke in order to produce the lazily-initialized value.
217private static T EnsureInitializedCore<T>([AllowNull] ref T target, ref bool initialized, [NotNull] ref object? syncLock, Func<T> valueFactory)
240/// <param name="valueFactory">The <see cref="Func{T}"/> invoked to initialize the reference.</param>
242public static T EnsureInitialized<T>([NotNull] ref T? target, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock, Func<T> valueFactory) where T : class =>
254/// The <see cref="Func{T}"/> to invoke in order to produce the lazily-initialized value.
257private static T EnsureInitializedCore<T>([NotNull] ref T? target, [NotNull] ref object? syncLock, Func<T> valueFactory) where T : class
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (7)
105public Task(Func<TResult> function)
126public Task(Func<TResult> function, CancellationToken cancellationToken)
150public Task(Func<TResult> function, TaskCreationOptions creationOptions)
177public Task(Func<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions)
284internal Task(Func<TResult> valueSelector, Task? parent, CancellationToken cancellationToken,
308internal static Task<TResult> StartNew(Task? parent, Func<TResult> function, CancellationToken cancellationToken,
484if (m_action is Func<TResult> func)
System.Private.DataContractSerialization (5)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (3)
System.Reflection.Metadata (3)
System.Reflection.MetadataLoadContext (5)
System.Runtime (1)
System.Runtime.InteropServices.JavaScript (2)
System.Security.Claims (2)
System.Security.Cryptography (5)
System.Security.Principal.Windows (3)
System.ServiceModel.Primitives (12)
System.Text.Json (33)
System.Text.RegularExpressions (1)
System.Text.RegularExpressions.Generator (1)
System.Threading.Tasks.Dataflow (1)
System.Threading.Tasks.Parallel (17)
System\Threading\Tasks\Parallel.cs (17)
692Func<TLocal> localInit,
745Func<TLocal> localInit,
809Func<TLocal> localInit,
874Func<TLocal> localInit,
920Func<TLocal>? localInit, Action<TLocal>? localFinally)
1416public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, Func<TLocal> localInit,
1481ParallelOptions parallelOptions, Func<TLocal> localInit,
1535public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, Func<TLocal> localInit,
1599public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TLocal> localInit,
1643Func<TLocal>? localInit, Action<TLocal>? localFinally)
1701Func<TLocal>? localInit, Action<TLocal>? localFinally)
1760Func<TLocal>? localInit, Action<TLocal>? localFinally)
2022Func<TLocal> localInit,
2100Func<TLocal> localInit,
2396Func<TLocal> localInit,
2487Func<TLocal> localInit,
2514Func<TLocal>? localInit,
System.Windows.Controls.Ribbon (4)
System.Windows.Forms (4)
System.Windows.Forms.Design (1)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Primitives.Tests (4)
System.Windows.Forms.Primitives.TestUtilities (5)
System.Windows.Forms.Tests (27)
System.Windows.Forms.UI.IntegrationTests (6)
System.Windows.Input.Manipulations (7)
System.Xaml (4)
System.Xaml.Tests (2)
Templates.Blazor.Tests (8)
Templates.Blazor.WebAssembly.Auth.Tests (22)
src\Shared\E2ETesting\WaitAssert.cs (14)
26public static void Equal<T>(this IWebDriver driver, T expected, Func<T> actual)
29public static void NotEqual<T>(this IWebDriver driver, T expected, Func<T> actual)
32public static void True(this IWebDriver driver, Func<bool> actual)
35public static void True(this IWebDriver driver, Func<bool> actual, TimeSpan timeout)
38public static void True(this IWebDriver driver, Func<bool> actual, TimeSpan timeout, string message)
40public static void True(this IWebDriver driver, Func<bool> actual, string message)
43public static void False(this IWebDriver driver, Func<bool> actual, string message)
46public static void False(this IWebDriver driver, Func<bool> actual)
49public static void Contains(this IWebDriver driver, string expectedSubstring, Func<string> actualString)
52public static void Collection<T>(this IWebDriver driver, Func<IEnumerable<T>> actualValues, params Action<T>[] elementInspectors)
55public static void Empty(this IWebDriver driver, Func<IEnumerable> actualValues)
58public static void Single(this IWebDriver driver, Func<IEnumerable> actualValues)
64public static TElement Exists<TElement>(this IWebDriver driver, Func<TElement> actual, TimeSpan timeout)
94private static TResult WaitAssertCore<TResult>(IWebDriver driver, Func<TResult> assertion, TimeSpan timeout = default)
Templates.Blazor.WebAssembly.Tests (22)
src\Shared\E2ETesting\WaitAssert.cs (14)
26public static void Equal<T>(this IWebDriver driver, T expected, Func<T> actual)
29public static void NotEqual<T>(this IWebDriver driver, T expected, Func<T> actual)
32public static void True(this IWebDriver driver, Func<bool> actual)
35public static void True(this IWebDriver driver, Func<bool> actual, TimeSpan timeout)
38public static void True(this IWebDriver driver, Func<bool> actual, TimeSpan timeout, string message)
40public static void True(this IWebDriver driver, Func<bool> actual, string message)
43public static void False(this IWebDriver driver, Func<bool> actual, string message)
46public static void False(this IWebDriver driver, Func<bool> actual)
49public static void Contains(this IWebDriver driver, string expectedSubstring, Func<string> actualString)
52public static void Collection<T>(this IWebDriver driver, Func<IEnumerable<T>> actualValues, params Action<T>[] elementInspectors)
55public static void Empty(this IWebDriver driver, Func<IEnumerable> actualValues)
58public static void Single(this IWebDriver driver, Func<IEnumerable> actualValues)
64public static TElement Exists<TElement>(this IWebDriver driver, Func<TElement> actual, TimeSpan timeout)
94private static TResult WaitAssertCore<TResult>(IWebDriver driver, Func<TResult> assertion, TimeSpan timeout = default)
Templates.Mvc.Tests (22)
src\Shared\E2ETesting\WaitAssert.cs (14)
26public static void Equal<T>(this IWebDriver driver, T expected, Func<T> actual)
29public static void NotEqual<T>(this IWebDriver driver, T expected, Func<T> actual)
32public static void True(this IWebDriver driver, Func<bool> actual)
35public static void True(this IWebDriver driver, Func<bool> actual, TimeSpan timeout)
38public static void True(this IWebDriver driver, Func<bool> actual, TimeSpan timeout, string message)
40public static void True(this IWebDriver driver, Func<bool> actual, string message)
43public static void False(this IWebDriver driver, Func<bool> actual, string message)
46public static void False(this IWebDriver driver, Func<bool> actual)
49public static void Contains(this IWebDriver driver, string expectedSubstring, Func<string> actualString)
52public static void Collection<T>(this IWebDriver driver, Func<IEnumerable<T>> actualValues, params Action<T>[] elementInspectors)
55public static void Empty(this IWebDriver driver, Func<IEnumerable> actualValues)
58public static void Single(this IWebDriver driver, Func<IEnumerable> actualValues)
64public static TElement Exists<TElement>(this IWebDriver driver, Func<TElement> actual, TimeSpan timeout)
94private static TResult WaitAssertCore<TResult>(IWebDriver driver, Func<TResult> assertion, TimeSpan timeout = default)
Templates.Tests (22)
src\Shared\E2ETesting\WaitAssert.cs (14)
26public static void Equal<T>(this IWebDriver driver, T expected, Func<T> actual)
29public static void NotEqual<T>(this IWebDriver driver, T expected, Func<T> actual)
32public static void True(this IWebDriver driver, Func<bool> actual)
35public static void True(this IWebDriver driver, Func<bool> actual, TimeSpan timeout)
38public static void True(this IWebDriver driver, Func<bool> actual, TimeSpan timeout, string message)
40public static void True(this IWebDriver driver, Func<bool> actual, string message)
43public static void False(this IWebDriver driver, Func<bool> actual, string message)
46public static void False(this IWebDriver driver, Func<bool> actual)
49public static void Contains(this IWebDriver driver, string expectedSubstring, Func<string> actualString)
52public static void Collection<T>(this IWebDriver driver, Func<IEnumerable<T>> actualValues, params Action<T>[] elementInspectors)
55public static void Empty(this IWebDriver driver, Func<IEnumerable> actualValues)
58public static void Single(this IWebDriver driver, Func<IEnumerable> actualValues)
64public static TElement Exists<TElement>(this IWebDriver driver, Func<TElement> actual, TimeSpan timeout)
94private static TResult WaitAssertCore<TResult>(IWebDriver driver, Func<TResult> assertion, TimeSpan timeout = default)
Text.Analyzers (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (6)
171/// Gets a <see cref="Func{TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the
200public static Releaser GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
201=> GetPooledDelegate<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>(unboundFunction, argument, out boundFunction);
204/// Equivalent to <see cref="GetPooledFunction{TArg, TResult}(Func{TArg, TResult}, TArg, out Func{TResult})"/>,
412: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<TArg, TResult>, TArg, Func<TArg, TResult>, Func<TResult>>
414protected override Func<TResult> Bind()
UnitTests.Common (11)
VBCSCompiler (1)
VBCSCompiler.UnitTests (5)
Wasm.Performance.ConsoleHost (10)
Wasm.Performance.TestApp (2)
WindowsBase.Tests (4)
XmlFileLogger (1)
xunit.assert (21)
xunit.console (3)