2619 references to Func
aspire (53)
Aspire.Azure.AI.Inference.Tests (8)
Aspire.Azure.AI.OpenAI.Tests (10)
Aspire.Azure.Storage.Files.DataLake.Tests (2)
Aspire.Cli.EndToEnd.Tests (1)
Aspire.Cli.Tests (29)
Aspire.Dashboard (70)
Aspire.Dashboard.Components.Tests (52)
Shared\TestTelemetryRepository.cs (4)
28public Subscription OnNewResources(Func<Task> callback) => inner.OnNewResources(callback);
29public Subscription OnNewLogs(ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback) => inner.OnNewLogs(resourceKey, subscriptionType, callback);
30public Subscription OnNewMetrics(ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback) => inner.OnNewMetrics(resourceKey, subscriptionType, callback);
31public Subscription OnNewTraces(ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback) => inner.OnNewTraces(resourceKey, subscriptionType, callback);
Aspire.Dashboard.Tests (12)
Aspire.Deployment.EndToEnd.Tests (1)
Aspire.Hosting (33)
ApplicationModel\HttpCommandContext.cs (2)
9/// or <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{EndpointReference}?, string?, HttpCommandOptions?)"/>.
96/// or <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{EndpointReference}?, string?, HttpCommandOptions?)"/>.
ExternalServiceBuilderExtensions.cs (7)
345public static async Task<HealthCheckResult> CheckUriAsync(Uri uri, int expectedStatusCode, Func<HttpClient> httpClientFactory, HealthCheckContext context, CancellationToken cancellationToken)
372private readonly Func<HttpClient> _httpClientFactory;
374public StaticUriHealthCheck(Uri uri, int expectedStatusCode, Func<HttpClient> httpClientFactory)
393private readonly Func<HttpClient> _httpClientFactory;
397public ParameterUriHealthCheck(ParameterResource urlParameter, string? path, int expectedStatusCode, Func<HttpClient> httpClientFactory)
459private readonly Func<HttpClient> _httpClientFactory;
461public EndpointUriHealthCheck(EndpointReference endpoint, string path, int expectedStatusCode, Func<HttpClient> httpClientFactory)
ResourceBuilderExtensions.cs (8)
349public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, Func<string> callback) where T : IResourceWithEnvironment
2766var endpointSelector = endpointName is not null
2804public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, Func<EndpointReference>? endpointSelector, string? path = null, int? statusCode = null) where T : IResourceWithEndpoints
3676Func<EndpointReference>? endpointSelector,
4367private static Func<EndpointReference> NamedEndpointSelector<TResource>(IResourceBuilder<TResource> builder, string[] endpointNames, string errorDisplayNoun)
4393private static Func<EndpointReference> DefaultEndpointSelector<TResource>(IResourceBuilder<TResource> builder)
5055var endpointSelector = endpointName is not null
5110public 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 (8)
AzureProvisioningController.cs (5)
2376private static async Task<ExecuteCommandResult> ExecuteCommandAsync(Func<Task> action, string successMessage, Func<Task<CommandResultData>> createResultData, string? failureOperation = null)
2393private static async Task<ExecuteCommandResult> ExecuteCommandAsync<T>(Func<Task<T>> action, string successMessage, Func<T, Task<CommandResultData>> createResultData, string? failureOperation = null)
2410private static async Task<ExecuteCommandResult> ExecuteCommandAsync(Func<Task<bool>> action, string successMessage, Func<Task<CommandResultData>> createResultData, string? failureOperation = null)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.Kubernetes (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.Sandboxes (2)
Aspire.Hosting.Azure.Tests (163)
PublicApiTests\CosmosDBPublicApiTests.cs (34)
23var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPath, parent);
43var action = () => new AzureCosmosDBContainerResource(name, containerName, [partitionKeyPath], parent);
63var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPath, parent);
83var action = () => new AzureCosmosDBContainerResource(name, containerName, [partitionKeyPath], parent);
103var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPath, parent);
121var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPaths, parent);
137var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPaths, parent);
155var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPaths, parent);
169var action = () => new AzureCosmosDBContainerResource(name, containerName, partitionKeyPath, parent);
183var action = () => new AzureCosmosDBContainerResource(name, containerName, [partitionKeyPath], parent);
199var action = () => new AzureCosmosDBDatabaseResource(name, databaseName, parent.Resource);
217var action = () => new AzureCosmosDBDatabaseResource(name, databaseName, parent.Resource);
232var action = () => new AzureCosmosDBDatabaseResource(name, databaseName, parent);
243var action = () => new AzureCosmosDBEmulatorResource(innerResource);
257var action = () => new AzureCosmosDBResource(name, configureInfrastructure);
271var action = () => new AzureCosmosDBResource(name, configureInfrastructure);
283var action = () => builder.AddAzureCosmosDB(name);
297var action = () => builder.AddAzureCosmosDB(name);
311var action = () => builder.RunAsEmulator(configureContainer);
323var action = () => builder.RunAsClassicEmulator(configureContainer);
334var action = () => builder.WithDataVolume();
346var action = () => builder.WithGatewayPort(port);
358var action = () => builder.WithPartitionCount(count);
371var action = () => builder.AddDatabase(databaseName);
387var action = () => cosmos.AddDatabase(databaseName);
401var action = () => builder.AddCosmosDatabase(name);
416var action = () => cosmos.AddCosmosDatabase(name);
431var action = () => builder.AddContainer(name, partitionKeyPath);
448var action = () => cosmos.AddContainer(name, partitionKeyPath);
467var action = () => cosmos.AddContainer(name, partitionKeyPath);
482var action = () => cosmos.AddContainer(name, partitionKeyPaths!);
494var action = () => cosmos.AddContainer(name, partitionKeyPaths);
508var action = () => cosmos.AddContainer(name, partitionKeyPaths);
518var 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.Blazor (2)
Aspire.Hosting.Blazor.Tests (2)
Aspire.Hosting.Browsers (4)
Aspire.Hosting.Browsers.Tests (7)
Aspire.Hosting.CodeGeneration.Go.Tests (2)
Aspire.Hosting.CodeGeneration.Java.Tests (2)
Aspire.Hosting.CodeGeneration.Python.Tests (2)
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
Aspire.Hosting.Containers.Tests (2)
Aspire.Hosting.DevTunnels.Tests (2)
Aspire.Hosting.Dotnet (1)
Aspire.Hosting.Dotnet.Tests (9)
Aspire.Hosting.DotnetTool.Tests (2)
Aspire.Hosting.Foundry.Tests (2)
Aspire.Hosting.Garnet.Tests (8)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.GitHub.Models.Tests (2)
Aspire.Hosting.Go.Tests (11)
Aspire.Hosting.Java.Tests (20)
Aspire.Hosting.JavaScript.Tests (19)
NodeJsPublicApiTests.cs (17)
22var action = () => new NodeAppResource(name, command, workingDirectory);
39var action = () => new NodeAppResource(name, command, workingDirectory);
54var action = () => new NodeAppResource(name, command, workingDirectory);
67var action = () => builder.AddNodeApp(name, ".", scriptPath);
82var action = () => builder.AddNodeApp(name, ".", scriptPath);
99var action = () => builder.AddNodeApp(name, ".", scriptPath);
114var action = () => builder.AddJavaScriptApp(name: name, workingDirectory);
129var action = () => builder.AddJavaScriptApp(name: name, workingDirectory);
144var action = () => builder.AddJavaScriptApp(name, appDirectory);
160var action = () => builder.AddJavaScriptApp(name, workingDirectory, runScriptName);
173var action = () => builder.PublishAsStaticWebsite();
184var action = () => builder.PublishAsNodeServer("server.js");
199var action = () => app.PublishAsNodeServer(entryPoint);
216var action = () => app.PublishAsNodeServer("server.js", outputPath);
229var action = () => builder.PublishAsPackageScript("start");
244var action = () => app.PublishAsPackageScript(scriptName);
257var action = () => builder.AddNextJsApp("nextjs", ".");
Aspire.Hosting.Kafka.Tests (11)
Aspire.Hosting.Keycloak.Tests (10)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Maui.Tests (2)
Aspire.Hosting.Milvus.Tests (18)
Aspire.Hosting.MongoDB.Tests (40)
MongoDBPublicApiTests.cs (30)
20var action = () => builder.AddMongoDB(name, port);
35var action = () => builder.AddMongoDB(name, port);
50var action = () => builder.AddMongoDB(name, userName: userName, password: password);
66var action = () => builder.AddMongoDB(name, userName: userName, password: password);
80var action = () => builder.AddDatabase(name);
95var action = () => builder.AddDatabase(name);
108var action = () => builder.WithMongoExpress();
122var action = () => builder.WithHostPort(port);
133var action = () => builder.WithDataVolume();
145var action = () => builder.WithDataBindMount(source);
160var action = () => builder.WithDataBindMount(source);
174var action = () => builder.WithInitBindMount("init.js");
191var action = () => builder.WithInitBindMount(source);
205var action = () => builder.WithInitFiles("init.js");
220var action = () => builder.WithInitFiles(source);
237var action = () => new MongoDBDatabaseResource(name, databaseName, parent);
254var action = () => new MongoDBDatabaseResource(name, databaseName, parent);
269var action = () => new MongoDBDatabaseResource(name, databaseName, parent);
282var action = () => new MongoDBServerResource(name);
297var action = () => new MongoExpressContainerResource(name);
311var action = () => builder.WithReplicaSet(name);
326var action = () => mongo.WithReplicaSet(name);
339var action = () => builder.WithBindIpAll();
350var action = () => builder.WithTlsMode();
362var action = () => mongo.WithTlsMode((MongoDBTlsMode)999);
373var action = () => builder.WithTlsAllowInvalidCertificates();
386var action = () => builder.WithKeyFile(keyValue, keyFilePath);
403var action = () => builder.WithKeyFile(keyValue, keyFilePath);
426var action = () => builder.WithKeyFile(keyValue, keyFilePath);
441var action = () => builder.WithKeyFile(keyValue, keyFilePath);
Aspire.Hosting.MySql.Tests (23)
Aspire.Hosting.Nats.Tests (11)
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.OpenAI.Tests (2)
Aspire.Hosting.Oracle.Tests (18)
Aspire.Hosting.Orleans.Tests (2)
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.Radius (1)
Aspire.Hosting.Redis.Tests (19)
Aspire.Hosting.RemoteHost (3)
Aspire.Hosting.RemoteHost.Tests (3)
Aspire.Hosting.Rust.Tests (3)
Aspire.Hosting.Seq.Tests (6)
Aspire.Hosting.SqlServer.Tests (12)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Testing.Tests (33)
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);
228var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint);
239var action = () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args);
252var action = () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args);
270var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args);
282var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args);
296var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args);
314var action = () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args, configureBuilder);
326var action = () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args, configureBuilder);
340var action = () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args, configureBuilder);
359var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args, configureBuilder);
372var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args, configureBuilder);
385var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args, configureBuilder);
400var action = () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint, args, configureBuilder);
417var action = () => DistributedApplicationTestingBuilder.Create(args);
430var action = () => DistributedApplicationTestingBuilder.Create(args);
448var action = () => DistributedApplicationTestingBuilder.Create(args, configureBuilder);
460var action = () => DistributedApplicationTestingBuilder.Create(args, configureBuilder);
474var action = () => DistributedApplicationTestingBuilder.Create(args, configureBuilder);
Aspire.Hosting.Tests (3)
Aspire.Hosting.TestUtilities (1)
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.OpenAI.Tests (12)
Aspire.Playground.Tests (4)
Aspire.StackExchange.Redis (1)
Aspire.StackExchange.Redis.Tests (2)
Aspire.TerminalHost.Tests (3)
Aspire.TestUtilities (2)
Client.ClientBase.IntegrationTests (1)
Client.ExpectedExceptions.IntegrationTests (2)
dotnet-aot (12)
dotnet-dev-certs (7)
dotnet-getdocument (7)
dotnet-openapi (8)
dotnet-sql-cache (7)
dotnet-svcutil-lib (17)
dotnet-user-jwts (7)
dotnet-user-secrets (7)
GenerateDocumentationAndConfigFiles (23)
src\roslyn\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()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (4)
19/// <inheritdoc cref="RoslynTelemetry.Log(FunctionId, Func{string}, LogLevel)"/>
20public static void Log(FunctionId functionId, Func<string> messageGetter, LogLevel logLevel = LogLevel.Debug)
51/// <inheritdoc cref="RoslynTelemetry.LogBlock(FunctionId, Func{string}, CancellationToken, LogLevel)"/>
52public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
GetDocument.Insider (7)
ILAssembler (1)
ILCompiler.ReadyToRun (8)
Infrastructure.Common (1)
Infrastructure.Tests (6)
Microsoft.Arcade.Common (12)
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authorization.Policy (1)
Microsoft.AspNetCore.Components (29)
Microsoft.AspNetCore.Components.Endpoints (13)
Microsoft.AspNetCore.Components.Forms (17)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server (6)
Microsoft.AspNetCore.Components.Testing (1)
Microsoft.AspNetCore.Components.Web (14)
Microsoft.AspNetCore.Components.WebAssembly (10)
Microsoft.AspNetCore.Components.WebView.Maui (3)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.Connections.Abstractions (2)
Microsoft.AspNetCore.Cryptography.Internal (3)
Microsoft.AspNetCore.DataProtection (17)
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (4)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (7)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Abstractions (5)
Microsoft.AspNetCore.Http.Connections.Client (6)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.InternalTesting (7)
Microsoft.AspNetCore.Mvc.Abstractions (9)
Microsoft.AspNetCore.Mvc.Core (29)
Microsoft.AspNetCore.Mvc.Razor (6)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.RazorPages (6)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.Testing (7)
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
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.Razor.Runtime (11)
Microsoft.AspNetCore.Razor.Utilities.Shared (14)
src\roslyn\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.AspNetCore.Rewrite (5)
Microsoft.AspNetCore.Routing (4)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Session (6)
Microsoft.AspNetCore.SignalR.Client.Core (5)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.TestHost (10)
Microsoft.AspNetCore.Testing.Tests (1)
Microsoft.AspNetCore.WebUtilities (6)
Microsoft.Build (18)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\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.Framework (19)
Microsoft.Build.Tasks.Core (8)
Microsoft.Build.Utilities.Core (1)
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\roslyn\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 (23)
src\roslyn\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()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (4)
19/// <inheritdoc cref="RoslynTelemetry.Log(FunctionId, Func{string}, LogLevel)"/>
20public static void Log(FunctionId functionId, Func<string> messageGetter, LogLevel logLevel = LogLevel.Debug)
51/// <inheritdoc cref="RoslynTelemetry.LogBlock(FunctionId, Func{string}, CancellationToken, LogLevel)"/>
52public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
Microsoft.CodeAnalysis.AnalyzerUtilities (27)
src\roslyn\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()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (4)
19/// <inheritdoc cref="RoslynTelemetry.Log(FunctionId, Func{string}, LogLevel)"/>
20public static void Log(FunctionId functionId, Func<string> messageGetter, LogLevel logLevel = LogLevel.Debug)
51/// <inheritdoc cref="RoslynTelemetry.LogBlock(FunctionId, Func{string}, CancellationToken, LogLevel)"/>
52public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
Microsoft.CodeAnalysis.CodeStyle (23)
src\roslyn\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()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (4)
19/// <inheritdoc cref="RoslynTelemetry.Log(FunctionId, Func{string}, LogLevel)"/>
20public static void Log(FunctionId functionId, Func<string> messageGetter, LogLevel logLevel = LogLevel.Debug)
51/// <inheritdoc cref="RoslynTelemetry.LogBlock(FunctionId, Func{string}, CancellationToken, LogLevel)"/>
52public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Extensions.Package (6)
src\roslyn\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.HotReload (3)
Microsoft.CodeAnalysis.Features (18)
NavigateTo\NavigateToSearcher.cs (2)
350Func<INavigateToSearchService, ImmutableArray<Project>, Func<ImmutableArray<INavigateToSearchResult>, Task>, Func<Task>, Task> processProjectAsync,
536public 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.NetAnalyzers (5)
Microsoft.CodeAnalysis.Razor.Compiler (5)
Microsoft.CodeAnalysis.ResxSourceGenerator (23)
src\roslyn\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()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (4)
19/// <inheritdoc cref="RoslynTelemetry.Log(FunctionId, Func{string}, LogLevel)"/>
20public static void Log(FunctionId functionId, Func<string> messageGetter, LogLevel logLevel = LogLevel.Debug)
51/// <inheritdoc cref="RoslynTelemetry.LogBlock(FunctionId, Func{string}, CancellationToken, LogLevel)"/>
52public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
Microsoft.CodeAnalysis.VisualBasic (29)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces (33)
src\roslyn\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()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (4)
19/// <inheritdoc cref="RoslynTelemetry.Log(FunctionId, Func{string}, LogLevel)"/>
20public static void Log(FunctionId functionId, Func<string> messageGetter, LogLevel logLevel = LogLevel.Debug)
51/// <inheritdoc cref="RoslynTelemetry.LogBlock(FunctionId, Func{string}, CancellationToken, LogLevel)"/>
52public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CSharp (1)
Microsoft.Diagnostics.DataContractReader.Contracts (2)
Microsoft.Diagnostics.NETCore.Client (2)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.DotNet.Cli.Definitions (3)
Microsoft.DotNet.Cli.Utils (8)
Microsoft.DotNet.Configurer (4)
Microsoft.DotNet.NativeWrapper (3)
Microsoft.DotNet.TemplateLocator (6)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Evaluation (5)
Microsoft.Extensions.AI.Evaluation.Console (15)
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.OpenAI.Tests (1)
Microsoft.Extensions.AI.Tests (13)
Microsoft.Extensions.AmbientMetadata.Application.Tests (6)
Microsoft.Extensions.AsyncState.Tests (1)
Microsoft.Extensions.Caching.StackExchangeRedis (2)
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Microsoft.Extensions.Configuration.Binder (2)
Microsoft.Extensions.DependencyModel (2)
Microsoft.Extensions.Diagnostics.HealthChecks (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (13)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.Hosting (4)
Microsoft.Extensions.Http (5)
Microsoft.Extensions.Http.Diagnostics.Tests (20)
Microsoft.Extensions.Http.Resilience (4)
Microsoft.Extensions.Http.Resilience.Tests (7)
Microsoft.Extensions.ObjectPool (1)
Microsoft.Extensions.Options (2)
Microsoft.Extensions.Primitives (10)
ChangeToken.cs (10)
25public static IDisposable OnChange(Func<IChangeToken?> changeTokenProducer, Action changeTokenConsumer)
44public static IDisposable OnChange<TState>(Func<IChangeToken?> changeTokenProducer, Action<TState> changeTokenConsumer, TState state)
63public static IDisposable OnChange(Func<IChangeToken?> changeTokenProducer, Func<Task> changeTokenConsumer)
68return new AsyncChangeTokenRegistration<Func<Task>>(changeTokenProducer, static callback => callback(), changeTokenConsumer);
83public static IDisposable OnChange<TState>(Func<IChangeToken?> changeTokenProducer, Func<TState, Task> changeTokenConsumer, TState state)
91private abstract class ChangeTokenRegistration<TState>(Func<IChangeToken?> changeTokenProducer, TState state) : IDisposable
99protected Func<IChangeToken?> ChangeTokenProducer { get; } = changeTokenProducer;
179public SyncChangeTokenRegistration(Func<IChangeToken?> changeTokenProducer, Action<TState> changeTokenConsumer, TState state)
212public AsyncChangeTokenRegistration(Func<IChangeToken?> changeTokenProducer, Func<TState, Task> changeTokenConsumer, TState state)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (7)
Microsoft.Extensions.ServiceDiscovery.Tests (16)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (3)
Microsoft.Extensions.Telemetry.Tests (7)
Microsoft.Extensions.VectorData.Abstractions (3)
Microsoft.Extensions.VectorData.ConformanceTests (1)
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 (2)
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 (17)
Microsoft.NET.Build.Containers (6)
Registry\Registry.cs (4)
80private readonly Func<TimeSpan> _retryDelayProvider;
93internal Registry(string registryName, ILogger logger, IRegistryAPI registryAPI, RegistrySettings? settings = null, Func<TimeSpan>? retryDelayProvider = null) :
102internal Registry(Uri baseUri, ILogger logger, IRegistryAPI registryAPI, RegistrySettings? settings = null, Func<TimeSpan>? retryDelayProvider = null) :
110private Registry(Uri baseUri, ILogger logger, RegistryApiFactory factory, RegistrySettings? settings = null, Func<TimeSpan>? retryDelayProvider = null)
Microsoft.NET.Build.Tasks (4)
Microsoft.NET.ProjectData.Tasks (1)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.NET.Sdk.WorkloadManifestReader (4)
Microsoft.TemplateEngine.Cli (4)
Microsoft.TemplateEngine.Core (5)
Microsoft.TemplateEngine.Core.Contracts (1)
Microsoft.TemplateEngine.Utils (2)
Microsoft.VisualStudio.TestPlatform.Common (3)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
Mono.Cecil (3)
mscorlib (1)
netstandard (1)
NuGet.Build.Tasks (1)
NuGet.Build.Tasks.Console (2)
NuGet.CommandLine.XPlat (45)
NuGet.Commands (15)
RestoreCommand\LockFileBuilderCache.cs (1)
109internal (LockFileTargetLibrary, bool, NuGetFramework, NuGetFramework) GetLockFileTargetLibrary(RestoreTargetGraph graph, NuGetFramework framework, LocalPackageInfo localPackageInfo, string aliases, LibraryIncludeFlags libraryIncludeFlags, List<LibraryDependency> dependencies, bool restoreEnableAnalyzerAssets, Func<(LockFileTargetLibrary, bool, NuGetFramework, NuGetFramework)> valueFactory)
SourcesCommands\SourceRunners.cs (8)
18public static void Run(AddSourceArgs args, Func<ILogger> getLogger)
102public static void Run(DisableSourceArgs args, Func<ILogger> getLogger)
112public static void Run(EnableSourceArgs args, Func<ILogger> getLogger)
122public static void Run(ListSourceArgs args, Func<ILogger> getLogger)
201private static void WarnForHttpSources(IEnumerable<PackageSource> sources, Func<ILogger> getLogger)
238public static void Run(RemoveSourceArgs args, Func<ILogger> getLogger)
258public static void Run(UpdateSourceArgs args, Func<ILogger> getLogger)
358public static void EnableOrDisableSource(PackageSourceProvider sourceProvider, string name, bool enable, Func<ILogger> getLogger)
NuGet.Common (8)
NuGet.Configuration (1)
NuGet.DependencyResolver.Core (1)
NuGet.Frameworks (2)
NuGet.LibraryModel (2)
NuGet.PackageManagement (15)
NuGet.Packaging (9)
NuGet.ProjectModel (1)
NuGet.Protocol (31)
NuGet.Versioning (2)
PresentationCore (6)
PresentationFramework (21)
Roslyn.Diagnostics.Analyzers (23)
src\roslyn\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()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (4)
19/// <inheritdoc cref="RoslynTelemetry.Log(FunctionId, Func{string}, LogLevel)"/>
20public static void Log(FunctionId functionId, Func<string> messageGetter, LogLevel logLevel = LogLevel.Debug)
51/// <inheritdoc cref="RoslynTelemetry.LogBlock(FunctionId, Func{string}, CancellationToken, LogLevel)"/>
52public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
Roslyn.Diagnostics.CSharp.Analyzers (1)
rzc (9)
ScenarioTests.Common.Tests (1)
System.ComponentModel.Annotations (7)
System.ComponentModel.Composition (16)
System.Composition.Hosting (3)
System.Composition.Runtime (3)
System.Configuration.ConfigurationManager (1)
System.Core (1)
System.Diagnostics.DiagnosticSource (55)
System\Diagnostics\Metrics\Meter.cs (19)
263public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<T> observeValue, string? unit = null, string? description = null) where T : struct =>
277public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
291public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit = null, string? description = null) where T : struct =>
305public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
318public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit = null, string? description = null) where T : struct =>
332public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
345public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<T> observeValue, string? unit = null, string? description = null) where T : struct =>
359public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
372public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit = null, string? description = null) where T : struct =>
386public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
400public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit = null, string? description = null) where T : struct =>
414public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
424public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<T> observeValue, string? unit = null, string? description = null) where T : struct =>
435public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
445public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<Measurement<T>> observeValue, string? unit = null, string? description = null) where T : struct =>
456public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
466public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit = null, string? description = null) where T : struct =>
477public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
541private Instrument GetOrCreateInstrument<T>(Type instrumentType, string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags, Func<Instrument> instrumentCreator)
System\Diagnostics\Metrics\ObservableCounter.cs (7)
22internal ObservableCounter(Meter meter, string name, Func<T> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
26internal ObservableCounter(Meter meter, string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
32internal ObservableCounter(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
36internal ObservableCounter(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
42internal ObservableCounter(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description) : this(meter, name, observeValues, unit, description, tags: null)
46internal 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)
55protected override IEnumerable<Measurement<T>> Observe() => ((Func<IEnumerable<Measurement<T>>>)_callback)();
System\Diagnostics\Metrics\ObservableGauge.cs (7)
22internal ObservableGauge(Meter meter, string name, Func<T> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
26internal ObservableGauge(Meter meter, string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
32internal ObservableGauge(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
36internal ObservableGauge(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
42internal ObservableGauge(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description) : this(meter, name, observeValues, unit, description, tags: null)
46internal 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)
55protected override IEnumerable<Measurement<T>> Observe() => ((Func<IEnumerable<Measurement<T>>>)_callback)();
System\Diagnostics\Metrics\ObservableUpDownCounter.cs (7)
22internal ObservableUpDownCounter(Meter meter, string name, Func<T> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
26internal ObservableUpDownCounter(Meter meter, string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
32internal ObservableUpDownCounter(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description) : this(meter, name, observeValue, unit, description, tags: null)
36internal ObservableUpDownCounter(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
42internal ObservableUpDownCounter(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description) : this(meter, name, observeValues, unit, description, tags: null)
46internal 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)
55protected override IEnumerable<Measurement<T>> Observe() => ((Func<IEnumerable<Measurement<T>>>)_callback)();
System.IO.Compression (3)
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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.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.Caching (1)
System.Runtime.InteropServices.JavaScript (4)
System.Security.Claims (2)
System.Security.Cryptography (8)
System.Security.Cryptography.Pkcs (2)
System.Security.Principal.Windows (7)
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)
687Func<TLocal> localInit,
740Func<TLocal> localInit,
804Func<TLocal> localInit,
869Func<TLocal> localInit,
915Func<TLocal>? localInit, Action<TLocal>? localFinally)
1411public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, Func<TLocal> localInit,
1476ParallelOptions parallelOptions, Func<TLocal> localInit,
1530public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, Func<TLocal> localInit,
1594public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TLocal> localInit,
1638Func<TLocal>? localInit, Action<TLocal>? localFinally)
1696Func<TLocal>? localInit, Action<TLocal>? localFinally)
1755Func<TLocal>? localInit, Action<TLocal>? localFinally)
2017Func<TLocal> localInit,
2095Func<TLocal> localInit,
2391Func<TLocal> localInit,
2482Func<TLocal> localInit,
2509Func<TLocal>? localInit,
System.Windows.Controls.Ribbon (4)
System.Windows.Extensions (2)
System.Windows.Forms (6)
System.Windows.Forms.Design (1)
System.Windows.Forms.Primitives (1)
System.Windows.Input.Manipulations (7)
System.Xaml (4)
UnitTests.Common (11)
VBCSCompiler (1)
vstest.console (5)
vstest.console.arm64 (5)