5524 references to Action
aspire (13)
Aspire.Azure.AI.Inference (7)
Aspire.Azure.AI.Inference.Tests (1)
Aspire.Azure.AI.OpenAI (7)
Aspire.Azure.AI.OpenAI.Tests (1)
Aspire.Azure.Data.Tables (11)
Aspire.Azure.Data.Tables.Tests (1)
Aspire.Azure.Messaging.EventHubs (23)
AspireEventHubsExtensions.cs (20)
33Action<AzureMessagingEventHubsProcessorSettings>? configureSettings = null,
34Action<IAzureClientBuilder<EventProcessorClient, EventProcessorClientOptions>>? configureClientBuilder = null)
56Action<AzureMessagingEventHubsProcessorSettings>? configureSettings = null,
57Action<IAzureClientBuilder<EventProcessorClient, EventProcessorClientOptions>>? configureClientBuilder = null)
79Action<AzureMessagingEventHubsPartitionReceiverSettings>? configureSettings = null,
80Action<IAzureClientBuilder<PartitionReceiver, PartitionReceiverOptions>>? configureClientBuilder = null)
102Action<AzureMessagingEventHubsPartitionReceiverSettings>? configureSettings = null,
103Action<IAzureClientBuilder<PartitionReceiver, PartitionReceiverOptions>>? configureClientBuilder = null)
125Action<AzureMessagingEventHubsProducerSettings>? configureSettings = null,
126Action<IAzureClientBuilder<EventHubProducerClient, EventHubProducerClientOptions>>? configureClientBuilder = null)
148Action<AzureMessagingEventHubsProducerSettings>? configureSettings = null,
149Action<IAzureClientBuilder<EventHubProducerClient, EventHubProducerClientOptions>>? configureClientBuilder = null)
171Action<AzureMessagingEventHubsBufferedProducerSettings>? configureSettings = null,
172Action<IAzureClientBuilder<EventHubBufferedProducerClient, EventHubBufferedProducerClientOptions>>?
196Action<AzureMessagingEventHubsBufferedProducerSettings>? configureSettings = null,
197Action<IAzureClientBuilder<EventHubBufferedProducerClient, EventHubBufferedProducerClientOptions>>? configureClientBuilder = null)
219Action<AzureMessagingEventHubsConsumerSettings>? configureSettings = null,
220Action<IAzureClientBuilder<EventHubConsumerClient, EventHubConsumerClientOptions>>? configureClientBuilder = null)
243Action<AzureMessagingEventHubsConsumerSettings>? configureSettings = null,
244Action<IAzureClientBuilder<EventHubConsumerClient, EventHubConsumerClientOptions>>? configureClientBuilder = null)
Aspire.Azure.Messaging.EventHubs.Tests (12)
Aspire.Azure.Messaging.ServiceBus (7)
Aspire.Azure.Messaging.ServiceBus.Tests (1)
Aspire.Azure.Messaging.WebPubSub (10)
Aspire.Azure.Messaging.WebPubSub.Tests (1)
Aspire.Azure.Npgsql (5)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (5)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
Aspire.Azure.Npgsql.Tests (2)
Aspire.Azure.Search.Documents (7)
Aspire.Azure.Search.Documents.Tests (1)
Aspire.Azure.Security.KeyVault (19)
AspireKeyVaultExtensions.cs (16)
37Action<AzureSecurityKeyVaultSettings>? configureSettings = null,
38Action<IAzureClientBuilder<SecretClient, SecretClientOptions>>? configureClientBuilder = null)
60Action<AzureSecurityKeyVaultSettings>? configureSettings = null,
61Action<IAzureClientBuilder<SecretClient, SecretClientOptions>>? configureClientBuilder = null)
82Action<AzureSecurityKeyVaultSettings>? configureSettings = null,
83Action<IAzureClientBuilder<CertificateClient, CertificateClientOptions>>? configureClientBuilder = null)
104Action<AzureSecurityKeyVaultSettings>? configureSettings = null,
105Action<IAzureClientBuilder<CertificateClient, CertificateClientOptions>>? configureClientBuilder = null)
126Action<AzureSecurityKeyVaultSettings>? configureSettings = null,
127Action<IAzureClientBuilder<KeyClient, KeyClientOptions>>? configureClientBuilder = null)
148Action<AzureSecurityKeyVaultSettings>? configureSettings = null,
149Action<IAzureClientBuilder<KeyClient, KeyClientOptions>>? configureClientBuilder = null)
169Action<AzureSecurityKeyVaultSettings>? configureSettings = null,
170Action<SecretClientOptions>? configureClientOptions = null,
183Action<AzureSecurityKeyVaultSettings>? configureSettings,
184Action<SecretClientOptions>? configureOptions)
Aspire.Azure.Security.KeyVault.Tests (3)
Aspire.Azure.Storage.Blobs (15)
AspireBlobStorageExtensions.cs (12)
39Action<AzureStorageBlobsSettings>? configureSettings = null,
40Action<IAzureClientBuilder<BlobServiceClient, BlobClientOptions>>? configureClientBuilder = null)
53Action<AzureStorageBlobsSettings>? configureSettings = null,
54Action<IAzureClientBuilder<BlobServiceClient, BlobClientOptions>>? configureClientBuilder = null)
85Action<AzureStorageBlobsSettings>? configureSettings = null,
86Action<IAzureClientBuilder<BlobServiceClient, BlobClientOptions>>? configureClientBuilder = null)
99Action<AzureStorageBlobsSettings>? configureSettings = null,
100Action<IAzureClientBuilder<BlobServiceClient, BlobClientOptions>>? configureClientBuilder = null)
130Action<AzureBlobStorageContainerSettings>? configureSettings = null,
131Action<IAzureClientBuilder<BlobContainerClient, BlobClientOptions>>? configureClientBuilder = null)
164Action<AzureBlobStorageContainerSettings>? configureSettings = null,
165Action<IAzureClientBuilder<BlobContainerClient, BlobClientOptions>>? configureClientBuilder = null)
Aspire.Azure.Storage.Blobs.Tests (1)
Aspire.Azure.Storage.Queues (15)
AspireQueueStorageExtensions.cs (12)
39Action<AzureStorageQueuesSettings>? configureSettings = null,
40Action<IAzureClientBuilder<QueueServiceClient, QueueClientOptions>>? configureClientBuilder = null)
62Action<AzureStorageQueuesSettings>? configureSettings = null,
63Action<IAzureClientBuilder<QueueServiceClient, QueueClientOptions>>? configureClientBuilder = null)
84Action<AzureStorageQueuesSettings>? configureSettings = null,
85Action<IAzureClientBuilder<QueueServiceClient, QueueClientOptions>>? configureClientBuilder = null)
107Action<AzureStorageQueuesSettings>? configureSettings = null,
108Action<IAzureClientBuilder<QueueServiceClient, QueueClientOptions>>? configureClientBuilder = null)
138Action<AzureStorageQueueSettings>? configureSettings = null,
139Action<IAzureClientBuilder<QueueClient, QueueClientOptions>>? configureClientBuilder = null)
172Action<AzureStorageQueueSettings>? configureSettings = null,
173Action<IAzureClientBuilder<QueueClient, QueueClientOptions>>? configureClientBuilder = null)
Aspire.Azure.Storage.Queues.Tests (1)
Aspire.Cli.Tests (14)
Aspire.Components.Common.TestUtilities (2)
Aspire.Confluent.Kafka (49)
AspireKafkaConsumerExtensions.cs (23)
25/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
29/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
30public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaConsumerSettings>? configureSettings)
33/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
34public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<ConsumerBuilder<TKey, TValue>>? configureBuilder)
37/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
41/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
42public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaConsumerSettings>? configureSettings, Action<ConsumerBuilder<TKey, TValue>>? configureBuilder)
53public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaConsumerSettings>? configureSettings, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
56/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
64/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
65public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaConsumerSettings>? configureSettings)
72/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
73public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<ConsumerBuilder<TKey, TValue>>? configureBuilder)
80/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
88/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
89public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaConsumerSettings>? configureSettings, Action<ConsumerBuilder<TKey, TValue>>? configureBuilder)
104public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaConsumerSettings>? configureSettings, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
113Action<KafkaConsumerSettings>? configureSettings,
248private static KafkaConsumerSettings BuildConsumerSettings(IHostApplicationBuilder builder, Action<KafkaConsumerSettings>? configureSettings, string connectionName)
271private static Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? Wrap<TKey, TValue>(Action<ConsumerBuilder<TKey, TValue>>? action)
AspireKafkaProducerExtensions.cs (23)
25/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
29/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
30public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaProducerSettings>? configureSettings)
33/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
34public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
37/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
41/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
42public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaProducerSettings>? configureSettings, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
53public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaProducerSettings>? configureSettings, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
56/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
64/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
65public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaProducerSettings>? configureSettings)
72/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
73public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
80/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
88/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
89public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaProducerSettings>? configureSettings, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
104public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaProducerSettings>? configureSettings, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
113Action<KafkaProducerSettings>? configureSettings,
249private static KafkaProducerSettings BuildProducerSettings(IHostApplicationBuilder builder, Action<KafkaProducerSettings>? configureSettings, string connectionName)
272private static Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? Wrap<TKey, TValue>(Action<ProducerBuilder<TKey, TValue>>? action)
Aspire.Confluent.Kafka.Tests (18)
Aspire.Dashboard (9)
Aspire.Dashboard.Components.Tests (6)
Aspire.Dashboard.Tests (16)
Aspire.EndToEnd.Tests (3)
Aspire.Hosting (45)
ResourceBuilderExtensions.cs (12)
113public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Action<EnvironmentCallbackContext> callback) where T : IResourceWithEnvironment
316public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, Action<CommandLineArgsCallbackContext> callback) where T : IResourceWithArgs
350public static IResourceBuilder<T> WithManifestPublishingCallback<T>(this IResourceBuilder<T> builder, Action<ManifestPublishingContext> callback) where T : IResource
408private static Action<EnvironmentCallbackContext> CreateEndpointReferenceEnvironmentPopulationCallback(EndpointReferenceAnnotation endpointReferencesAnnotation)
595var callback = CreateEndpointReferenceEnvironmentPopulationCallback(endpointReferenceAnnotation);
622/// The <see cref="WithEndpoint{T}(IResourceBuilder{T}, string, Action{EndpointAnnotation}, bool)"/> method allows
643public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string endpointName, Action<EndpointAnnotation> callback, bool createIfNotExists = true) where T : IResourceWithEndpoints
812/// The <see cref="EndpointReference"/> can be used to resolve the address of the endpoint in <see cref="WithEnvironment{T}(IResourceBuilder{T}, Action{EnvironmentCallbackContext})"/>.
885public static IResourceBuilder<T> WithUrls<T>(this IResourceBuilder<T> builder, Action<ResourceUrlsCallbackContext> callback)
1027public static IResourceBuilder<T> WithUrlForEndpoint<T>(this IResourceBuilder<T> builder, string endpointName, Action<ResourceUrlAnnotation> callback)
1057/// To customize the URL that is automatically added for an endpoint, use <see cref="WithUrlForEndpoint{T}(IResourceBuilder{T}, string, Action{ResourceUrlAnnotation})"/>.
2273public static IResourceBuilder<T> WithVSCodeDebugSupport<T>(this IResourceBuilder<T> builder, string projectPath, string debugAdapterId, string? requiredExtensionId, Action<CommandLineArgsCallbackContext>? argsCallback = null) where T : IResource
Aspire.Hosting.Azure (10)
Aspire.Hosting.Azure.AIFoundry (2)
Aspire.Hosting.Azure.AppConfiguration (3)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.ApplicationInsights (2)
Aspire.Hosting.Azure.AppService (1)
Aspire.Hosting.Azure.CognitiveServices (3)
Aspire.Hosting.Azure.ContainerRegistry (2)
Aspire.Hosting.Azure.CosmosDB (6)
Aspire.Hosting.Azure.EventHubs (9)
Aspire.Hosting.Azure.KeyVault (3)
Aspire.Hosting.Azure.OperationalInsights (2)
Aspire.Hosting.Azure.PostgreSQL (4)
Aspire.Hosting.Azure.Redis (4)
Aspire.Hosting.Azure.Search (1)
Aspire.Hosting.Azure.ServiceBus (13)
Aspire.Hosting.Azure.SignalR (3)
Aspire.Hosting.Azure.Sql (5)
Aspire.Hosting.Azure.Storage (3)
Aspire.Hosting.Azure.Tests (43)
Aspire.Hosting.Azure.WebPubSub (2)
Aspire.Hosting.Docker (4)
Aspire.Hosting.Docker.Tests (1)
Aspire.Hosting.Kafka (1)
Aspire.Hosting.Kafka.Tests (1)
Aspire.Hosting.Kubernetes (4)
Aspire.Hosting.Kubernetes.Tests (1)
Aspire.Hosting.Milvus (1)
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.MySql (1)
Aspire.Hosting.PostgreSQL (2)
Aspire.Hosting.Redis (2)
Aspire.Hosting.Testing (9)
Aspire.Hosting.Testing.Tests (6)
Aspire.Hosting.Tests (16)
Aspire.Hosting.Yarp (2)
Aspire.Keycloak.Authentication (4)
Aspire.Keycloak.Authentication.Tests (14)
Aspire.Microsoft.Azure.Cosmos (14)
Aspire.Microsoft.Azure.Cosmos.Tests (1)
Aspire.Microsoft.Data.SqlClient (6)
Aspire.Microsoft.Data.SqlClient.Tests (2)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (6)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (7)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (3)
Aspire.Milvus.Client (4)
Aspire.Milvus.Client.Tests (1)
Aspire.MongoDB.Driver (10)
Aspire.MongoDB.Driver.Tests (1)
Aspire.MongoDB.Driver.v3.Tests (1)
Aspire.MySqlConnector (4)
Aspire.MySqlConnector.Tests (2)
Aspire.NATS.Net (18)
AspireNatsClientExtensions.cs (17)
24/// <inheritdoc cref="AddNatsClient(IHostApplicationBuilder, string, Action{NatsClientSettings}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
28/// <inheritdoc cref="AddNatsClient(IHostApplicationBuilder, string, Action{NatsClientSettings}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
29public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, Action<NatsClientSettings>? configureSettings)
32/// <inheritdoc cref="AddNatsClient(IHostApplicationBuilder, string, Action{NatsClientSettings}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
36/// <inheritdoc cref="AddNatsClient(IHostApplicationBuilder, string, Action{NatsClientSettings}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
40/// <inheritdoc cref="AddNatsClient(IHostApplicationBuilder, string, Action{NatsClientSettings}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
41public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, Action<NatsClientSettings>? configureSettings, Func<NatsOpts, NatsOpts>? configureOptions)
54public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, Action<NatsClientSettings>? configureSettings, Func<IServiceProvider, NatsOpts, NatsOpts>? configureOptions)
59/// <inheritdoc cref="AddKeyedNatsClient(IHostApplicationBuilder, string, Action{NatsClientSettings}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
67/// <inheritdoc cref="AddKeyedNatsClient(IHostApplicationBuilder, string, Action{NatsClientSettings}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
68public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, Action<NatsClientSettings>? configureSettings)
75/// <inheritdoc cref="AddKeyedNatsClient(IHostApplicationBuilder, string, Action{NatsClientSettings}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
83/// <inheritdoc cref="AddKeyedNatsClient(IHostApplicationBuilder, string, Action{NatsClientSettings}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
91/// <inheritdoc cref="AddKeyedNatsClient(IHostApplicationBuilder, string, Action{NatsClientSettings}?, Func{IServiceProvider,NatsOpts,NatsOpts}?)"/>
92public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, Action<NatsClientSettings>? configureSettings, Func<NatsOpts, NatsOpts>? configureOptions)
110public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, Action<NatsClientSettings>? configureSettings, Func<IServiceProvider, NatsOpts, NatsOpts>? configureOptions)
117private static void AddNatsClientInternal(this IHostApplicationBuilder builder, string connectionName, object? serviceKey, Action<NatsClientSettings>? configureSettings, Func<IServiceProvider, NatsOpts, NatsOpts>? configureOptions)
Aspire.NATS.Net.Tests (5)
Aspire.Npgsql (8)
AspirePostgreSqlNpgsqlExtensions.cs (7)
32public static void AddNpgsqlDataSource(this IHostApplicationBuilder builder, string connectionName, Action<NpgsqlSettings>? configureSettings = null, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder = null)
47public static void AddKeyedNpgsqlDataSource(this IHostApplicationBuilder builder, string name, Action<NpgsqlSettings>? configureSettings = null, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder = null)
55Action<NpgsqlSettings>? configureSettings, string connectionName, object? serviceKey, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder)
106private static void RegisterNpgsqlServices(this IHostApplicationBuilder builder, NpgsqlSettings settings, string connectionName, object? serviceKey, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (5)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
Aspire.Npgsql.Tests (2)
Aspire.OpenAI (6)
Aspire.OpenAI.Tests (1)
Aspire.Oracle.EntityFrameworkCore (6)
Aspire.Oracle.EntityFrameworkCore.Tests (3)
Aspire.Playground.Tests (5)
Aspire.Pomelo.EntityFrameworkCore.MySql (5)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (3)
Aspire.Qdrant.Client (4)
Aspire.Qdrant.Client.Tests (1)
Aspire.RabbitMQ.Client (9)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v7.Tests (1)
Aspire.Seq (2)
Aspire.StackExchange.Redis (11)
Aspire.StackExchange.Redis.DistributedCaching (4)
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
Aspire.StackExchange.Redis.OutputCaching (4)
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
Aspire.StackExchange.Redis.Tests (1)
Aspire.Templates.Tests (3)
Binding.UDS.IntegrationTests (8)
ClientSample (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
ConfigurationSchemaGenerator (1)
Contract.XmlSerializer.IntegrationTests (1)
CSharpSyntaxGenerator (1)
dotnet-dev-certs (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
dotnet-getdocument (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
dotnet-openapi (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
dotnet-razorpagegenerator (1)
dotnet-sql-cache (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
dotnet-svcutil.xmlserializer.IntegrationTests (1)
dotnet-svcutil-lib (88)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (11)
25Action<object> callback, object state);
31AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, Action<object> callback, object state);
78Action<object> callback, object state)
104Action<object> callback, object state)
170public override AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, Action<object> callback, object state)
207private static Action<object> s_onWriteComplete = new Action<object>(OnWriteComplete);
208private static Action<object> s_onReadComplete = new Action<object>(OnReadComplete);
452private Action<object> _readCallback;
453private Action<object> _writeCallback;
550Action<object> callback, object state)
667public AsyncCompletionResult BeginRead(int offset, int size, TimeSpan timeout, Action<object> callback, object state)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (3)
88protected override AsyncCompletionResult BeginCloseOutput(TimeSpan timeout, Action<object> callback, object state)
99protected override AsyncCompletionResult StartWritingBufferedMessage(Message message, ArraySegment<byte> messageData, bool allowOutputBatching, TimeSpan timeout, Action<object> callback, object state)
105protected override AsyncCompletionResult StartWritingStreamedMessage(Message message, TimeSpan timeout, Action<object> callback, object state)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (4)
27private static Action<object> s_onWriteComplete = new Action<object>(OnWriteComplete);
488protected abstract AsyncCompletionResult StartWritingBufferedMessage(Message message, ArraySegment<byte> messageData, bool allowOutputBatching, TimeSpan timeout, Action<object> callback, object state);
490protected abstract AsyncCompletionResult BeginCloseOutput(TimeSpan timeout, Action<object> callback, object state);
500protected abstract AsyncCompletionResult StartWritingStreamedMessage(Message message, TimeSpan timeout, Action<object> callback, object state);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (7)
22private Action<object> _waitCallback;
186protected override AsyncCompletionResult StartWritingBufferedMessage(Message message, ArraySegment<byte> messageData, bool allowOutputBatching, TimeSpan timeout, Action<object> callback, object state)
226protected override AsyncCompletionResult StartWritingStreamedMessage(Message message, TimeSpan timeout, Action<object> callback, object state)
248protected override AsyncCompletionResult BeginCloseOutput(TimeSpan timeout, Action<object> callback, object state)
396private async void HandleCloseOutputAsyncCompletion(Task task, TimeSpan timeout, Action<object> callback, object state)
412private async void HandleSendAsyncCompletion(Task task, TimeSpan timeout, Action<object> callback, object state)
1193public async void WriteEndOfMessageAsync(Action<object> callback, object state)
Metadata\MetadataFileInfo.cs (4)
18internal MetadataFileInfo(object metadata, string filePath, string sourceUri, Action<XmlNS.XmlWriter> write)
31public Action<XmlNS.XmlWriter> Write { get; private set; }
61internal WsdlFileInfo(object metadata, string filePath, string sourceUri, Action<XmlNS.XmlWriter> write) : base(metadata, filePath, sourceUri, write)
76internal SchemaFileInfo(object metadata, string filePath, string sourceUri, Action<XmlNS.XmlWriter> write) : base(metadata, filePath, sourceUri, write)
dotnet-user-jwts (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
dotnet-user-secrets (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
GenerateDocumentationAndConfigFiles (48)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
GetDocument.Insider (10)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
HelixTestRunner (3)
http2cat (4)
IdeCoreBenchmarks (2)
Identity.DefaultUI.WebSite (1)
IIS.FunctionalTests (8)
IIS.LongTests (11)
IIS.NewHandler.FunctionalTests (11)
IIS.NewShim.FunctionalTests (11)
IIS.ShadowCopy.Tests (5)
IIS.Tests (3)
IISExpress.FunctionalTests (11)
illink (16)
ILLink.RoslynAnalyzer (34)
TrimAnalysis\GenericArgumentDataFlow.cs (5)
15public static void ProcessGenericArgumentDataFlow(TypeNameResolver typeNameResolver, Location location, INamedTypeSymbol type, Action<Diagnostic>? reportDiagnostic)
24public static void ProcessGenericArgumentDataFlow(TypeNameResolver typeNameResolver, Location location, IMethodSymbol method, Action<Diagnostic>? reportDiagnostic)
31public static void ProcessGenericArgumentDataFlow(TypeNameResolver typeNameResolver, Location location, IFieldSymbol field, Action<Diagnostic>? reportDiagnostic)
36public static void ProcessGenericArgumentDataFlow(TypeNameResolver typeNameResolver, Location location, IPropertySymbol property, Action<Diagnostic> reportDiagnostic)
46Action<Diagnostic>? reportDiagnostic)
Infrastructure.Common (2)
InMemory.FunctionalTests (12)
IntegrationTestsWebsite (1)
Interop.FunctionalTests (5)
Metrics (44)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
Metrics.Legacy (44)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
Microsoft.Arcade.Common (11)
Microsoft.AspNetCore (26)
Microsoft.AspNetCore.Antiforgery (2)
Microsoft.AspNetCore.Authentication (6)
AuthenticationBuilder.cs (5)
30private AuthenticationBuilder AddSchemeHelper<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
65public virtual AuthenticationBuilder AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
78public virtual AuthenticationBuilder AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, Action<TOptions>? configureOptions)
93public virtual AuthenticationBuilder AddRemoteScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
109public virtual AuthenticationBuilder AddPolicyScheme(string authenticationScheme, string? displayName, Action<PolicySchemeOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Abstractions (1)
Microsoft.AspNetCore.Authentication.BearerToken (2)
Microsoft.AspNetCore.Authentication.Certificate (3)
Microsoft.AspNetCore.Authentication.Cookies (3)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.Facebook (3)
Microsoft.AspNetCore.Authentication.Google (3)
Microsoft.AspNetCore.Authentication.JwtBearer (3)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (3)
Microsoft.AspNetCore.Authentication.Negotiate (6)
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
Microsoft.AspNetCore.Authentication.OAuth (4)
OAuthExtensions.cs (4)
24public static AuthenticationBuilder AddOAuth(this AuthenticationBuilder builder, string authenticationScheme, Action<OAuthOptions> configureOptions)
35public static AuthenticationBuilder AddOAuth(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<OAuthOptions> configureOptions)
45public static AuthenticationBuilder AddOAuth<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(this AuthenticationBuilder builder, string authenticationScheme, Action<TOptions> configureOptions)
58public static AuthenticationBuilder AddOAuth<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<TOptions> configureOptions)
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
Microsoft.AspNetCore.Authentication.Test (38)
Microsoft.AspNetCore.Authentication.Twitter (3)
Microsoft.AspNetCore.Authentication.WsFederation (3)
Microsoft.AspNetCore.Authorization (5)
Microsoft.AspNetCore.Authorization.Policy (3)
Microsoft.AspNetCore.Authorization.Test (18)
Microsoft.AspNetCore.AzureAppServicesIntegration.Tests (1)
Microsoft.AspNetCore.Components (59)
EventCallbackFactoryBinderExtensions.cs (36)
38Action<string?> setter,
78Action<bool> setter,
118Action<bool?> setter,
158Action<int> setter,
198Action<int?> setter,
238Action<long> setter,
278Action<short> setter,
318Action<long?> setter,
358Action<short?> setter,
398Action<float> setter,
438Action<float?> setter,
478Action<double> setter,
518Action<double?> setter,
558Action<decimal> setter,
598Action<decimal?> setter,
638Action<DateTime> setter,
679Action<DateTime> setter,
722Action<DateTime?> setter,
763Action<DateTime?> setter,
806Action<DateTimeOffset> setter,
847Action<DateTimeOffset> setter,
890Action<DateTimeOffset?> setter,
931Action<DateTimeOffset?> setter,
974Action<DateOnly> setter,
1015Action<DateOnly> setter,
1058Action<DateOnly?> setter,
1099Action<DateOnly?> setter,
1142Action<TimeOnly> setter,
1183Action<TimeOnly> setter,
1226Action<TimeOnly?> setter,
1267Action<TimeOnly?> setter,
1311Action<T> setter,
1342Action<T> setter,
1346Action<ChangeEventArgs> callback = e =>
1428Action<T> setter,
1433Action<ChangeEventArgs> callback = e =>
Microsoft.AspNetCore.Components.Authorization.Tests (5)
src\Components\Shared\test\AssertFrame.cs (4)
55public static void Attribute(RenderTreeFrame frame, string attributeName, Action<EventArgs> attributeEventHandlerValue, int? sequence = null)
73public static void Attribute(RenderTreeFrame frame, string attributeName, Action<object> attributeValidator, int? sequence = null)
123public static void ElementReferenceCapture(RenderTreeFrame frame, Action<ElementReference> action, int? sequence = null)
137public static void ComponentReferenceCapture(RenderTreeFrame frame, Action<object> action, int? sequence = null)
Microsoft.AspNetCore.Components.Endpoints (26)
Microsoft.AspNetCore.Components.Endpoints.Tests (14)
Microsoft.AspNetCore.Components.Forms.Tests (5)
Microsoft.AspNetCore.Components.QuickGrid.Tests (5)
src\Components\Shared\test\AssertFrame.cs (4)
55public static void Attribute(RenderTreeFrame frame, string attributeName, Action<EventArgs> attributeEventHandlerValue, int? sequence = null)
73public static void Attribute(RenderTreeFrame frame, string attributeName, Action<object> attributeValidator, int? sequence = null)
123public static void ElementReferenceCapture(RenderTreeFrame frame, Action<ElementReference> action, int? sequence = null)
137public static void ComponentReferenceCapture(RenderTreeFrame frame, Action<object> action, int? sequence = null)
Microsoft.AspNetCore.Components.Server (9)
Microsoft.AspNetCore.Components.Tests (118)
EventCallbackTest.cs (10)
100var callback = new EventCallback(component, (Action<EventArgs>)((e) => { arg = e; runCount++; }));
119var callback = new EventCallback(component, (Action<EventArgs>)((e) => { arg = e; runCount++; }));
138var callback = new EventCallback(component, (Action<int>)((e) => { arg = e; runCount++; }));
157var callback = new EventCallback(component, (Action<EventArgs>)((e) => { arg = e; runCount++; }));
280var delegate_1 = (EventArgs _) => { };
281var delegate_2 = (MulticastDelegate)MulticastDelegate.CreateDelegate(typeof(Action<EventArgs>), delegate_1.Target, delegate_1.Method);
334var callback = new EventCallback<EventArgs>(component, (Action<EventArgs>)((e) => { arg = e; runCount++; }));
353var callback = new EventCallback<EventArgs>(component, (Action<EventArgs>)((e) => { arg = e; runCount++; }));
442var delegate_1 = (EventArgs _) => { };
443var delegate_2 = (MulticastDelegate)MulticastDelegate.CreateDelegate(typeof(Action<EventArgs>), delegate_1.Target, delegate_1.Method);
RendererTest.cs (16)
675OnArbitraryDelegateEvent = (Action<DateTime>)(arg => { }),
1408builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create(parentComponent, (Action<DerivedEventArgs>)((e) =>
1509builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create(parentComponent, (Action<DerivedEventArgs>)((e) =>
1611builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action<DerivedEventArgs>)((e) =>
2628Action<EventArgs> origEventHandler = args => { eventCount++; };
2678Action<EventArgs> origEventHandler = args => { eventCount++; };
2720Action<EventArgs> origEventHandler = args => { eventCount++; };
2755Action<EventArgs> origEventHandler = args => { eventCount++; };
2806Action<EventArgs> origEventHandler = args => { eventCount++; };
3036builder.AddComponentParameter(2, "onclick", (Action<object>)((object obj) =>
3489Action<EventArgs> eventHandler = null;
4362AssertFrame.Attribute(attributeFrame, "ontestevent", typeof(Action<ChangeEventArgs>));
4414AssertFrame.Attribute(attributeFrame, "ontestevent", typeof(Action<ChangeEventArgs>));
5277public Action<EventArgs> OnTest { get; set; }
5283public Action<DerivedEventArgs> OnClick { get; set; }
5417public Action<object> OnClick { get; set; }
src\Components\Shared\test\AssertFrame.cs (4)
55public static void Attribute(RenderTreeFrame frame, string attributeName, Action<EventArgs> attributeEventHandlerValue, int? sequence = null)
73public static void Attribute(RenderTreeFrame frame, string attributeName, Action<object> attributeValidator, int? sequence = null)
123public static void ElementReferenceCapture(RenderTreeFrame frame, Action<ElementReference> action, int? sequence = null)
137public static void ComponentReferenceCapture(RenderTreeFrame frame, Action<object> action, int? sequence = null)
Microsoft.AspNetCore.Components.Web (10)
Web\WebEventCallbackFactoryEventArgsExtensions.cs (10)
20public static EventCallback<ClipboardEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<ClipboardEventArgs> callback)
52public static EventCallback<DragEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<DragEventArgs> callback)
84public static EventCallback<ErrorEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<ErrorEventArgs> callback)
116public static EventCallback<FocusEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<FocusEventArgs> callback)
148public static EventCallback<KeyboardEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<KeyboardEventArgs> callback)
180public static EventCallback<MouseEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<MouseEventArgs> callback)
211public static EventCallback<PointerEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<PointerEventArgs> callback)
243public static EventCallback<ProgressEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<ProgressEventArgs> callback)
275public static EventCallback<TouchEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<TouchEventArgs> callback)
307public static EventCallback<WheelEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<WheelEventArgs> callback)
Microsoft.AspNetCore.Components.Web.Tests (11)
src\Components\Shared\test\AssertFrame.cs (4)
55public static void Attribute(RenderTreeFrame frame, string attributeName, Action<EventArgs> attributeEventHandlerValue, int? sequence = null)
73public static void Attribute(RenderTreeFrame frame, string attributeName, Action<object> attributeValidator, int? sequence = null)
123public static void ElementReferenceCapture(RenderTreeFrame frame, Action<ElementReference> action, int? sequence = null)
137public static void ComponentReferenceCapture(RenderTreeFrame frame, Action<object> action, int? sequence = null)
Microsoft.AspNetCore.Components.WebAssembly (5)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.Components.WebView.Maui (4)
Microsoft.AspNetCore.Components.WebView.Photino (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (8)
Microsoft.AspNetCore.Components.WebView.Wpf (8)
Microsoft.AspNetCore.ConcurrencyLimiter (2)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
Microsoft.AspNetCore.Connections.Abstractions (3)
Microsoft.AspNetCore.CookiePolicy (3)
Microsoft.AspNetCore.CookiePolicy.Test (4)
Microsoft.AspNetCore.Cors (6)
Microsoft.AspNetCore.Cors.Test (6)
Microsoft.AspNetCore.DataProtection (8)
Microsoft.AspNetCore.DataProtection.Extensions (3)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
Microsoft.AspNetCore.DataProtection.Tests (4)
Microsoft.AspNetCore.Diagnostics (7)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (4)
Microsoft.AspNetCore.Diagnostics.Middleware (5)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.HeaderPropagation (2)
Microsoft.AspNetCore.HeaderPropagation.Tests (2)
Microsoft.AspNetCore.HostFiltering (1)
Microsoft.AspNetCore.Hosting (44)
Microsoft.AspNetCore.Hosting.Abstractions (7)
Microsoft.AspNetCore.Hosting.Tests (22)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Abstractions (8)
Microsoft.AspNetCore.Http.Connections (11)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.Http.Connections.Tests (5)
Microsoft.AspNetCore.Http.Extensions (4)
Microsoft.AspNetCore.Http.Extensions.Tests (31)
RequestDelegateFactoryTests.cs (22)
90new object[] { (Action<HttpContext>)TestAction },
93new object[] { (Action<HttpContext>)StaticTestAction },
746new object[] { (Action<object>)InvalidFromRoute },
747new object[] { (Action<object>)InvalidFromQuery },
748new object[] { (Action<object>)InvalidFromHeader },
838new object[] { (Action<ParametersListWithImplictFromBody>)TestImpliedFromBodyStruct_ParameterList },
854new object[] { (Action<ParametersListWithExplictFromBody>)TestExplicitFromBody_ParameterList },
1034new object[] { (Action<BadArgumentListRecord>)TestParameterListRecord, GetMultipleContructorsError(typeof(BadArgumentListRecord)) },
1035new object[] { (Action<BadArgumentListClass>)TestParameterListClass, GetInvalidConstructorError(typeof(BadArgumentListClass)) },
1036new object[] { (Action<BadArgumentListClassMultipleCtors>)TestParameterListClassWithMutipleConstructors, GetMultipleContructorsError(typeof(BadArgumentListClassMultipleCtors)) },
1037new object[] { (Action<BadAbstractArgumentListClass>)TestParameterListAbstractClass, GetAbstractClassError(typeof(BadAbstractArgumentListClass)) },
1038new object[] { (Action<BadNoPublicConstructorArgumentListClass>)TestParameterListNoPulicConstructorClass, GetNoContructorsError(typeof(BadNoPublicConstructorArgumentListClass)) },
1094new object[] { (Action<ParametersListWithExplictFromService>)TestExplicitFromService_FromParameterList },
1128new object[] { (Action<ParametersListWithImplictFromService>)TestImpliedFromService_FromParameterList },
2126new object[] { (Action<ParameterListRecordStruct?>)TestParameterListRecordStruct },
2127new object[] { (Action<ParameterListRecordClass?>)TestParameterListRecordClass },
2128new object[] { (Action<ParameterListStruct?>)TestParameterListStruct },
2129new object[] { (Action<ParameterListClass?>)TestParameterListClass },
2586var @delegate = (AddsCustomParameterMetadataBindable param1) => { };
2635var @delegate = (AddsCustomParameterMetadata param1) => { };
2872var @delegate = (AddsRoutePatternMetadata param1) => { };
2931var @delegate = void (IFormCollection formCollection) => { };
Microsoft.AspNetCore.Http.Microbenchmarks (5)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.HttpLogging.Tests (7)
Microsoft.AspNetCore.HttpOverrides (1)
Microsoft.AspNetCore.HttpsPolicy (2)
Microsoft.AspNetCore.Identity (8)
Microsoft.AspNetCore.Identity.FunctionalTests (4)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Identity.Specification.Tests (1)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Identity.UI (1)
Microsoft.AspNetCore.InternalTesting (10)
Microsoft.AspNetCore.InternalTesting.Tests (2)
Microsoft.AspNetCore.JsonPatch (11)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (11)
Microsoft.AspNetCore.Localization (2)
Microsoft.AspNetCore.MiddlewareAnalysis (2)
Microsoft.AspNetCore.Mvc (10)
Microsoft.AspNetCore.Mvc.Core (78)
Routing\ActionEndpointFactory.cs (24)
43IReadOnlyList<Action<EndpointBuilder>> conventions,
44IReadOnlyList<Action<EndpointBuilder>> groupConventions,
45IReadOnlyList<Action<EndpointBuilder>> finallyConventions,
46IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions,
76perRouteConventions: Array.Empty<Action<EndpointBuilder>>(),
79perRouteFinallyConventions: Array.Empty<Action<EndpointBuilder>>());
166perRouteConventions: Array.Empty<Action<EndpointBuilder>>(),
169perRouteFinallyConventions: Array.Empty<Action<EndpointBuilder>>());
179IReadOnlyList<Action<EndpointBuilder>> groupConventions,
180IReadOnlyList<Action<EndpointBuilder>> conventions,
181IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions,
182IReadOnlyList<Action<EndpointBuilder>> finallyConventions,
258foreach (var routeFinallyConvention in route.FinallyConventions)
263foreach (var finallyConvention in finallyConventions)
268foreach (var groupFinallyConvention in groupFinallyConventions)
336IReadOnlyList<Action<EndpointBuilder>> groupConventions,
337IReadOnlyList<Action<EndpointBuilder>> conventions,
338IReadOnlyList<Action<EndpointBuilder>> perRouteConventions,
339IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions,
340IReadOnlyList<Action<EndpointBuilder>> finallyConventions,
341IReadOnlyList<Action<EndpointBuilder>> perRouteFinallyConventions)
484foreach (var perRouteFinallyConvention in perRouteFinallyConventions)
489foreach (var finallyConvention in finallyConventions)
494foreach (var groupFinallyConvention in groupFinallyConventions)
Microsoft.AspNetCore.Mvc.Core.Test (44)
Routing\ActionEndpointFactoryTest.cs (22)
278conventions: Array.Empty<Action<EndpointBuilder>>(),
279groupConventions: Array.Empty<Action<EndpointBuilder>>(),
280finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
281groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
384conventions: Array.Empty<Action<EndpointBuilder>>(),
385groupConventions: Array.Empty<Action<EndpointBuilder>>(),
386finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
387groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
394return CreateConventionalRoutedEndpoint(action, new ConventionalRouteEntry(routeName: null, template, null, null, null, order: 0, new List<Action<EndpointBuilder>>(), new List<Action<EndpointBuilder>>()));
407conventions: Array.Empty<Action<EndpointBuilder>>(),
408groupConventions: Array.Empty<Action<EndpointBuilder>>(),
409finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
410groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
433conventions: Array.Empty<Action<EndpointBuilder>>(),
434groupConventions: Array.Empty<Action<EndpointBuilder>>(),
435finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
436groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
448List<Action<EndpointBuilder>> conventions = null,
449List<Action<EndpointBuilder>> finallyConventions = null)
451conventions ??= new List<Action<EndpointBuilder>>();
452finallyConventions ??= new List<Action<EndpointBuilder>>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (15)
Microsoft.AspNetCore.Mvc.Cors (3)
Microsoft.AspNetCore.Mvc.DataAnnotations (5)
Microsoft.AspNetCore.Mvc.Formatters.Xml (6)
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
Microsoft.AspNetCore.Mvc.IntegrationTests (20)
Microsoft.AspNetCore.Mvc.Localization (21)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.Test (5)
Microsoft.AspNetCore.Mvc.RazorPages (37)
ApplicationModels\PageConventionCollection.cs (20)
61Action<PageApplicationModel> action)
87Action<PageApplicationModel> action)
105public IPageApplicationModelConvention AddFolderApplicationModelConvention(string folderPath, Action<PageApplicationModel> action)
131Action<PageApplicationModel> action)
149public IPageRouteModelConvention AddPageRouteModelConvention(string pageName, Action<PageRouteModel> action)
172public IPageRouteModelConvention AddAreaPageRouteModelConvention(string areaName, string pageName, Action<PageRouteModel> action)
190public IPageRouteModelConvention AddFolderRouteModelConvention(string folderPath, Action<PageRouteModel> action)
213public IPageRouteModelConvention AddAreaFolderRouteModelConvention(string areaName, string folderPath, Action<PageRouteModel> action)
281private readonly Action<PageRouteModel> _action;
283public PageRouteModelConvention(string path, Action<PageRouteModel> action)
288public PageRouteModelConvention(string? areaName, string path, Action<PageRouteModel> action)
309private readonly Action<PageRouteModel> _action;
311public FolderRouteModelConvention(string folderPath, Action<PageRouteModel> action)
316public FolderRouteModelConvention(string? areaName, string folderPath, Action<PageRouteModel> action)
337private readonly Action<PageApplicationModel> _action;
339public PageApplicationModelConvention(string path, Action<PageApplicationModel> action)
344public PageApplicationModelConvention(string? areaName, string path, Action<PageApplicationModel> action)
365private readonly Action<PageApplicationModel> _action;
367public FolderApplicationModelConvention(string folderPath, Action<PageApplicationModel> action)
372public FolderApplicationModelConvention(string? areaName, string folderPath, Action<PageApplicationModel> action)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.Mvc.TagHelpers (4)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (19)
Microsoft.AspNetCore.Mvc.Test (2)
Microsoft.AspNetCore.Mvc.Testing (19)
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
Microsoft.AspNetCore.OpenApi (2)
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (8)
Microsoft.AspNetCore.OpenApi.Tests (12)
Microsoft.AspNetCore.OutputCaching (7)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
Microsoft.AspNetCore.OutputCaching.Tests (3)
Microsoft.AspNetCore.Owin (16)
Microsoft.AspNetCore.Owin.Microbenchmarks (2)
Microsoft.AspNetCore.Owin.Tests (7)
Microsoft.AspNetCore.RateLimiting (5)
Microsoft.AspNetCore.RateLimiting.Tests (8)
Microsoft.AspNetCore.Razor.Runtime (5)
Microsoft.AspNetCore.Razor.Runtime.Test (2)
Microsoft.AspNetCore.RequestDecompression (3)
Microsoft.AspNetCore.RequestDecompression.Tests (3)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCaching.Tests (3)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.ResponseCompression.Tests (2)
Microsoft.AspNetCore.Rewrite (3)
Microsoft.AspNetCore.Routing (54)
RequestDelegateRouteBuilderExtensions.cs (6)
47public static IRouteBuilder MapMiddlewareRoute(this IRouteBuilder builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action)
75public static IRouteBuilder MapMiddlewareDelete(this IRouteBuilder builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action)
117public static IRouteBuilder MapMiddlewareGet(this IRouteBuilder builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action)
159public static IRouteBuilder MapMiddlewarePost(this IRouteBuilder builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action)
201public static IRouteBuilder MapMiddlewarePut(this IRouteBuilder builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action)
290Action<IApplicationBuilder> action)
Microsoft.AspNetCore.Routing.FunctionalTests (5)
Microsoft.AspNetCore.Routing.Tests (77)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (11)
Utilities.cs (6)
50internal static IServer CreateHttpServer(out string baseAddress, RequestDelegate app, Action<HttpSysOptions> configureOptions, ILoggerFactory loggerFactory)
81internal static IHost CreateDynamicHost(out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory)
86internal static IHost CreateDynamicHost(string basePath, out string root, out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory)
118internal static MessagePump CreatePump(Action<HttpSysOptions> configureOptions, ILoggerFactory loggerFactory)
125internal static IServer CreateDynamicHttpServer(string basePath, out string root, out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory)
145internal static IServer CreateDynamicHttpsServer(string basePath, out string root, out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory = null)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (2)
Microsoft.AspNetCore.Server.IIS (13)
Microsoft.AspNetCore.Server.IISIntegration (2)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (3)
Microsoft.AspNetCore.Server.Kestrel (2)
Microsoft.AspNetCore.Server.Kestrel.Core (38)
KestrelConfigurationLoader.cs (11)
71private IDictionary<string, Action<EndpointConfiguration>> EndpointConfigurations { get; }
72= new Dictionary<string, Action<EndpointConfiguration>>(0, StringComparer.OrdinalIgnoreCase);
85public KestrelConfigurationLoader Endpoint(string name, Action<EndpointConfiguration> configureOptions)
101public KestrelConfigurationLoader Endpoint(IPAddress address, int port, Action<ListenOptions> configure)
116public KestrelConfigurationLoader Endpoint(IPEndPoint endPoint, Action<ListenOptions> configure)
139public KestrelConfigurationLoader LocalhostEndpoint(int port, Action<ListenOptions> configure)
159public KestrelConfigurationLoader AnyIPEndpoint(int port, Action<ListenOptions> configure)
179public KestrelConfigurationLoader UnixSocketEndpoint(string socketPath, Action<ListenOptions> configure)
204public KestrelConfigurationLoader NamedPipeEndpoint(string pipeName, Action<ListenOptions> configure)
225public KestrelConfigurationLoader HandleEndpoint(ulong handle, Action<ListenOptions> configure)
411if (EndpointConfigurations.TryGetValue(endpoint.Name, out var configureEndpoint))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (8)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (9)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
Microsoft.AspNetCore.SignalR (6)
Microsoft.AspNetCore.SignalR.Client (5)
HubConnectionBuilderHttpExtensions.cs (5)
53public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, [StringSyntax(StringSyntaxAttribute.Uri)] string url, Action<HttpConnectionOptions> configureHttpConnection)
80public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, [StringSyntax(StringSyntaxAttribute.Uri)] string url, HttpTransportType transports, Action<HttpConnectionOptions> configureHttpConnection)
105public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, Uri url, Action<HttpConnectionOptions> configureHttpConnection)
132public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, Uri url, HttpTransportType transports, Action<HttpConnectionOptions> configureHttpConnection)
138private static IHubConnectionBuilder WithUrlCore(this IHubConnectionBuilder hubConnectionBuilder, Uri url, HttpTransportType? transports, Action<HttpConnectionOptions>? configureHttpConnection)
Microsoft.AspNetCore.SignalR.Client.Core (5)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.Specification.Tests (3)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (3)
Microsoft.AspNetCore.SignalR.Tests.Utils (10)
Microsoft.AspNetCore.SpaProxy (2)
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (2)
Microsoft.AspNetCore.StaticAssets (12)
Microsoft.AspNetCore.StaticFiles (2)
Microsoft.AspNetCore.StaticFiles.Tests (3)
Microsoft.AspNetCore.TestHost (29)
Microsoft.AspNetCore.TestHost.Tests (8)
Microsoft.AspNetCore.Tests (14)
Microsoft.AspNetCore.WebSockets (1)
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Microsoft.AspNetCore.WebSockets.Tests (2)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.Authentication.WebAssembly.Msal (3)
Microsoft.Build.Framework (5)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (6)
Microsoft.Cci.Extensions (3)
Microsoft.CodeAnalysis (223)
DiagnosticAnalyzer\AnalyzerExecutor.cs (13)
37private readonly Action<Suppression>? _addSuppression;
116Action<Suppression>? addSuppression = null)
148Action<Suppression>? addSuppression)
329var addDiagnostic = GetAddCompilationDiagnostic(analyzer, cancellationToken);
383var addDiagnostic = GetAddDiagnostic(symbol, symbolDeclaredEvent.DeclaringSyntaxReferences, analyzer, getTopMostNodeForAnalysis, cancellationToken);
493var addDiagnostic = GetAddDiagnostic(symbol, symbolDeclaredEvent.DeclaringSyntaxReferences, analyzer, getTopMostNodeForAnalysis, cancellationToken);
671Action<Diagnostic> addDiagnostic,
695Action<Diagnostic> addDiagnostic,
1189internal void ExecuteAndCatchIfThrows<TArg>(DiagnosticAnalyzer analyzer, Action<TArg> analyze, TArg argument, AnalysisContextInfo? contextInfo, CancellationToken cancellationToken)
1223private void ExecuteAndCatchIfThrows_NoLock<TArg>(DiagnosticAnalyzer analyzer, Action<TArg> analyze, TArg argument, AnalysisContextInfo? info, CancellationToken cancellationToken)
1415private Action<Diagnostic> GetAddDiagnostic(ISymbol contextSymbol, ImmutableArray<SyntaxReference> cachedDeclaringReferences, DiagnosticAnalyzer analyzer, Func<ISymbol, SyntaxReference, Compilation, CancellationToken, SyntaxNode> getTopMostNodeForAnalysis, CancellationToken cancellationToken)
1421private static Action<Diagnostic> GetAddDiagnostic(
1470private Action<Diagnostic> GetAddCompilationDiagnostic(DiagnosticAnalyzer analyzer, CancellationToken cancellationToken)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (75)
53public abstract void RegisterCompilationStartAction(Action<CompilationStartAnalysisContext> action);
60public abstract void RegisterCompilationAction(Action<CompilationAnalysisContext> action);
68public abstract void RegisterSemanticModelAction(Action<SemanticModelAnalysisContext> action);
76public void RegisterSymbolAction(Action<SymbolAnalysisContext> action, params SymbolKind[] symbolKinds)
87public abstract void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds);
94public virtual void RegisterSymbolStartAction(Action<SymbolStartAnalysisContext> action, SymbolKind symbolKind)
106public abstract void RegisterCodeBlockStartAction<TLanguageKindEnum>(Action<CodeBlockStartAnalysisContext<TLanguageKindEnum>> action) where TLanguageKindEnum : struct;
113public abstract void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action);
120public abstract void RegisterSyntaxTreeAction(Action<SyntaxTreeAnalysisContext> action);
127public virtual void RegisterAdditionalFileAction(Action<AdditionalFileAnalysisContext> action)
140public void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, params TLanguageKindEnum[] syntaxKinds) where TLanguageKindEnum : struct
153public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct;
161public virtual void RegisterOperationBlockStartAction(Action<OperationBlockStartAnalysisContext> action)
171public virtual void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action)
183public void RegisterOperationAction(Action<OperationAnalysisContext> action, params OperationKind[] operationKinds)
195public virtual void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds)
355public abstract void RegisterCompilationEndAction(Action<CompilationAnalysisContext> action);
363public abstract void RegisterSemanticModelAction(Action<SemanticModelAnalysisContext> action);
371public void RegisterSymbolAction(Action<SymbolAnalysisContext> action, params SymbolKind[] symbolKinds)
382public abstract void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds);
389public virtual void RegisterSymbolStartAction(Action<SymbolStartAnalysisContext> action, SymbolKind symbolKind)
401public abstract void RegisterCodeBlockStartAction<TLanguageKindEnum>(Action<CodeBlockStartAnalysisContext<TLanguageKindEnum>> action) where TLanguageKindEnum : struct;
408public abstract void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action);
416public virtual void RegisterOperationBlockStartAction(Action<OperationBlockStartAnalysisContext> action)
426public virtual void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action)
436public abstract void RegisterSyntaxTreeAction(Action<SyntaxTreeAnalysisContext> action);
443public virtual void RegisterAdditionalFileAction(Action<AdditionalFileAnalysisContext> action)
456public void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, params TLanguageKindEnum[] syntaxKinds) where TLanguageKindEnum : struct
469public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct;
478public void RegisterOperationAction(Action<OperationAnalysisContext> action, params OperationKind[] operationKinds)
490public virtual void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds)
562private readonly Action<Diagnostic> _reportDiagnostic;
583public CompilationAnalysisContext(Compilation compilation, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken)
591Action<Diagnostic> reportDiagnostic,
685private readonly Action<Diagnostic> _reportDiagnostic;
722public SemanticModelAnalysisContext(SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken)
730Action<Diagnostic> reportDiagnostic,
769private readonly Action<Diagnostic> _reportDiagnostic;
815public SymbolAnalysisContext(ISymbol symbol, Compilation compilation, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken)
824Action<Diagnostic> reportDiagnostic,
927public abstract void RegisterSymbolEndAction(Action<SymbolAnalysisContext> action);
936public abstract void RegisterCodeBlockStartAction<TLanguageKindEnum>(Action<CodeBlockStartAnalysisContext<TLanguageKindEnum>> action) where TLanguageKindEnum : struct;
943public abstract void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action);
953public void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, params TLanguageKindEnum[] syntaxKinds) where TLanguageKindEnum : struct
966public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct;
974public abstract void RegisterOperationBlockStartAction(Action<OperationBlockStartAnalysisContext> action);
981public abstract void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action);
990public void RegisterOperationAction(Action<OperationAnalysisContext> action, params OperationKind[] operationKinds)
1002public abstract void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds);
1098public abstract void RegisterCodeBlockEndAction(Action<CodeBlockAnalysisContext> action);
1107public void RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext> action, params TLanguageKindEnum[] syntaxKinds)
1119public abstract void RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds);
1132private readonly Action<Diagnostic> _reportDiagnostic;
1179public CodeBlockAnalysisContext(SyntaxNode codeBlock, ISymbol owningSymbol, SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken)
1189Action<Diagnostic> reportDiagnostic,
1327public abstract void RegisterOperationBlockEndAction(Action<OperationBlockAnalysisContext> action);
1336public void RegisterOperationAction(Action<OperationAnalysisContext> action, params OperationKind[] operationKinds)
1348public abstract void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds);
1380private readonly Action<Diagnostic> _reportDiagnostic;
1436Action<Diagnostic> reportDiagnostic,
1449Action<Diagnostic> reportDiagnostic,
1512private readonly Action<Diagnostic> _reportDiagnostic;
1546public SyntaxTreeAnalysisContext(SyntaxTree tree, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken)
1554Action<Diagnostic> reportDiagnostic,
1591private readonly Action<Diagnostic> _reportDiagnostic;
1624Action<Diagnostic> reportDiagnostic,
1664private readonly Action<Diagnostic> _reportDiagnostic;
1716public SyntaxNodeAnalysisContext(SyntaxNode node, ISymbol? containingSymbol, SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken)
1722public SyntaxNodeAnalysisContext(SyntaxNode node, SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken)
1732Action<Diagnostic> reportDiagnostic,
1774private readonly Action<Diagnostic> _reportDiagnostic;
1827Action<Diagnostic> reportDiagnostic,
1839Action<Diagnostic> reportDiagnostic,
1883private readonly Action<Suppression> _addSuppression;
1918Action<Suppression> suppressDiagnostic,
DiagnosticAnalyzer\DiagnosticAnalyzerAction.cs (28)
23public Action<SymbolAnalysisContext> Action { get; }
26public SymbolAnalyzerAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> kinds, DiagnosticAnalyzer analyzer)
36public Action<SymbolStartAnalysisContext> Action { get; }
39public SymbolStartAnalyzerAction(Action<SymbolStartAnalysisContext> action, SymbolKind kind, DiagnosticAnalyzer analyzer)
49public Action<SymbolAnalysisContext> Action { get; }
51public SymbolEndAnalyzerAction(Action<SymbolAnalysisContext> action, DiagnosticAnalyzer analyzer)
60public Action<SyntaxNodeAnalysisContext> Action { get; }
63public SyntaxNodeAnalyzerAction(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> kinds, DiagnosticAnalyzer analyzer)
73public Action<OperationBlockStartAnalysisContext> Action { get; }
75public OperationBlockStartAnalyzerAction(Action<OperationBlockStartAnalysisContext> action, DiagnosticAnalyzer analyzer)
84public Action<OperationBlockAnalysisContext> Action { get; }
86public OperationBlockAnalyzerAction(Action<OperationBlockAnalysisContext> action, DiagnosticAnalyzer analyzer)
95public Action<OperationAnalysisContext> Action { get; }
98public OperationAnalyzerAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> kinds, DiagnosticAnalyzer analyzer)
108public Action<CompilationStartAnalysisContext> Action { get; }
110public CompilationStartAnalyzerAction(Action<CompilationStartAnalysisContext> action, DiagnosticAnalyzer analyzer)
119public Action<CompilationAnalysisContext> Action { get; }
121public CompilationAnalyzerAction(Action<CompilationAnalysisContext> action, DiagnosticAnalyzer analyzer)
130public Action<SemanticModelAnalysisContext> Action { get; }
132public SemanticModelAnalyzerAction(Action<SemanticModelAnalysisContext> action, DiagnosticAnalyzer analyzer)
141public Action<SyntaxTreeAnalysisContext> Action { get; }
143public SyntaxTreeAnalyzerAction(Action<SyntaxTreeAnalysisContext> action, DiagnosticAnalyzer analyzer)
152public Action<AdditionalFileAnalysisContext> Action { get; }
154public AdditionalFileAnalyzerAction(Action<AdditionalFileAnalysisContext> action, DiagnosticAnalyzer analyzer)
163public Action<CodeBlockStartAnalysisContext<TLanguageKindEnum>> Action { get; }
165public CodeBlockStartAnalyzerAction(Action<CodeBlockStartAnalysisContext<TLanguageKindEnum>> action, DiagnosticAnalyzer analyzer)
174public Action<CodeBlockAnalysisContext> Action { get; }
176public CodeBlockAnalyzerAction(Action<CodeBlockAnalysisContext> action, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (57)
30public override void RegisterCompilationStartAction(Action<CompilationStartAnalysisContext> action)
36public override void RegisterCompilationAction(Action<CompilationAnalysisContext> action)
42public override void RegisterSyntaxTreeAction(Action<SyntaxTreeAnalysisContext> action)
48public override void RegisterAdditionalFileAction(Action<AdditionalFileAnalysisContext> action)
54public override void RegisterSemanticModelAction(Action<SemanticModelAnalysisContext> action)
60public override void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds)
66public override void RegisterSymbolStartAction(Action<SymbolStartAnalysisContext> action, SymbolKind symbolKind)
72public override void RegisterCodeBlockStartAction<TLanguageKindEnum>(Action<CodeBlockStartAnalysisContext<TLanguageKindEnum>> action)
78public override void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action)
84public override void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds)
90public override void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds)
96public override void RegisterOperationBlockStartAction(Action<OperationBlockStartAnalysisContext> action)
102public override void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action)
141public override void RegisterCompilationEndAction(Action<CompilationAnalysisContext> action)
147public override void RegisterSyntaxTreeAction(Action<SyntaxTreeAnalysisContext> action)
153public override void RegisterAdditionalFileAction(Action<AdditionalFileAnalysisContext> action)
159public override void RegisterSemanticModelAction(Action<SemanticModelAnalysisContext> action)
165public override void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds)
171public override void RegisterSymbolStartAction(Action<SymbolStartAnalysisContext> action, SymbolKind symbolKind)
177public override void RegisterCodeBlockStartAction<TLanguageKindEnum>(Action<CodeBlockStartAnalysisContext<TLanguageKindEnum>> action)
183public override void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action)
189public override void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds)
195public override void RegisterOperationBlockStartAction(Action<OperationBlockStartAnalysisContext> action)
201public override void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action)
207public override void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds)
241public override void RegisterSymbolEndAction(Action<SymbolAnalysisContext> action)
247public override void RegisterCodeBlockStartAction<TLanguageKindEnum>(Action<CodeBlockStartAnalysisContext<TLanguageKindEnum>> action)
253public override void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action)
259public override void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds)
265public override void RegisterOperationBlockStartAction(Action<OperationBlockStartAnalysisContext> action)
271public override void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action)
277public override void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds)
305public override void RegisterCodeBlockEndAction(Action<CodeBlockAnalysisContext> action)
311public override void RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds)
341public override void RegisterOperationBlockEndAction(Action<OperationBlockAnalysisContext> action)
347public override void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds)
373public void RegisterCompilationStartAction(Action<CompilationStartAnalysisContext> action)
451public void RegisterCodeBlockEndAction(Action<CodeBlockAnalysisContext> action)
456public void RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds)
473public void RegisterOperationBlockEndAction(Action<OperationBlockAnalysisContext> action)
478public void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds)
495public void RegisterCompilationAction(Action<CompilationAnalysisContext> action)
501public void RegisterCompilationEndAction(Action<CompilationAnalysisContext> action)
507public void RegisterSemanticModelAction(Action<SemanticModelAnalysisContext> action)
513public void RegisterSyntaxTreeAction(Action<SyntaxTreeAnalysisContext> action)
519public void RegisterAdditionalFileAction(Action<AdditionalFileAnalysisContext> action)
525public void RegisterSymbolAction(Action<SymbolAnalysisContext> action, ImmutableArray<SymbolKind> symbolKinds)
587public void RegisterSymbolStartAction(Action<SymbolStartAnalysisContext> action, SymbolKind symbolKind)
593public void RegisterSymbolEndAction(Action<SymbolAnalysisContext> action)
599public void RegisterCodeBlockStartAction<TLanguageKindEnum>(Action<CodeBlockStartAnalysisContext<TLanguageKindEnum>> action) where TLanguageKindEnum : struct
605public void RegisterCodeBlockEndAction(Action<CodeBlockAnalysisContext> action)
611public void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action)
617public void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<SyntaxNodeAnalysisContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct
623public void RegisterOperationBlockStartAction(Action<OperationBlockStartAnalysisContext> action)
629public void RegisterOperationBlockEndAction(Action<OperationBlockAnalysisContext> action)
635public void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action)
641public void RegisterOperationAction(Action<OperationAnalysisContext> action, ImmutableArray<OperationKind> operationKinds)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
Microsoft.CodeAnalysis.Analyzers (61)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (9)
639private static void AnalyzeTitleCore(string title, IArgumentOperation argumentOperation, Location fixLocation, Action<Diagnostic> reportDiagnostic)
668Action<Diagnostic> reportDiagnostic)
736private static void AnalyzeMessageCore(string message, IArgumentOperation argumentOperation, Location fixLocation, Action<Diagnostic> reportDiagnostic)
783private static void AnalyzeDescriptionCore(string description, IArgumentOperation argumentOperation, Location fixLocation, Action<Diagnostic> reportDiagnostic)
805Action<string, IArgumentOperation, Location, Action<Diagnostic>> analyzeStringValueCore,
842Action<string, IArgumentOperation, Location, Action<Diagnostic>> analyzeStringValueCore,
848Action<Diagnostic> reportDiagnostic,
860Action<string, IArgumentOperation, Location, Action<Diagnostic>> analyzeLocalizableStringValueCore,
865Action<Diagnostic> reportDiagnostic,
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (6)
222void VerifyAttributes(Action<Diagnostic> reportDiagnostic, ImmutableArray<AttributeData> attributes, CancellationToken cancellationToken)
252bool VerifyType(Action<Diagnostic> reportDiagnostic, ITypeSymbol? type, SyntaxNode syntaxNode)
310bool VerifyTypeArguments(Action<Diagnostic> reportDiagnostic, ITypeSymbol? type, SyntaxNode syntaxNode, out ITypeSymbol? originalDefinition)
345void VerifySymbol(Action<Diagnostic> reportDiagnostic, ISymbol symbol, SyntaxNode syntaxNode)
377void VerifyDocumentationSyntax(Action<Diagnostic> reportDiagnostic, SyntaxNode syntaxNode, SyntaxNodeAnalysisContext context)
391void VerifyBaseTypesSyntax(Action<Diagnostic> reportDiagnostic, IEnumerable<SyntaxNode> typeSyntaxNodes, SyntaxNodeAnalysisContext context)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
Microsoft.CodeAnalysis.AnalyzerUtilities (45)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
Microsoft.CodeAnalysis.BannedApiAnalyzers (51)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
SymbolIsBannedAnalyzerBase.cs (6)
222void VerifyAttributes(Action<Diagnostic> reportDiagnostic, ImmutableArray<AttributeData> attributes, CancellationToken cancellationToken)
252bool VerifyType(Action<Diagnostic> reportDiagnostic, ITypeSymbol? type, SyntaxNode syntaxNode)
310bool VerifyTypeArguments(Action<Diagnostic> reportDiagnostic, ITypeSymbol? type, SyntaxNode syntaxNode, out ITypeSymbol? originalDefinition)
345void VerifySymbol(Action<Diagnostic> reportDiagnostic, ISymbol symbol, SyntaxNode syntaxNode)
377void VerifyDocumentationSyntax(Action<Diagnostic> reportDiagnostic, SyntaxNode syntaxNode, SyntaxNodeAnalysisContext context)
391void VerifyBaseTypesSyntax(Action<Diagnostic> reportDiagnostic, IEnumerable<SyntaxNode> typeSyntaxNodes, SyntaxNodeAnalysisContext context)
Microsoft.CodeAnalysis.CodeStyle (47)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
Microsoft.CodeAnalysis.Collections.Package (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
Microsoft.CodeAnalysis.CSharp (27)
FlowAnalysis\NullableWalker.cs (12)
10106Action<NamedTypeSymbol>? analysisCompletion;
10136TypeWithState setAnalyzedNullability(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, Action<NamedTypeSymbol>? analysisCompletion, bool isTargetTyped)
10153void setAnalyzedNullabilityAsContinuation(BoundDelegateCreationExpression node, Action<NamedTypeSymbol>? analysisCompletion)
10167Action<NamedTypeSymbol>? visitMethodGroupArgument(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group)
10175Action<NamedTypeSymbol>? analyzeMethodGroupConversion(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group, bool isTargetTyped)
10196Action<NamedTypeSymbol>? analyzeMethodGroupConversionAsContinuation(BoundDelegateCreationExpression node, BoundMethodGroup group)
10204Action<NamedTypeSymbol>? visitLambdaArgument(NamedTypeSymbol delegateType, BoundLambda lambda, bool isTargetTyped)
10211Action<NamedTypeSymbol>? analyzeLambdaConversion(NamedTypeSymbol delegateType, BoundLambda lambda, bool isTargetTyped)
10228Action<NamedTypeSymbol> analyzeLambdaConversionAsContinuation(BoundLambda lambda)
10233Action<NamedTypeSymbol>? visitDelegateArgument(NamedTypeSymbol delegateType, BoundExpression arg, bool isTargetTyped)
10247Action<NamedTypeSymbol>? analyzeDelegateConversion(NamedTypeSymbol delegateType, BoundExpression arg, bool isTargetTyped)
10267Action<NamedTypeSymbol> analyzeDelegateConversionAsContinuation(BoundExpression arg)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (33)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (146)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (106)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (44)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (61)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (36)
CSharpTestBase.cs (24)
1309Action<ModuleSymbol>? sourceSymbolValidator = null,
1310Action<PEAssembly>? assemblyValidator = null,
1311Action<ModuleSymbol>? symbolValidator = null,
1345Action<ModuleSymbol>? sourceSymbolValidator = null,
1346Action<PEAssembly>? assemblyValidator = null,
1347Action<ModuleSymbol>? symbolValidator = null,
1382Action<ModuleSymbol>? sourceSymbolValidator = null,
1383Action<PEAssembly>? assemblyValidator = null,
1384Action<ModuleSymbol>? symbolValidator = null,
1423Action<ModuleSymbol>? sourceSymbolValidator = null,
1424Action<PEAssembly>? assemblyValidator = null,
1425Action<ModuleSymbol>? symbolValidator = null,
1459Action<ModuleSymbol>? sourceSymbolValidator = null,
1460Action<PEAssembly>? assemblyValidator = null,
1461Action<ModuleSymbol>? symbolValidator = null,
1495Action<ModuleSymbol>? sourceSymbolValidator = null,
1496Action<PEAssembly>? assemblyValidator = null,
1497Action<ModuleSymbol>? symbolValidator = null,
1531Action<ModuleSymbol>? sourceSymbolValidator = null,
1532Action<PEAssembly>? validator = null,
1533Action<ModuleSymbol>? symbolValidator = null,
1542Action<IModuleSymbol>? translate(Action<ModuleSymbol>? action)
2004public CompilationVerifier CompileWithCustomILSource(string cSharpSource, string ilSource, Action<CSharpCompilation>? compilationVerifier = null, bool importInternals = true, string? expectedOutput = null, TargetFramework targetFramework = TargetFramework.Standard)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.Debugging.Package (8)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
Microsoft.CodeAnalysis.EditorFeatures (11)
EditorConfigSettings\Updater\NamingStyles\NamingStyleSettingsUpdater.cs (2)
20internal sealed partial class NamingStyleSettingsUpdater(Workspace workspace, IGlobalOptionService globalOptions, string editorconfigPath) : SettingsUpdaterBase<(Action<(object, object?)> onSettingChange, NamingStyleSetting option), object>(workspace, editorconfigPath)
26IReadOnlyList<((Action<(object, object?)> onSettingChange, NamingStyleSetting option) option, object value)> settingsToUpdate,
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (17)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
Microsoft.CodeAnalysis.Extensions.Package (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
Microsoft.CodeAnalysis.ExternalAccess.Copilot (2)
Microsoft.CodeAnalysis.Features (24)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.InteractiveHost (18)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
Microsoft.CodeAnalysis.LanguageServer (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (44)
Microsoft.CodeAnalysis.PooledObjects.Package (8)
PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
Microsoft.CodeAnalysis.PublicApiAnalyzers (50)
DeclarePublicApiAnalyzer.Impl.cs (6)
171private void OnSymbolActionCore(ISymbol symbol, Action<Diagnostic> reportDiagnostic, INamedTypeSymbol? obsoleteAttribute, CancellationToken cancellationToken, Location? explicitLocation = null)
227private void OnSymbolActionCore(ISymbol symbol, Action<Diagnostic> reportDiagnostic, bool isImplicitlyDeclaredConstructor, INamedTypeSymbol? obsoleteAttribute, CancellationToken cancellationToken, Location? explicitLocation = null)
700private void ProcessTypeForwardedAttributes(Compilation compilation, Action<Diagnostic> reportDiagnostic, CancellationToken cancellationToken)
725private void VisitForwardedTypeRecursively(ISymbol symbol, Action<Diagnostic> reportDiagnostic, INamedTypeSymbol? obsoleteAttribute, Location typeForwardedAttributeLocation, CancellationToken cancellationToken)
750internal void ReportDeletedApiList(Action<Diagnostic> reportDiagnostic)
774internal void ReportMarkedAsRemovedButNotActuallyRemovedApiList(Action<Diagnostic> reportDiagnostic)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (2)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (44)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
Microsoft.CodeAnalysis.Test.Utilities (52)
Diagnostics\CommonDiagnosticAnalyzers.cs (12)
948private void ReportDiagnostic(Action<Diagnostic> addDiagnostic, ActionKind actionKindBeingRun)
1261private void ReportDiagnostic(Action<Diagnostic> addDiagnostic, Location location)
1443private static void AnalyzerFieldReferenceOperation(IFieldReferenceOperation operation, Action<Diagnostic> reportDiagnostic)
1658private void ReportSymbolDiagnostics(ISymbol symbol, Action<Diagnostic> addDiagnostic)
1663private void ReportTreeDiagnostics(SyntaxTree tree, Action<Diagnostic> addDiagnostic)
1668private void ReportDiagnosticsCore(Action<Diagnostic> addDiagnostic, Location location, params object[] messageArguments)
2462private void ReportDiagnostic(ISymbol symbol, Action<Diagnostic> reportDiagnostic)
2824private static void ReportSymbolDiagnostics(string actionName, ISymbol symbol, Compilation compilation, Action<Diagnostic> reportDiagnostic)
2835private static void ReportDiagnosticsInAllTrees(string actionName, SyntaxTree analyzedTree, Compilation compilation, Action<Diagnostic> reportDiagnostic)
2844private static void ReportDiagnostics(string actionName, SyntaxTree tree, ISymbol containingSymbol, Action<Diagnostic> reportDiagnostic)
2850private static void ReportDiagnosticsInTreeCore(string arg, SyntaxTree tree, Action<Diagnostic> reportDiagnostic)
2954private void HandleCallback(Location analysisLocation, Compilation compilation, Action<Diagnostic> reportDiagnostic, CancellationToken cancellationToken)
SourceGeneration\TestGenerators.cs (18)
82Action<GeneratorInitializationContext> onInit,
83Action<GeneratorExecutionContext> onExecute,
87public CallbackGenerator(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, string? source = "")
92public CallbackGenerator(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, Func<(string hintName, string? source)> computeSource)
132public CallbackGenerator2(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, string? source = "") : base(onInit, onExecute, source)
167private readonly Action<IncrementalGeneratorInitializationContext> _registerPipelineCallback;
169public PipelineCallbackGenerator(Action<IncrementalGeneratorInitializationContext> registerPipelineCallback)
179private readonly Action<IncrementalGeneratorInitializationContext> _registerPipelineCallback;
181public PipelineCallbackGenerator2(Action<IncrementalGeneratorInitializationContext> registerPipelineCallback)
191private readonly Action<IncrementalGeneratorInitializationContext> _onInit;
193public IncrementalAndSourceCallbackGenerator(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, Action<IncrementalGeneratorInitializationContext> onIncrementalInit)
209internal sealed class RazorSourceGenerator(Action<GeneratorExecutionContext> execute) : ISourceGenerator
211private readonly Action<GeneratorExecutionContext> _execute = execute;
Microsoft.CodeAnalysis.Threading.Package (30)
ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
Microsoft.CodeAnalysis.UnitTests (6)
Microsoft.CodeAnalysis.Workspaces (85)
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (4)
83ImmutableArray<ISymbol> symbols, Action<Reference> onReferenceFound, CancellationToken cancellationToken)
217Project project, ImmutableArray<(ISymbol symbol, SymbolGroup group)> allSymbols, Action<Reference> onReferenceFound, CancellationToken cancellationToken)
277Action<Reference> onReferenceFound,
320ISymbol symbolToSearchFor, SymbolGroup symbolGroup, FindReferencesDocumentState state, Action<Reference> onReferenceFound)
Log\KeyValueLogMessage.cs (6)
24private Action<Dictionary<string, object?>>? _propertySetter;
42private void Initialize(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel)
49public static new SimpleKeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter, LogLevel logLevel = LogLevel.Information)
60public static new SimpleKeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel = LogLevel.Information)
127public static KeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter, LogLevel logLevel = LogLevel.Information)
133public static KeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel = LogLevel.Information)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (14)
52private readonly Action<Project> _onProjectRemoved;
82Action<Project> onProjectRemoved,
220public void ApplyChangeToWorkspace(Action<Workspace> action)
231public async ValueTask ApplyChangeToWorkspaceAsync(Action<Workspace> action, CancellationToken cancellationToken = default)
242public async ValueTask ApplyChangeToWorkspaceMaybeAsync(bool useAsync, Action<Workspace> action)
277/// <inheritdoc cref="ApplyBatchChangeToWorkspaceAsync(Func{SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState}, Action{ProjectUpdateState}?)"/>
278public void ApplyBatchChangeToWorkspace(Func<SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState> mutation, Action<ProjectUpdateState>? onAfterUpdateAlways)
283/// <inheritdoc cref="ApplyBatchChangeToWorkspaceAsync(Func{SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState}, Action{ProjectUpdateState}?)"/>
284public Task ApplyBatchChangeToWorkspaceAsync(Func<SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState> mutation, Action<ProjectUpdateState>? onAfterUpdateAlways)
289/// <inheritdoc cref="ApplyBatchChangeToWorkspaceAsync(Func{SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState}, Action{ProjectUpdateState}?)"/>
290public async Task ApplyBatchChangeToWorkspaceMaybeAsync(bool useAsync, Func<SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState> mutation, Action<ProjectUpdateState>? onAfterUpdateAlways)
304/// <remarks>This is needed to synchronize with <see cref="ApplyChangeToWorkspace(Action{Workspace})" /> to avoid any races. This
306public async Task ApplyBatchChangeToWorkspaceMaybe_NoLockAsync(bool useAsync, Func<SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState> mutation, Action<ProjectUpdateState>? onAfterUpdateAlways)
353Func<SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState> mutation, Action<ProjectUpdateState>? onAfterUpdateAlways)
Workspace\Workspace_Events.cs (9)
36public WorkspaceEventRegistration RegisterWorkspaceChangedHandler(Action<WorkspaceChangeEventArgs> handler, WorkspaceEventOptions? options = null)
45public WorkspaceEventRegistration RegisterWorkspaceChangedImmediateHandler(Action<WorkspaceChangeEventArgs> handler, WorkspaceEventOptions? options = null)
52public WorkspaceEventRegistration RegisterWorkspaceFailedHandler(Action<WorkspaceDiagnosticEventArgs> handler, WorkspaceEventOptions? options = null)
58public WorkspaceEventRegistration RegisterDocumentOpenedHandler(Action<DocumentEventArgs> handler, WorkspaceEventOptions? options = null)
64public WorkspaceEventRegistration RegisterDocumentClosedHandler(Action<DocumentEventArgs> handler, WorkspaceEventOptions? options = null)
70public WorkspaceEventRegistration RegisterTextDocumentOpenedHandler(Action<TextDocumentEventArgs> handler, WorkspaceEventOptions? options = null)
76public WorkspaceEventRegistration RegisterTextDocumentClosedHandler(Action<TextDocumentEventArgs> handler, WorkspaceEventOptions? options = null)
83public WorkspaceEventRegistration RegisterDocumentActiveContextChangedHandler(Action<DocumentActiveContextChangedEventArgs> handler, WorkspaceEventOptions? options = null)
86private WorkspaceEventRegistration RegisterHandler<TEventArgs>(WorkspaceEventType eventType, Action<TEventArgs> handler, WorkspaceEventOptions? options = null)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (24)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.CommonLanguageServerProtocol.Framework.Example (2)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (2)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.Helix.JobSender (18)
Microsoft.DotNet.Helix.JobSender.Tests (1)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
Microsoft.DotNet.Internal.SymbolHelper (3)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.XliffTasks (1)
Microsoft.DotNet.XliffTasks.Tests (1)
Microsoft.DotNet.XUnitAssert.Tests (3)
Microsoft.Extensions.AI (22)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.AmbientMetadata.Application (1)
Microsoft.Extensions.AmbientMetadata.Application.Tests (1)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
Microsoft.Extensions.Caching.Memory (6)
Microsoft.Extensions.Caching.SqlServer (2)
Microsoft.Extensions.Caching.StackExchangeRedis (2)
Microsoft.Extensions.Compliance.Redaction (2)
Microsoft.Extensions.Compliance.Testing (2)
Microsoft.Extensions.Compliance.Testing.Tests (2)
Microsoft.Extensions.Configuration (3)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Binder (3)
Microsoft.Extensions.Configuration.CommandLine (1)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
Microsoft.Extensions.Configuration.FileExtensions (4)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.Extensions.Configuration.KeyPerFile (1)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
Microsoft.Extensions.Configuration.Xml (1)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (3)
Microsoft.Extensions.Diagnostics.Probes (3)
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (7)
Microsoft.Extensions.Diagnostics.Testing (5)
Microsoft.Extensions.FileProviders.Abstractions (1)
Microsoft.Extensions.FileProviders.Physical (3)
Microsoft.Extensions.Hosting (20)
HostingHostBuilderExtensions.cs (9)
73public static IHostBuilder UseDefaultServiceProvider(this IHostBuilder hostBuilder, Action<ServiceProviderOptions> configure)
109public static IHostBuilder ConfigureLogging(this IHostBuilder hostBuilder, Action<ILoggingBuilder> configureLogging)
132public static IHostBuilder ConfigureHostOptions(this IHostBuilder hostBuilder, Action<HostOptions> configureOptions)
146public static IHostBuilder ConfigureAppConfiguration(this IHostBuilder hostBuilder, Action<IConfigurationBuilder> configureDelegate)
157public static IHostBuilder ConfigureServices(this IHostBuilder hostBuilder, Action<IServiceCollection> configureDelegate)
170public static IHostBuilder ConfigureContainer<TContainerBuilder>(this IHostBuilder hostBuilder, Action<TContainerBuilder> configureDelegate)
370public static IHostBuilder UseConsoleLifetime(this IHostBuilder hostBuilder, Action<ConsoleLifetimeOptions> configureOptions)
405public static Task RunConsoleAsync(this IHostBuilder hostBuilder, Action<ConsoleLifetimeOptions> configureOptions, CancellationToken cancellationToken = default)
416public static IHostBuilder ConfigureMetrics(this IHostBuilder hostBuilder, Action<IMetricsBuilder> configureMetrics)
Microsoft.Extensions.Hosting.Abstractions (3)
Microsoft.Extensions.Hosting.Testing (5)
Microsoft.Extensions.Hosting.Testing.Tests (3)
Microsoft.Extensions.Hosting.WindowsServices (5)
Microsoft.Extensions.Http (27)
DependencyInjection\HttpClientBuilderExtensions.cs (7)
28public static IHttpClientBuilder ConfigureHttpClient(this IHttpClientBuilder builder, Action<HttpClient> configureClient)
259public static IHttpClientBuilder ConfigureHttpMessageHandlerBuilder(this IHttpClientBuilder builder, Action<HttpMessageHandlerBuilder> configureBuilder)
281/// <see cref="UseSocketsHttpHandler(IHttpClientBuilder, Action{ISocketsHttpHandlerBuilder})"/>, then the passed <paramref name="configureHandler"/>
318/// <see cref="UseSocketsHttpHandler(IHttpClientBuilder, Action{ISocketsHttpHandlerBuilder})"/>, then the configuration set on
324public static IHttpClientBuilder UseSocketsHttpHandler(this IHttpClientBuilder builder, Action<ISocketsHttpHandlerBuilder> configureBuilder)
682/// If used in conjunction with <see cref="HttpClientFactoryServiceCollectionExtensions.ConfigureHttpClientDefaults(IServiceCollection, Action{IHttpClientBuilder})"/>,
724/// If used in conjunction with <see cref="HttpClientFactoryServiceCollectionExtensions.ConfigureHttpClientDefaults(IServiceCollection, Action{IHttpClientBuilder})"/>,
Microsoft.Extensions.Http.Diagnostics (4)
Microsoft.Extensions.Http.Diagnostics.Tests (5)
Microsoft.Extensions.Http.Resilience (7)
Microsoft.Extensions.Http.Resilience.Tests (11)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.Localization (3)
Microsoft.Extensions.Logging (4)
Microsoft.Extensions.Logging.AzureAppServices (4)
Microsoft.Extensions.Logging.Console (7)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.ML (1)
Microsoft.Extensions.ObjectPool.DependencyInjection (4)
Microsoft.Extensions.Options (33)
OptionsServiceCollectionExtensions.cs (12)
77/// Note: These are run before all <see cref="PostConfigure{TOptions}(IServiceCollection, Action{TOptions})"/>.
83public static IServiceCollection Configure<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class
88/// Note: These are run before all <see cref="PostConfigure{TOptions}(IServiceCollection, Action{TOptions})"/>.
95public static IServiceCollection Configure<TOptions>(this IServiceCollection services, string? name, Action<TOptions> configureOptions)
113public static IServiceCollection ConfigureAll<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class
118/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>.
124public static IServiceCollection PostConfigure<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class
129/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>.
136public static IServiceCollection PostConfigure<TOptions>(this IServiceCollection services, string? name, Action<TOptions> configureOptions)
149/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>.
155public static IServiceCollection PostConfigureAll<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class
200type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Action<>) ?
Microsoft.Extensions.Options.ConfigurationExtensions (6)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Extensions.Primitives (10)
Microsoft.Extensions.Resilience.PerformanceTests (1)
Microsoft.Extensions.Resilience.Tests (1)
Microsoft.Extensions.ServiceDiscovery (6)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (8)
Microsoft.Extensions.ServiceDiscovery.Tests (6)
Microsoft.Extensions.Telemetry (13)
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Extensions.Telemetry.Tests (2)
Microsoft.Extensions.Validation (2)
Microsoft.Extensions.Validation.GeneratorTests (6)
Microsoft.Extensions.WebEncoders (2)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Logging.Unit.Tests (3)
Microsoft.Gen.MetadataExtractor (2)
Microsoft.Gen.Metrics (2)
Microsoft.Gen.MetricsReports (2)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Maui (38)
Microsoft.Maui.Controls (41)
Animation.cs (5)
32 public Animation(Action<double> callback, double start = 0.0f, double end = 1.0f, Easing easing = null, Action finished = null) : base(callback, start, end - start, easing, finished)
80 public Action<double> GetCallback()
82 Action<double> result = f =>
95 Action<double> callback = animation.GetCallback();
151 public Animation WithConcurrent(Action<double> callback, double start = 0.0f, double end = 1.0f, Easing easing = null, double beginAt = 0.0f, double finishAt = 1.0f)
AnimationExtensions.cs (7)
65 public static int Add(this IAnimationManager animationManager, Action<double> step)
155 public static void Animate(this IAnimatable self, string name, Action<double> callback, double start, double end, uint rate = 16, uint length = 250, Easing easing = null,
162 public static void Animate(this IAnimatable self, string name, Action<double> callback, uint rate = 16, uint length = 250, Easing easing = null, Action<double, bool> finished = null,
170 public static void Animate<T>(this IAnimatable self, string name, Func<double, T> transform, Action<T> callback,
255 static void AnimateInternal<T>(IAnimatable self, IAnimationManager animationManager, string name, Func<double, T> transform, Action<T> callback,
262 Action<double> step = f => callback(transform(f));
388 public Action<double> Callback;
Microsoft.Maui.Controls.Xaml (5)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (3)
Microsoft.Maui.Maps (2)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.Core (24)
Microsoft.ML.Core.Tests (2)
Microsoft.ML.Data (47)
DataLoadSave\Binary\UnsafeTypeOps.cs (13)
21public abstract void Apply(ReadOnlySpan<T> array, Action<IntPtr> func);
55public override unsafe void Apply(ReadOnlySpan<sbyte> array, Action<IntPtr> func)
67public override unsafe void Apply(ReadOnlySpan<Byte> array, Action<IntPtr> func)
79public override unsafe void Apply(ReadOnlySpan<short> array, Action<IntPtr> func)
91public override unsafe void Apply(ReadOnlySpan<UInt16> array, Action<IntPtr> func)
103public override unsafe void Apply(ReadOnlySpan<int> array, Action<IntPtr> func)
115public override unsafe void Apply(ReadOnlySpan<UInt32> array, Action<IntPtr> func)
127public override unsafe void Apply(ReadOnlySpan<long> array, Action<IntPtr> func)
139public override unsafe void Apply(ReadOnlySpan<UInt64> array, Action<IntPtr> func)
151public override unsafe void Apply(ReadOnlySpan<Single> array, Action<IntPtr> func)
163public override unsafe void Apply(ReadOnlySpan<Double> array, Action<IntPtr> func)
175public override unsafe void Apply(ReadOnlySpan<TimeSpan> array, Action<IntPtr> func)
192public override unsafe void Apply(ReadOnlySpan<DataViewRowId> array, Action<IntPtr> func)
DataView\TypedCursor.cs (11)
330private readonly Action<TRow>[] _setters;
345_setters = new Action<TRow>[n];
356private Action<TRow> GenerateSetter(DataViewRow input, int index, InternalSchemaDefinition.Column column, Delegate poke, Delegate peek)
361Func<DataViewRow, int, Delegate, Delegate, Action<TRow>> del;
418return (Action<TRow>)meth.Invoke(this, new object[] { input, index, poke, peek });
424private Action<TRow> CreateConvertingVBufferSetter<TSrc, TDst>(DataViewRow input, int col, Delegate poke, Delegate peek, Func<TSrc, TDst> convert)
446private Action<TRow> CreateDirectVBufferSetter<TDst>(DataViewRow input, int col, Delegate poke, Delegate peek)
484private static Action<TRow> CreateConvertingActionSetter<TSrc, TDst>(DataViewRow input, int col, Delegate poke, Func<TSrc, TDst> convert)
498private static Action<TRow> CreateDirectSetter<TDst>(DataViewRow input, int col, Delegate poke, Delegate peek)
513private Action<TRow> CreateVBufferToVBufferSetter<TDst>(DataViewRow input, int col, Delegate poke, Delegate peek)
531foreach (var setter in _setters)
Training\TrainerUtils.cs (14)
496private readonly Action<CursOpt> _signal;
506protected TrainingCursorBase(DataViewRowCursor input, Action<CursOpt> signal)
655Action<CursOpt> signal;
680protected abstract TCurs CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal);
689private readonly Action<CursOpt> _signal;
694public AndAccumulator(Action<CursOpt> signal, int lim)
741protected StandardScalarCursor(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal = null)
806protected override StandardScalarCursor CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal)
831protected FeatureFloatVectorCursor(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal = null)
872protected override FeatureFloatVectorCursor CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal)
898protected FloatLabelCursor(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal = null)
938protected override FloatLabelCursor CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal)
967protected MulticlassLabelCursor(int classCount, DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal = null)
1016protected override MulticlassLabelCursor CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal)
Microsoft.ML.DataView (1)
Microsoft.ML.FastTree (5)
Microsoft.ML.GenAI.Core (4)
Microsoft.ML.GenAI.LLaMA (2)
Microsoft.ML.GenAI.Mistral (2)
Microsoft.ML.GenAI.Phi (2)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.Samples (1)
Microsoft.ML.StandardTrainers (2)
Microsoft.ML.TestFramework (4)
Microsoft.ML.Tests (8)
Microsoft.ML.TimeSeries (29)
SequentialTransformerBase.cs (11)
494string forecastingConfidenceIntervalMaxOutputColumnName, Action<TState> initFunction, bool hasBuffer, DataViewType outputColTypeOverride)
614var pingers = _mapper.CreatePinger(input, active, out Action pingerDisposer);
624private readonly Action<PingerArgument> _pinger;
635public RowImpl(ColumnBindings bindings, DataViewRow input, Delegate[] getters, Action<PingerArgument> pinger, Action disposer)
674public override Action<PingerArgument> GetPinger() =>
675_pinger as Action<PingerArgument> ?? throw Contracts.Except("Invalid TValue in GetPinger: '{0}'", typeof(PingerArgument));
939var pingers = _mapper.CreatePinger(input, pred, out Action pingerDisp);
948private readonly Action<PingerArgument> _pinger;
960DataViewSchema schema, Delegate[] getters, Action<PingerArgument> pinger, Action disposer)
999public override Action<PingerArgument> GetPinger() =>
1000_pinger as Action<PingerArgument> ?? throw Contracts.Except("Invalid TValue in GetPinger: '{0}'", typeof(PingerArgument));
Microsoft.ML.Transforms (20)
Microsoft.ML.Vision (3)
Microsoft.Net.Http.Headers (4)
Microsoft.VisualBasic.Tests (1)
Microsoft.VisualStudio.LanguageServices (9)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
Microsoft.VisualStudio.LanguageServices.Implementation (3)
Microsoft.VisualStudio.LanguageServices.Xaml (2)
mscorlib (1)
Mvc.RoutingWebSite (2)
netstandard (1)
PresentationCore (1)
PresentationFramework (16)
ReachFramework (4)
Roslyn.Diagnostics.Analyzers (46)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
Roslyn.Diagnostics.CSharp.Analyzers (6)
Roslyn.Test.PdbUtilities (6)
EditAndContinue\EditAndContinueTest.cs (4)
38internal TSelf AddBaseline(string source, Action<GenerationVerifier>? validator = null, Func<MethodDefinitionHandle, EditAndContinueMethodDebugInformation>? debugInformationProvider = null)
73internal TSelf AddGeneration(string source, SemanticEditDescription[] edits, Action<GenerationVerifier> validator, EmitDifferenceOptions? options = null)
76internal TSelf AddGeneration(string source, Func<SourceWithMarkedNodes, SemanticEditDescription[]> edits, Action<GenerationVerifier> validator, EmitDifferenceOptions? options = null)
82private TSelf AddGeneration(string source, Func<SourceWithMarkedNodes, SemanticEditDescription[]> edits, Action<GenerationVerifier> validator, DiagnosticDescription[] expectedErrors, EmitDifferenceOptions? options = null)
Roslyn.VisualStudio.Next.UnitTests (5)
RoutingSandbox (5)
RunTests (4)
ScenarioTests.Common.Tests (2)
Security.TransportSecurity.IntegrationTests (1)
Sockets.BindTests (6)
Sockets.FunctionalTests (5)
Swaggatherer (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
System.Collections.Immutable (5)
System.ComponentModel.Composition (7)
System.ComponentModel.Composition.Registration (15)
System.Composition.Convention (21)
System.Composition.TypedParts (2)
System.Console (1)
System.Diagnostics.DiagnosticSource (13)
System.Diagnostics.Process (2)
System.IO.Compression (3)
System.IO.Pipelines (21)
System.Linq.Expressions (5)
System.Linq.Parallel (7)
System.Net.Http (11)
System.Net.Quic (9)
System.Net.Sockets (2)
System.Private.CoreLib (125)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (16)
493Action<IAsyncResult>? endAction,
631Action<IAsyncResult>? endAction,
752Func<IAsyncResult, TResult>? endFunction, Action<IAsyncResult>? endAction,
869Func<IAsyncResult, TResult>? endFunction, Action<IAsyncResult>? endAction,
994Func<IAsyncResult, TResult>? endFunction, Action<IAsyncResult>? endAction,
1127Func<IAsyncResult, TResult>? endFunction, Action<IAsyncResult>? endAction,
1602Func<Task<TAntecedentResult>[], TResult>? continuationFunction, Action<Task<TAntecedentResult>[]>? continuationAction,
1639((Action<Task<TAntecedentResult>[]>)continuationAction!)(starter.Result);
1649Func<Task[], TResult>? continuationFunction, Action<Task[]>? continuationAction,
1691Debug.Assert(state is Action<Task[]>);
1692((Action<Task[]>)state)(completedTasks.Result); return default!;
1971Func<Task, TResult>? continuationFunction, Action<Task>? continuationAction,
2010Debug.Assert(state is Action<Task>);
2011((Action<Task>)state)(completedTask.Result);
2022Func<Task<TAntecedentResult>, TResult>? continuationFunction, Action<Task<TAntecedentResult>>? continuationAction,
2056((Action<Task<TAntecedentResult>>)continuationAction!)(starter.Result);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (8)
20private Action<object?>? _continuation;
120public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags)
218Action<object?>? continuation =
269internal static readonly Action<object?> s_sentinel = CompletionSentinel;
277internal static void ScheduleCapturedContext(object context, Action<object?> continuation, object? state)
307static void ScheduleSynchronizationContext(SynchronizationContext sc, Action<object?> continuation, object? state) =>
310static void ScheduleTaskScheduler(TaskScheduler scheduler, Action<object?> continuation, object? state) =>
314internal static void InvokeContinuationWithContext(object capturedContext, Action<object?> continuation, object? continuationState, bool runContinuationsAsynchronously)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (12)
425public Task(Action<object?> action, object? state)
442public Task(Action<object?> action, object? state, CancellationToken cancellationToken)
463public Task(Action<object?> action, object? state, TaskCreationOptions creationOptions)
488public Task(Action<object?> action, object? state, CancellationToken cancellationToken, TaskCreationOptions creationOptions)
2400if (m_action is Action<object?> actionWithState)
3641public Task ContinueWith(Action<Task> continuationAction)
3663public Task ContinueWith(Action<Task> continuationAction, CancellationToken cancellationToken)
3690public Task ContinueWith(Action<Task> continuationAction, TaskScheduler scheduler)
3723public Task ContinueWith(Action<Task> continuationAction, TaskContinuationOptions continuationOptions)
3763public Task ContinueWith(Action<Task> continuationAction, CancellationToken cancellationToken,
3770private Task ContinueWith(Action<Task> continuationAction, TaskScheduler scheduler,
6953void IValueTaskSource.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) =>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (31)
393public Task StartNew(Action<object?> action, object? state)
422public Task StartNew(Action<object?> action, object? state, CancellationToken cancellationToken)
452public Task StartNew(Action<object?> action, object? state, TaskCreationOptions creationOptions)
493public Task StartNew(Action<object?> action, object? state, CancellationToken cancellationToken,
794Action<IAsyncResult> endMethod)
820Action<IAsyncResult> endMethod,
851Action<IAsyncResult> endMethod,
877Action<IAsyncResult> endMethod,
907Action<IAsyncResult> endMethod, object? state, TaskCreationOptions creationOptions)
936Action<IAsyncResult> endMethod,
972Action<IAsyncResult> endMethod,
1006Action<IAsyncResult> endMethod,
1045Action<IAsyncResult> endMethod,
1083Action<IAsyncResult> endMethod,
1126Action<IAsyncResult> endMethod,
1698public Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction)
1726public Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction, CancellationToken cancellationToken)
1760public Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction, TaskContinuationOptions continuationOptions)
1804public Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction, CancellationToken cancellationToken,
1829public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction)
1859public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction,
1895public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction,
1941public Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction,
2414public Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction)
2442public Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction, CancellationToken cancellationToken)
2476public Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction, TaskContinuationOptions continuationOptions)
2520public Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction, CancellationToken cancellationToken,
2845public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction)
2874public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction,
2910public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction,
2956public Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction,
System.Private.Windows.Core (11)
System.Private.Xml (10)
System.Reflection.Metadata (13)
System.Resources.Extensions (10)
System.Runtime (1)
System.Runtime.InteropServices.JavaScript (2)
System.ServiceModel.Federation (3)
System.ServiceModel.Http (12)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (4)
20private static Action<object> s_onWriteComplete = new Action<object>(OnWriteComplete);
431protected abstract AsyncCompletionResult StartWritingBufferedMessage(Message message, ArraySegment<byte> messageData, bool allowOutputBatching, TimeSpan timeout, Action<object> callback, object state);
433protected abstract AsyncCompletionResult BeginCloseOutput(TimeSpan timeout, Action<object> callback, object state);
443protected abstract AsyncCompletionResult StartWritingStreamedMessage(Message message, TimeSpan timeout, Action<object> callback, object state);
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (7)
19private Action<object> _waitCallback;
165protected override AsyncCompletionResult StartWritingBufferedMessage(Message message, ArraySegment<byte> messageData, bool allowOutputBatching, TimeSpan timeout, Action<object> callback, object state)
205protected override AsyncCompletionResult StartWritingStreamedMessage(Message message, TimeSpan timeout, Action<object> callback, object state)
227protected override AsyncCompletionResult BeginCloseOutput(TimeSpan timeout, Action<object> callback, object state)
380private async void HandleCloseOutputAsyncCompletion(Task task, TimeSpan timeout, Action<object> callback, object state)
396private async void HandleSendAsyncCompletion(Task task, TimeSpan timeout, Action<object> callback, object state)
1165public async void WriteEndOfMessageAsync(Action<object> callback, object state)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.NetTcp (5)
System.ServiceModel.Primitives (63)
System.ServiceModel.UnixDomainSocket (5)
System.Text.Json (17)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (1)
System.Text.RegularExpressions.Generator (1)
System.Threading (3)
System.Threading.Channels (16)
System.Threading.Tasks.Dataflow (51)
Base\DataflowBlock.cs (25)
492private void RunCompletionAction(Action<object?> completionAction, object completionActionState, bool runAsync)
531private static readonly Action<object?> _cancellationCallback = CancellationHandler;
1030private static readonly Action<object?> _cancelCts = static state => ((CancellationTokenSource)state!).Cancel();
1115internal static readonly Action<object?> CachedLinkingCancellationCallback = state =>
1662ISourceBlock<T1> source1, Action<T1> action1,
1663ISourceBlock<T2> source2, Action<T2> action2)
1700ISourceBlock<T1> source1, Action<T1> action1,
1701ISourceBlock<T2> source2, Action<T2> action2,
1746ISourceBlock<T1> source1, Action<T1> action1,
1747ISourceBlock<T2> source2, Action<T2> action2,
1748ISourceBlock<T3> source3, Action<T3> action3)
1789ISourceBlock<T1> source1, Action<T1> action1,
1790ISourceBlock<T2> source2, Action<T2> action2,
1791ISourceBlock<T3> source3, Action<T3> action3,
1820ISourceBlock<T1> source1, Action<T1> action1,
1821ISourceBlock<T2> source2, Action<T2> action2,
1822ISourceBlock<T3>? source3, Action<T3>? action3,
1868ISourceBlock<T> source, Action<T> action, int branchId, TaskScheduler scheduler,
1888Tuple.Create<Action<T>, T, int>(action, result, branchId),
1905ISourceBlock<T1> source1, Action<T1> action1,
1906ISourceBlock<T2> source2, Action<T2> action2,
1907ISourceBlock<T3>? source3, Action<T3>? action3,
2004int branchId, ISourceBlock<T> source, Action<T> action)
2071Tuple<Action<T>, T, int> actionResultBranch = (Tuple<Action<T>, T, int>)state!;
System.Threading.Tasks.Parallel (30)
System\Threading\Tasks\Parallel.cs (30)
388public static ParallelLoopResult For(int fromInclusive, int toExclusive, Action<int> body)
414public static ParallelLoopResult For(long fromInclusive, long toExclusive, Action<long> body)
450public static ParallelLoopResult For(int fromInclusive, int toExclusive, ParallelOptions parallelOptions, Action<int> body)
487public static ParallelLoopResult For(long fromInclusive, long toExclusive, ParallelOptions parallelOptions, Action<long> body)
694Action<TLocal> localFinally)
747Action<TLocal> localFinally)
811Action<TLocal> localFinally)
876Action<TLocal> localFinally)
917Action<TInt>? body,
920Func<TLocal>? localInit, Action<TLocal>? localFinally)
1182public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, Action<TSource> body)
1221public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Action<TSource> body)
1417Func<TSource, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)
1482Func<TSource, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)
1536Func<TSource, ParallelLoopState, long, TLocal, TLocal> body, Action<TLocal> localFinally)
1600Func<TSource, ParallelLoopState, long, TLocal, TLocal> body, Action<TLocal> localFinally)
1638Action<TSource>? body,
1643Func<TLocal>? localInit, Action<TLocal>? localFinally)
1696Action<TSource>? body,
1701Func<TLocal>? localInit, Action<TLocal>? localFinally)
1755Action<TSource>? body,
1760Func<TLocal>? localInit, Action<TLocal>? localFinally)
1837Action<TSource> body)
2024Action<TLocal> localFinally)
2102Action<TLocal> localFinally)
2172Action<TSource> body)
2398Action<TLocal> localFinally)
2489Action<TLocal> localFinally)
2509Action<TSource>? simpleBody,
2515Action<TLocal>? localFinally)
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (9)
541internal static bool NavigateToFirstItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck)
552internal static bool NavigateToLastItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck)
563internal static FrameworkElement FindContainer(ItemsControl itemsControl, int startIndex, int direction, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck)
589internal static bool NavigateToItem(ItemsControl parent, int itemIndex, Action<int> bringIntoViewCallback)
603internal static bool NavigateToNextMenuItemOrGallery(ItemsControl parent, int startIndex, Action<int> bringIntoViewCallback)
632internal static bool NavigateToPreviousMenuItemOrGallery(ItemsControl parent, int startIndex, Action<int> bringIntoViewCallback)
1014Action<bool> setter,
1149Action<bool> setter,
1245object sender, KeyEventArgs e, Func<bool> gettor, Action<bool> settor, UIElement targetFocusOnFalse, UIElement targetFocusContainerOnTrue)
System.Windows.Forms (4)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.Primitives.Tests (1)
System.Windows.Forms.Tests (10)
System.Windows.Forms.UI.IntegrationTests (4)
System.Xaml (5)
Templates.Blazor.Tests (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
Templates.Blazor.WebAssembly.Auth.Tests (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
Templates.Blazor.WebAssembly.Tests (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
Templates.Mvc.Tests (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
Templates.Tests (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
80public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration,
95public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration)
98public CommandOption Option(string template, string description, CommandOptionType optionType, Action<CommandOption> configuration, bool inherited)
115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false)
Test.Utilities (45)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
Text.Analyzers (45)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
69/// Gets an <see cref="Action{T}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
393protected override Action<T1> Bind()
src\Dependencies\Threading\ProducerConsumer.cs (15)
48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
89Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
103Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
126Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
140Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
159Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
173Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
193Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
206Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
225Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
283/// Equivalent to <see cref="RunParallelAsync{TSource, TArgs}(IEnumerable{TSource}, Func{TSource, Action{TItem}, TArgs, CancellationToken, Task}, TArgs, CancellationToken)"/>,
290Func<TSource, Action<TItem>, TArgs, CancellationToken, Task> produceItems,
321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
UnitTests.Common (20)
Wasm.Performance.ConsoleHost (4)
WindowsBase.Tests (6)
xunit.assert (60)
EventAsserts.cs (55)
43 Action<Action> attach,
44 Action<Action> detach,
61 Action<Action<T>> attach,
62 Action<Action<T>> detach,
86 Action<EventHandler<T>> attach,
87 Action<EventHandler<T>> detach,
141 Action<EventHandler> attach,
142 Action<EventHandler> detach,
163 Action<Action<T>> attach,
164 Action<Action<T>> detach,
185 Action<EventHandler<T>> attach,
186 Action<EventHandler<T>> detach,
206 Action<EventHandler> attach,
207 Action<EventHandler> detach,
228 Action<Action<T>> attach,
229 Action<Action<T>> detach,
250 Action<EventHandler<T>> attach,
251 Action<EventHandler<T>> detach,
271 Action<Action> attach,
272 Action<Action> detach,
289 Action<Action<T>> attach,
290 Action<Action<T>> detach,
314 Action<EventHandler<T>> attach,
315 Action<EventHandler<T>> detach,
332 Action<Action> attach,
333 Action<Action> detach,
354 Action<EventHandler> attach,
355 Action<EventHandler> detach,
379 Action<Action<T>> attach,
380 Action<Action<T>> detach,
384 Action<T> handler = (T args) => raisedEvent = new RaisedEvent<T>(args);
398 Action<EventHandler<T>> attach,
399 Action<EventHandler<T>> detach,
438 Action<Action> attach,
439 Action<Action> detach,
460 Action<EventHandler> attach,
461 Action<EventHandler> detach,
485 Action<Action<T>> attach,
486 Action<Action<T>> detach,
494 Action<T> handler = (T args) => raisedEvent = new RaisedEvent<T>(args);
507 Action<EventHandler<T>> attach,
508 Action<EventHandler<T>> detach,
534 /// The sender of the event. When the event is recorded via <see cref="Action{T}"/> rather
xunit.console (2)