5524 references to Action
aspire (13)
DotNet\DotNetCliRunner.cs (11)
42public Action<string>? StandardOutputCallback { get; set; } 43public Action<string>? StandardErrorCallback { get; set; } 160var existingStandardOutputCallback = options.StandardOutputCallback; // Preserve the existing callback if it exists. 167var existingStandardErrorCallback = options.StandardErrorCallback; // Preserve the existing callback if it exists. 290var existingStandardOutputCallback = options.StandardOutputCallback; // Preserve the existing callback if it exists. 297var existingStandardErrorCallback = options.StandardErrorCallback; // Preserve the existing callback if it exists. 556async Task ForwardStreamToLoggerAsync(StreamReader reader, string identifier, Process process, Action<string>? lineCallback, CancellationToken cancellationToken) 755var existingStandardOutputCallback = options.StandardOutputCallback; // Preserve the existing callback if it exists. 762var existingStandardErrorCallback = options.StandardErrorCallback; // Preserve the existing callback if it exists. 818var existingStandardOutputCallback = options.StandardOutputCallback; // Preserve the existing callback if it exists. 825var existingStandardErrorCallback = options.StandardErrorCallback; // Preserve the existing callback if it exists.
src\Shared\CircularBuffer.cs (1)
23public event Action<T>? ItemRemovedForCapacity;
Templating\CallbackTemplate.cs (1)
9internal class CallbackTemplate(string name, string description, Func<string, string> pathDeriverCallback, Action<TemplateCommand> applyOptionsCallback, Func<CallbackTemplate, ParseResult, CancellationToken, Task<TemplateResult>> applyTemplateCallback) : ITemplate
Aspire.Azure.AI.Inference (7)
AspireAzureAIInferenceExtensions.cs (4)
48Action<ChatCompletionsClientSettings>? configureSettings = null, 49Action<IAzureClientBuilder<ChatCompletionsClient, AzureAIInferenceClientOptions>>? configureClientBuilder = null) 85Action<ChatCompletionsClientSettings>? configureSettings = null, 86Action<IAzureClientBuilder<ChatCompletionsClient, AzureAIInferenceClientOptions>>? configureClientBuilder = null)
src\Components\Common\AzureComponent.cs (2)
47Action<TSettings>? configureSettings, 48Action<IAzureClientBuilder<TClient, TClientOptions>>? configureClientBuilder,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.AI.Inference.Tests (1)
ConformanceTests.cs (1)
48protected override void RegisterComponent(HostApplicationBuilder builder, Action<ChatCompletionsClientSettings>? configure = null, string? key = null)
Aspire.Azure.AI.OpenAI (7)
AspireAzureOpenAIExtensions.cs (4)
41Action<AzureOpenAISettings>? configureSettings = null, 42Action<IAzureClientBuilder<AzureOpenAIClient, AzureOpenAIClientOptions>>? configureClientBuilder = null) 69Action<AzureOpenAISettings>? configureSettings = null, 70Action<IAzureClientBuilder<AzureOpenAIClient, AzureOpenAIClientOptions>>? configureClientBuilder = null)
src\Components\Common\AzureComponent.cs (2)
47Action<TSettings>? configureSettings, 48Action<IAzureClientBuilder<TClient, TClientOptions>>? configureClientBuilder,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.AI.OpenAI.Tests (1)
ConformanceTests.cs (1)
64protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureOpenAISettings>? configure = null, string? key = null)
Aspire.Azure.Data.Tables (11)
AspireTablesExtensions.cs (8)
37Action<AzureDataTablesSettings>? configureSettings = null, 38Action<IAzureClientBuilder<TableServiceClient, TableClientOptions>>? configureClientBuilder = null) 51Action<AzureDataTablesSettings>? configureSettings = null, 52Action<IAzureClientBuilder<TableServiceClient, TableClientOptions>>? configureClientBuilder = null) 73Action<AzureDataTablesSettings>? configureSettings = null, 74Action<IAzureClientBuilder<TableServiceClient, TableClientOptions>>? configureClientBuilder = null) 87Action<AzureDataTablesSettings>? configureSettings = null, 88Action<IAzureClientBuilder<TableServiceClient, TableClientOptions>>? configureClientBuilder = null)
src\Components\Common\AzureComponent.cs (2)
47Action<TSettings>? configureSettings, 48Action<IAzureClientBuilder<TClient, TClientOptions>>? configureClientBuilder,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Data.Tables.Tests (1)
ConformanceTests.cs (1)
76protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureDataTablesSettings>? configure = null, string? key = null)
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)
src\Components\Common\AzureComponent.cs (2)
47Action<TSettings>? configureSettings, 48Action<IAzureClientBuilder<TClient, TClientOptions>>? configureClientBuilder,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Messaging.EventHubs.Tests (12)
AspireEventHubsExtensionsTests.cs (2)
33private static readonly Action<HostApplicationBuilder, string, Action<AzureMessagingEventHubsSettings>?>[] s_keyedClientAdders = 42private static readonly Action<HostApplicationBuilder, string, Action<AzureMessagingEventHubsSettings>?>[] s_clientAdders =
ConformanceTests.EventHubConsumerClient.cs (2)
21protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureMessagingEventHubsConsumerSettings>? configure = null, string? key = null) 32void ConfigureCredentials(Action<AzureMessagingEventHubsConsumerSettings>? configure, AzureMessagingEventHubsConsumerSettings settings)
ConformanceTests.EventHubProducerClient.cs (2)
24protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureMessagingEventHubsProducerSettings>? configure = null, string? key = null) 35void ConfigureCredentials(Action<AzureMessagingEventHubsProducerSettings>? configure, AzureMessagingEventHubsProducerSettings settings)
ConformanceTests.EventHubsBufferedProducerClient.cs (2)
22protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureMessagingEventHubsBufferedProducerSettings>? configure = null, string? key = null) 33void ConfigureCredentials(Action<AzureMessagingEventHubsBufferedProducerSettings>? configure, AzureMessagingEventHubsBufferedProducerSettings settings)
ConformanceTests.EventProcessorClient.cs (2)
23protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureMessagingEventHubsProcessorSettings>? configure = null, string? key = null) 36void ConfigureCredentials(Action<AzureMessagingEventHubsProcessorSettings>? configure, AzureMessagingEventHubsProcessorSettings settings)
ConformanceTests.PartitionReceiver.cs (2)
29protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureMessagingEventHubsPartitionReceiverSettings>? configure = null, string? key = null) 42void ConfigureCredentials(Action<AzureMessagingEventHubsPartitionReceiverSettings>? configure, AzureMessagingEventHubsPartitionReceiverSettings settings)
Aspire.Azure.Messaging.ServiceBus (7)
AspireServiceBusExtensions.cs (4)
37Action<AzureMessagingServiceBusSettings>? configureSettings = null, 38Action<IAzureClientBuilder<ServiceBusClient, ServiceBusClientOptions>>? configureClientBuilder = null) 58Action<AzureMessagingServiceBusSettings>? configureSettings = null, 59Action<IAzureClientBuilder<ServiceBusClient, ServiceBusClientOptions>>? configureClientBuilder = null)
src\Components\Common\AzureComponent.cs (2)
47Action<TSettings>? configureSettings, 48Action<IAzureClientBuilder<TClient, TClientOptions>>? configureClientBuilder,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Messaging.ServiceBus.Tests (1)
ConformanceTests.cs (1)
69protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureMessagingServiceBusSettings>? configure = null, string? key = null)
Aspire.Azure.Messaging.WebPubSub (10)
AspireWebPubSubExtensions.cs (7)
36Action<AzureMessagingWebPubSubSettings>? configureSettings = null, 37Action<IAzureClientBuilder<WebPubSubServiceClient, WebPubSubServiceClientOptions>>? configureClientBuilder = null) 59Action<AzureMessagingWebPubSubSettings>? configureSettings = null, 60Action<IAzureClientBuilder<WebPubSubServiceClient, WebPubSubServiceClientOptions>>? configureClientBuilder = null) 66var configureWithServiceKeyAsDefaultHubName = (AzureMessagingWebPubSubSettings settings) => 91Action<AzureMessagingWebPubSubSettings>? configureSettings = null, 92Action<IAzureClientBuilder<WebPubSubServiceClient, WebPubSubServiceClientOptions>>? configureClientBuilder = null)
src\Components\Common\AzureComponent.cs (2)
47Action<TSettings>? configureSettings, 48Action<IAzureClientBuilder<TClient, TClientOptions>>? configureClientBuilder,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Messaging.WebPubSub.Tests (1)
ConformanceTests.cs (1)
70protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureMessagingWebPubSubSettings>? configure = null, string? key = null)
Aspire.Azure.Npgsql (5)
AspireAzureNpgsqlExtensions.cs (5)
29public static void AddAzureNpgsqlDataSource(this IHostApplicationBuilder builder, string connectionName, Action<AzureNpgsqlSettings>? configureSettings = null, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder = null) 58public static void AddKeyedAzureNpgsqlDataSource(this IHostApplicationBuilder builder, string name, Action<AzureNpgsqlSettings>? configureSettings = null, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder = null) 75private static AzureNpgsqlSettings ConfigureSettings(Action<AzureNpgsqlSettings>? userConfigureSettings, NpgsqlSettings settings)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (5)
AspireAzureEFPostgreSqlExtensions.cs (4)
49Action<AzureNpgsqlEntityFrameworkCorePostgreSQLSettings>? configureSettings = null, 50Action<DbContextOptionsBuilder>? configureDbContextOptions = null) where TContext : DbContext 74Action<AzureNpgsqlEntityFrameworkCorePostgreSQLSettings>? configureSettings = null) 96private static AzureNpgsqlEntityFrameworkCorePostgreSQLSettings ConfigureSettings(Action<AzureNpgsqlEntityFrameworkCorePostgreSQLSettings>? userConfigureSettings, NpgsqlEntityFrameworkCorePostgreSQLSettings settings)
src\Components\Common\EntityFrameworkUtils.cs (1)
63public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "")
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
ConformanceTests.cs (2)
93protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureNpgsqlEntityFrameworkCorePostgreSQLSettings>? configure = null, string? key = null) 140private static void RunWithConnectionString(string connectionString, Action<ConformanceTests> test)
EnrichNpgsqlTests.cs (1)
26protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureNpgsqlEntityFrameworkCorePostgreSQLSettings>? configure = null, string? key = null)
Aspire.Azure.Npgsql.Tests (2)
ConformanceTests.cs (2)
70protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureNpgsqlSettings>? configure = null, string? key = null) 142private static void RunWithConnectionString(string connectionString, Action<ConformanceTests> test)
Aspire.Azure.Search.Documents (7)
AspireAzureSearchExtensions.cs (4)
37Action<AzureSearchSettings>? configureSettings = null, 38Action<IAzureClientBuilder<SearchIndexClient, SearchClientOptions>>? configureClientBuilder = null) 57Action<AzureSearchSettings>? configureSettings = null, 58Action<IAzureClientBuilder<SearchIndexClient, SearchClientOptions>>? configureClientBuilder = null)
src\Components\Common\AzureComponent.cs (2)
47Action<TSettings>? configureSettings, 48Action<IAzureClientBuilder<TClient, TClientOptions>>? configureClientBuilder,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Search.Documents.Tests (1)
ConformanceTests.cs (1)
63protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureSearchSettings>? configure = null, string? key = null)
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)
src\Components\Common\AzureComponent.cs (2)
47Action<TSettings>? configureSettings, 48Action<IAzureClientBuilder<TClient, TClientOptions>>? configureClientBuilder,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Security.KeyVault.Tests (3)
CertificateClientConformanceTests.cs (1)
69protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureSecurityKeyVaultSettings>? configure = null, string? key = null)
KeyClientConformanceTests.cs (1)
71protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureSecurityKeyVaultSettings>? configure = null, string? key = null)
SecretClientConformanceTests.cs (1)
70protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureSecurityKeyVaultSettings>? configure = null, string? key = null)
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)
src\Components\Common\AzureComponent.cs (2)
47Action<TSettings>? configureSettings, 48Action<IAzureClientBuilder<TClient, TClientOptions>>? configureClientBuilder,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Storage.Blobs.Tests (1)
ConformanceTests.cs (1)
80protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureStorageBlobsSettings>? configure = null, string? key = null)
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)
src\Components\Common\AzureComponent.cs (2)
47Action<TSettings>? configureSettings, 48Action<IAzureClientBuilder<TClient, TClientOptions>>? configureClientBuilder,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Storage.Queues.Tests (1)
ConformanceTests.cs (1)
81protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureStorageQueuesSettings>? configure = null, string? key = null)
Aspire.Cli.Tests (14)
TestServices\TestAppHostBackchannel.cs (1)
34public Action<EventHandler<JsonRpcDisconnectedEventArgs>>? AddDisconnectHandlerCallback { get; set; }
TestServices\TestConsoleInteractionService.cs (5)
12public Action<string>? DisplayErrorCallback { get; set; } 13public Action<string>? DisplaySubtleMessageCallback { get; set; } 14public Action<string>? DisplayConsoleWriteLineMessage { get; set; } 16public Action<string>? ShowStatusCallback { get; set; } 98public Action<string>? DisplayVersionUpdateNotificationCallback { get; set; }
TestServices\TestExtensionInteractionService.cs (6)
14public Action<string>? DisplayErrorCallback { get; set; } 15public Action<string>? DisplaySubtleMessageCallback { get; set; } 16public Action<string>? DisplayConsoleWriteLineMessage { get; set; } 19public Action<DashboardUrlsState>? DisplayDashboardUrlsCallback { get; set; } 112public Action<string>? DisplayVersionUpdateNotificationCallback { get; set; } 119public Action<string>? OpenNewProjectCallback { get; set; }
Utils\CliTestHelper.cs (2)
30public static IServiceCollection CreateServiceCollection(TemporaryWorkspace workspace, ITestOutputHelper outputHelper, Action<CliServiceCollectionTestOptions>? configure = null) 129public Action<Dictionary<string, string?>> ConfigurationCallback { get; set; } = (Dictionary<string, string?> config) =>
Aspire.Components.Common.TestUtilities (2)
ConformanceTests.cs (2)
64protected abstract void RegisterComponent(HostApplicationBuilder builder, Action<TOptions>? configure = null, string? key = null); 470protected IHost CreateHostWithComponent(Action<TOptions>? configureComponent = null, HostApplicationBuilderSettings? hostSettings = null, string? key = null)
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)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedProducer.cs (2)
134public void Produce(string topic, Message<TKey, TValue> message, Action<DeliveryReport<TKey, TValue>>? deliveryHandler = null) 175public void Produce(TopicPartition topicPartition, Message<TKey, TValue> message, Action<DeliveryReport<TKey, TValue>>? deliveryHandler = null)
Aspire.Confluent.Kafka.Tests (18)
ConfluentKafkaPublicApiTests.cs (16)
23Action<KafkaConsumerSettings>? configureSettings = null; 24Action<ConsumerBuilder<string, string>>? configureBuilder = null; 59Action<KafkaConsumerSettings>? configureSettings = null; 60Action<ConsumerBuilder<string, string>>? configureBuilder = null; 91Action<KafkaConsumerSettings>? configureSettings = null; 92Action<ConsumerBuilder<string, string>>? configureBuilder = null; 127Action<KafkaConsumerSettings>? configureSettings = null; 128Action<ConsumerBuilder<string, string>>? configureBuilder = null; 159Action<KafkaProducerSettings>? configureSettings = null; 160Action<ProducerBuilder<string, string>>? configureBuilder = null; 195Action<KafkaProducerSettings>? configureSettings = null; 196Action<ProducerBuilder<string, string>>? configureBuilder = null; 227Action<KafkaProducerSettings>? configureSettings = null; 228Action<ProducerBuilder<string, string>>? configureBuilder = null; 263Action<KafkaProducerSettings>? configureSettings = null; 264Action<ProducerBuilder<string, string>>? configureBuilder = null;
ConsumerConformanceTests.cs (1)
35protected override void RegisterComponent(HostApplicationBuilder builder, Action<KafkaConsumerSettings>? configure = null, string? key = null)
ProducerConformanceTests.cs (1)
34protected override void RegisterComponent(HostApplicationBuilder builder, Action<KafkaProducerSettings>? configure = null, string? key = null)
Aspire.Dashboard (9)
Components\Controls\SignalsActionsDisplay.razor.cs (1)
23public required Action<bool> OnPausedChanged { get; set; }
DashboardWebApplication.cs (1)
110Action<WebApplicationBuilder>? preConfigureBuilder = null,
Extensions\ComponentExtensions.cs (1)
27public static void ExecuteOnDefault<T>(this FluentDataGridRow<T> row, Action<T> call)
Model\DashboardCommandExecutor.cs (1)
117Action<string?> closeCallback = (id) =>
Model\ModelSubscription.cs (2)
6public sealed class ModelSubscription(Func<Task> callback, Action<ModelSubscription> onDispose) : IDisposable 9private readonly Action<ModelSubscription> _onDispose = onDispose;
ServiceClient\DashboardClient.cs (1)
82Action<SocketsHttpHandler>? configureHttpHandler = null)
src\Shared\CircularBuffer.cs (1)
23public event Action<T>? ItemRemovedForCapacity;
Utils\MarkdownHelpers.cs (1)
45private static string ToHtml(string markdown, MarkdownPipeline pipeline, Action<HtmlRenderer>? setupAction)
Aspire.Dashboard.Components.Tests (6)
Shared\TestMessageService.cs (2)
49public Message ShowMessageBar(Action<MessageOptions> options) 69public Task<Message> ShowMessageBarAsync(Action<MessageOptions> options)
tests\Shared\Logging\ITestSink.cs (2)
10event Action<WriteContext> MessageLogged; 12event Action<BeginScopeContext> ScopeStarted;
tests\Shared\Logging\TestSink.cs (2)
32public event Action<WriteContext>? MessageLogged; 34public event Action<BeginScopeContext>? ScopeStarted;
Aspire.Dashboard.Tests (16)
Integration\DashboardClientAuthTests.cs (2)
67private static async Task<ResourceServiceServer> CreateResourceServiceServerAsync(ILoggerFactory loggerFactory, bool useHttps, Action<TestCalls>? configureCalls = null) 112Action<DashboardOptions>? configureOptions = null)
Integration\IntegrationTestHelpers.cs (7)
41Action<Dictionary<string, string?>>? additionalConfiguration = null, 42Action<WebApplicationBuilder>? preConfigureBuilder = null, 53Action<Dictionary<string, string?>>? additionalConfiguration = null, 54Action<WebApplicationBuilder>? preConfigureBuilder = null, 114Action<X509Certificate2?>? validationCallback = null, 139Action<X509Certificate2?>? validationCallback = null, 155Action<X509Certificate2?>? validationCallback = null,
Integration\StartupTests.cs (2)
876public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
OtlpApiKeyAuthenticationHandlerTests.cs (1)
114public IDisposable OnChange(Action<T> listener) => throw new NotImplementedException();
tests\Shared\Logging\ITestSink.cs (2)
10event Action<WriteContext> MessageLogged; 12event Action<BeginScopeContext> ScopeStarted;
tests\Shared\Logging\TestSink.cs (2)
32public event Action<WriteContext>? MessageLogged; 34public event Action<BeginScopeContext>? ScopeStarted;
Aspire.EndToEnd.Tests (3)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
161public async Task StartAppHostAsync(string[]? extraArgs = default, Action<ProcessStartInfo>? configureProcess = null, bool noBuild = true, bool waitForDashboardUrl = true, CancellationToken token = default)
tests\Shared\TemplatesTesting\ToolCommand.cs (2)
62public ToolCommand WithOutputDataReceived(Action<string?> handler) 68public ToolCommand WithErrorDataReceived(Action<string?> handler)
Aspire.Hosting (45)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (1)
29public CommandLineArgsCallbackAnnotation(Action<IList<object>> callback)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
110public static IEnumerable<ContainerFileSystemItem> GetFileSystemItemsFromPath(string path, string searchPattern = "*", SearchOption searchOptions = SearchOption.TopDirectoryOnly, Action<ContainerFileSystemItem>? updateItem = null)
ApplicationModel\ContainerRuntimeArgsCallbackAnnotation.cs (1)
29public ContainerRuntimeArgsCallbackAnnotation(Action<IList<object>> callback)
ApplicationModel\EnvironmentCallbackAnnotation.cs (2)
38public EnvironmentCallbackAnnotation(Action<Dictionary<string, object>> callback) 53public EnvironmentCallbackAnnotation(Action<EnvironmentCallbackContext> callback)
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (1)
17public ManifestPublishingCallbackAnnotation(Action<ManifestPublishingContext>? callback)
ApplicationModel\ResourceLoggerService.cs (7)
24private Action<(string, ResourceLoggerState)>? _loggerAdded; 25private event Action<(string, ResourceLoggerState)> LoggerAdded 142internal Action<LogEntry> GetInternalLogger(string resourceName) 363private Action<bool>? _onSubscribersChanged; 364public event Action<bool> OnSubscribersChanged 477private Action<LogEntry>? _onNewLog; 478private event Action<LogEntry> OnNewLog
ApplicationModel\ResourceNotificationService.cs (1)
30private Action<ResourceEvent>? OnResourceUpdated { get; set; }
ApplicationModel\ResourceUrlsCallbackAnnotation.cs (1)
15public ResourceUrlsCallbackAnnotation(Action<ResourceUrlsCallbackContext> callback)
ConnectionStringBuilderExtensions.cs (1)
144public static IResourceBuilder<ConnectionStringResource> AddConnectionString(this IDistributedApplicationBuilder builder, [ResourceName] string name, Action<ReferenceExpressionBuilder> connectionStringBuilder)
ContainerResourceBuilderExtensions.cs (2)
345/// This is intended to pass additional arguments to the underlying container runtime run command to enable advanced features such as exposing GPUs to the container. To pass runtime arguments to the actual container, use the <see cref="ResourceBuilderExtensions.WithArgs{T}(IResourceBuilder{T}, Action{CommandLineArgsCallbackContext})"/> method. 351public static IResourceBuilder<T> WithContainerRuntimeArgs<T>(this IResourceBuilder<T> builder, Action<ContainerRuntimeArgsCallbackContext> callback) where T : ContainerResource
Dcp\DcpExecutor.cs (2)
597var logger = _loggerService.GetInternalLogger(resource.Metadata.Name); 1726private static V1Patch CreatePatch<T>(T obj, Action<T> change) where T : CustomResource
Dcp\Process\ProcessSpec.cs (4)
13public Action<string>? OnOutputData { get; init; } 14public Action<string>? OnErrorData { get; init; } 15public Action<int>? OnStart { get; init; } 16public Action<int>? OnStop { get; init; }
DistributedApplicationExecutionContext.cs (1)
26/// <param name="publisherName">The name of the publisher being used for the publish operation. This corresponds to publishers added via the <see cref="PublisherDistributedApplicationBuilderExtensions.AddPublisher{TPublisher, TPublisherOptions}(IDistributedApplicationBuilder, string, Action{TPublisherOptions})"/> extension method.</param>
ExecutableResourceBuilderExtensions.cs (1)
116public static IResourceBuilder<T> PublishAsDockerFile<T>(this IResourceBuilder<T> builder, Action<IResourceBuilder<ContainerResource>>? configure)
InteractionService.cs (1)
19private Action<Interaction>? OnInteractionUpdated { get; set; }
ProjectResourceBuilderExtensions.cs (3)
229public static IResourceBuilder<ProjectResource> AddProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name, Action<ProjectResourceOptions> configure) where TProject : IProjectMetadata, new() 269public static IResourceBuilder<ProjectResource> AddProject(this IDistributedApplicationBuilder builder, [ResourceName] string name, string projectPath, Action<ProjectResourceOptions> configure) 673public static IResourceBuilder<T> PublishAsDockerFile<T>(this IResourceBuilder<T> builder, Action<IResourceBuilder<ContainerResource>>? configure = null)
PublisherDistributedApplicationBuilderExtensions.cs (1)
22internal static IDistributedApplicationBuilder AddPublisher<TPublisher, TPublisherOptions>(this IDistributedApplicationBuilder builder, string name, Action<TPublisherOptions>? configureOptions = null)
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
ResourceLoggerForwarderService.cs (1)
26public Action<string>? OnResourceLog { get; set; }
src\Shared\CircularBuffer.cs (1)
23public event Action<T>? ItemRemovedForCapacity;
Aspire.Hosting.Azure (10)
AzureProvisioningResource.cs (2)
18public class AzureProvisioningResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 24public Action<AzureResourceInfrastructure> ConfigureInfrastructure { get; internal set; } = configureInfrastructure ?? throw new ArgumentNullException(nameof(configureInfrastructure));
AzureProvisioningResourceExtensions.cs (2)
24public static IResourceBuilder<AzureProvisioningResource> AddAzureInfrastructure(this IDistributedApplicationBuilder builder, [ResourceName] string name, Action<AzureResourceInfrastructure> configureInfrastructure) 39public static IResourceBuilder<T> ConfigureInfrastructure<T>(this IResourceBuilder<T> builder, Action<AzureResourceInfrastructure> configure)
AzurePublishingContext.cs (2)
402private static void Visit(object? value, Action<object> visitor) => 405private static void Visit(object? value, Action<object> visitor, HashSet<object> visited)
src\Aspire.Hosting\Dcp\Process\ProcessSpec.cs (4)
13public Action<string>? OnOutputData { get; init; } 14public Action<string>? OnErrorData { get; init; } 15public Action<int>? OnStart { get; init; } 16public Action<int>? OnStop { get; init; }
Aspire.Hosting.Azure.AIFoundry (2)
AzureAIFoundryExtensions.cs (1)
111public static IResourceBuilder<AzureAIFoundryDeploymentResource> WithProperties(this IResourceBuilder<AzureAIFoundryDeploymentResource> builder, Action<AzureAIFoundryDeploymentResource> configure)
AzureAIFoundryResource.cs (1)
15public class AzureAIFoundryResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) :
Aspire.Hosting.Azure.AppConfiguration (3)
AzureAppConfigurationExtensions.cs (2)
37var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 74public static IResourceBuilder<AzureAppConfigurationResource> RunAsEmulator(this IResourceBuilder<AzureAppConfigurationResource> builder, Action<IResourceBuilder<AzureAppConfigurationEmulatorResource>>? configureEmulator = null)
AzureAppConfigurationResource.cs (1)
15public class AzureAppConfigurationResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppEnvironmentResource.cs (1)
15public class AzureContainerAppEnvironmentResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) :
Aspire.Hosting.Azure.ApplicationInsights (2)
AzureApplicationInsightsExtensions.cs (1)
43var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureApplicationInsightsResource.cs (1)
13public class AzureApplicationInsightsResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
15public class AzureAppServiceEnvironmentResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) :
Aspire.Hosting.Azure.CognitiveServices (3)
AzureOpenAIExtensions.cs (2)
37var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 184public static IResourceBuilder<AzureOpenAIDeploymentResource> WithProperties(this IResourceBuilder<AzureOpenAIDeploymentResource> builder, Action<AzureOpenAIDeploymentResource> configure)
AzureOpenAIResource.cs (1)
14public class AzureOpenAIResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.ContainerRegistry (2)
AzureContainerRegistryExtensions.cs (1)
33var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureContainerRegistryResource.cs (1)
15public class AzureContainerRegistryResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.CosmosDB (6)
AzureCosmosDBContainerResource.cs (1)
15/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureCosmosDBDatabaseResource.cs (1)
14/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureCosmosDBExtensions.cs (3)
55public static IResourceBuilder<AzureCosmosDBResource> RunAsEmulator(this IResourceBuilder<AzureCosmosDBResource> builder, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer = null) 69public static IResourceBuilder<AzureCosmosDBResource> RunAsPreviewEmulator(this IResourceBuilder<AzureCosmosDBResource> builder, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer = null) 72private static IResourceBuilder<AzureCosmosDBResource> RunAsEmulator(this IResourceBuilder<AzureCosmosDBResource> builder, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer, bool useVNextPreview)
AzureCosmosDBResource.cs (1)
17public class AzureCosmosDBResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.EventHubs (9)
AzureEventHubConsumerGroupResource.cs (1)
17/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureEventHubResource.cs (1)
17/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureEventHubsExtensions.cs (4)
45var configureInfrastructure = static (AzureResourceInfrastructure infrastructure) => 146public static IResourceBuilder<AzureEventHubResource> WithProperties(this IResourceBuilder<AzureEventHubResource> builder, Action<AzureEventHubResource> configure) 208public static IResourceBuilder<AzureEventHubsResource> RunAsEmulator(this IResourceBuilder<AzureEventHubsResource> builder, Action<IResourceBuilder<AzureEventHubsEmulatorResource>>? configureContainer = null) 404public static IResourceBuilder<AzureEventHubsEmulatorResource> WithConfiguration(this IResourceBuilder<AzureEventHubsEmulatorResource> builder, Action<JsonNode> configJson)
AzureEventHubsResource.cs (1)
15public class AzureEventHubsResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
ConfigJsonAnnotation.cs (2)
14public ConfigJsonAnnotation(Action<JsonNode> configure) 19public Action<JsonNode> Configure { get; }
Aspire.Hosting.Azure.KeyVault (3)
AzureKeyVaultResource.cs (1)
15public class AzureKeyVaultResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
AzureKeyVaultResourceExtensions.cs (1)
66var configureInfrastructure = static (AzureResourceInfrastructure infrastructure) =>
AzureKeyVaultSecretResource.cs (1)
13/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
Aspire.Hosting.Azure.OperationalInsights (2)
AzureLogAnalyticsWorkspaceExtensions.cs (1)
29var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureLogAnalyticsWorkspaceResource.cs (1)
14public class AzureLogAnalyticsWorkspaceResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.PostgreSQL (4)
AzurePostgresExtensions.cs (2)
40var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 207public static IResourceBuilder<AzurePostgresFlexibleServerResource> RunAsContainer(this IResourceBuilder<AzurePostgresFlexibleServerResource> builder, Action<IResourceBuilder<PostgresServerResource>>? configureContainer = null)
AzurePostgresFlexibleServerResource.cs (1)
19public class AzurePostgresFlexibleServerResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
AzurePostgresResource.cs (1)
14public class AzurePostgresResource(PostgresServerResource innerResource, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.Redis (4)
AzureRedisCacheResource.cs (1)
17public class AzureRedisCacheResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
AzureRedisExtensions.cs (2)
36var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 153Action<IResourceBuilder<RedisResource>>? configureContainer = null)
AzureRedisResource.cs (1)
14public class AzureRedisResource(RedisResource innerResource, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.Search (1)
AzureSearchResource.cs (1)
15public class AzureSearchResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.ServiceBus (13)
AzureServiceBusExtensions.cs (6)
44var configureInfrastructure = static (AzureResourceInfrastructure infrastructure) => 158public static IResourceBuilder<AzureServiceBusQueueResource> WithProperties(this IResourceBuilder<AzureServiceBusQueueResource> builder, Action<AzureServiceBusQueueResource> configure) 235public static IResourceBuilder<AzureServiceBusTopicResource> WithProperties(this IResourceBuilder<AzureServiceBusTopicResource> builder, Action<AzureServiceBusTopicResource> configure) 301public static IResourceBuilder<AzureServiceBusSubscriptionResource> WithProperties(this IResourceBuilder<AzureServiceBusSubscriptionResource> builder, Action<AzureServiceBusSubscriptionResource> configure) 336public static IResourceBuilder<AzureServiceBusResource> RunAsEmulator(this IResourceBuilder<AzureServiceBusResource> builder, Action<IResourceBuilder<AzureServiceBusEmulatorResource>>? configureContainer = null) 502public static IResourceBuilder<AzureServiceBusEmulatorResource> WithConfiguration(this IResourceBuilder<AzureServiceBusEmulatorResource> builder, Action<JsonNode> configJson)
AzureServiceBusQueueResource.cs (1)
18/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureServiceBusResource.cs (1)
15public class AzureServiceBusResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
AzureServiceBusRule.cs (1)
16/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureServiceBusSubscriptionResource.cs (1)
18/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureServiceBusTopicResource.cs (1)
18/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
ConfigJsonAnnotation.cs (2)
14public ConfigJsonAnnotation(Action<JsonNode> configure) 19public Action<JsonNode> Configure { get; }
Aspire.Hosting.Azure.SignalR (3)
AzureSignalRExtensions.cs (2)
60var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 116public static IResourceBuilder<AzureSignalRResource> RunAsEmulator(this IResourceBuilder<AzureSignalRResource> builder, Action<IResourceBuilder<AzureSignalREmulatorResource>>? configureContainer = null)
AzureSignalRResource.cs (1)
15public class AzureSignalRResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.Sql (5)
AzureSqlExtensions.cs (3)
26var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 82var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 167public static IResourceBuilder<AzureSqlServerResource> RunAsContainer(this IResourceBuilder<AzureSqlServerResource> builder, Action<IResourceBuilder<SqlServerServerResource>>? configureContainer = null)
AzureSqlServerResource.cs (2)
27public AzureSqlServerResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 36public AzureSqlServerResource(SqlServerServerResource innerResource, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.Storage (3)
AzureStorageExtensions.cs (2)
45var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 149public static IResourceBuilder<AzureStorageResource> RunAsEmulator(this IResourceBuilder<AzureStorageResource> builder, Action<IResourceBuilder<AzureStorageEmulatorResource>>? configureContainer = null)
AzureStorageResource.cs (1)
15public class AzureStorageResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.Tests (43)
AzureAppServiceTests.cs (1)
306static async Task RunTest(Action<IDistributedApplicationBuilder> action)
AzureContainerAppsTests.cs (1)
1524static async Task RunTest(Action<IDistributedApplicationBuilder> action)
PublicApiTests\AppConfigurationPublicApiTests.cs (2)
44Action<AzureResourceInfrastructure> configureInfrastructure = (c) => { }; 58Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\ApplicationInsightsPublicApiTests.cs (2)
61Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 75Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\CosmosDBPublicApiTests.cs (4)
256var configureInfrastructure = (AzureResourceInfrastructure _) => { }; 270Action<AzureResourceInfrastructure> configureInfrastructure = null!; 310Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer = null; 323Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer = null;
PublicApiTests\EventHubsPublicApiTests.cs (6)
213Action<AzureEventHubResource> configure = (c) => { }; 226Action<AzureEventHubResource> configure = null!; 359Action<JsonNode> configJson = (_) => { }; 372Action<JsonNode> configJson = null!; 386Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 400Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\KeyVaultPublicApiTests.cs (2)
16Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 30Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\OperationalInsightsPublicApiTests.cs (2)
16Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 30Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\PostgreSQLPublicApiTests.cs (4)
126Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 141Action<AzureResourceInfrastructure> configureInfrastructure = null!; 202Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 216Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\RedisPublicApiTests.cs (4)
17Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 31Action<AzureResourceInfrastructure> configureInfrastructure = null!; 127Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 140Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\SearchPublicApiTests.cs (2)
44Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 58Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\ServiceBusPublicApiTests.cs (8)
115Action<AzureServiceBusQueueResource> configure = (_) => { }; 128Action<AzureServiceBusQueueResource> configure = null!; 169Action<AzureServiceBusTopicResource> configure = (_) => { }; 182Action<AzureServiceBusTopicResource> configure = null!; 224Action<AzureServiceBusSubscriptionResource> configure = (_) => { }; 239Action<AzureServiceBusSubscriptionResource> configure = null!; 291Action<JsonNode> configJson = (_) => { }; 304Action<JsonNode> configJson = null!;
PublicApiTests\SignalRPublicApiTests.cs (2)
83Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 97Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\WebPubSubPublicApiTests.cs (2)
161Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 175Action<AzureResourceInfrastructure> configureInfrastructure = null!;
RoleAssignmentTests.cs (1)
196Action<IDistributedApplicationBuilder> configureBuilder,
Aspire.Hosting.Azure.WebPubSub (2)
AzureWebPubSubExtensions.cs (1)
39var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureWebPubSubResource.cs (1)
15public class AzureWebPubSubResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Docker (4)
DockerComposeEnvironmentExtensions.cs (3)
64public static IResourceBuilder<DockerComposeEnvironmentResource> WithProperties(this IResourceBuilder<DockerComposeEnvironmentResource> builder, Action<DockerComposeEnvironmentResource> configure) 80public static IResourceBuilder<DockerComposeEnvironmentResource> ConfigureComposeFile(this IResourceBuilder<DockerComposeEnvironmentResource> builder, Action<ComposeFile> configure) 110public static IResourceBuilder<DockerComposeEnvironmentResource> WithDashboard(this IResourceBuilder<DockerComposeEnvironmentResource> builder, Action<IResourceBuilder<DockerComposeAspireDashboardResource>> configure)
DockerComposeEnvironmentResource.cs (1)
43internal Action<ComposeFile>? ConfigureComposeFile { get; set; }
Aspire.Hosting.Docker.Tests (1)
DockerComposeTests.cs (1)
92static async Task RunTest(Action<IDistributedApplicationBuilder> action)
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
92public static IResourceBuilder<KafkaServerResource> WithKafkaUI(this IResourceBuilder<KafkaServerResource> builder, Action<IResourceBuilder<KafkaUIContainerResource>>? configureContainer = null, string? containerName = null)
Aspire.Hosting.Kafka.Tests (1)
AddKafkaTests.cs (1)
164Action<IResourceBuilder<KafkaUIContainerResource>> kafkaUIConfigurationCallback = kafkaUi =>
Aspire.Hosting.Kubernetes (4)
KubernetesEnvironmentExtensions.cs (1)
59public static IResourceBuilder<KubernetesEnvironmentResource> WithProperties(this IResourceBuilder<KubernetesEnvironmentResource> builder, Action<KubernetesEnvironmentResource> configure)
KubernetesServiceCustomizationAnnotation.cs (2)
15public sealed class KubernetesServiceCustomizationAnnotation(Action<KubernetesResource> configure) : IResourceAnnotation 20public Action<KubernetesResource> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
KubernetesServiceExtensions.cs (1)
35public static IResourceBuilder<T> PublishAsKubernetesService<T>(this IResourceBuilder<T> builder, Action<KubernetesResource> configure)
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesEnvironmentResourceTests.cs (1)
40static async Task RunTest(Action<IDistributedApplicationBuilder> action)
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
131public static IResourceBuilder<T> WithAttu<T>(this IResourceBuilder<T> builder, Action<IResourceBuilder<AttuResource>>? configureContainer = null, string? containerName = null) where T : MilvusServerResource
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
147public static IResourceBuilder<T> WithMongoExpress<T>(this IResourceBuilder<T> builder, Action<IResourceBuilder<MongoExpressContainerResource>>? configureContainer = null, string? containerName = null)
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
216public static IResourceBuilder<T> WithPhpMyAdmin<T>(this IResourceBuilder<T> builder, Action<IResourceBuilder<PhpMyAdminContainerResource>>? configureContainer = null, string? containerName = null) where T : MySqlServerResource
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
179public static IResourceBuilder<T> WithPgAdmin<T>(this IResourceBuilder<T> builder, Action<IResourceBuilder<PgAdminContainerResource>>? configureContainer = null, string? containerName = null) 284public static IResourceBuilder<PostgresServerResource> WithPgWeb(this IResourceBuilder<PostgresServerResource> builder, Action<IResourceBuilder<PgWebContainerResource>>? configureContainer = null, string? containerName = null)
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
140public static IResourceBuilder<RedisResource> WithRedisCommander(this IResourceBuilder<RedisResource> builder, Action<IResourceBuilder<RedisCommanderResource>>? configureContainer = null, string? containerName = null) 207public static IResourceBuilder<RedisResource> WithRedisInsight(this IResourceBuilder<RedisResource> builder, Action<IResourceBuilder<RedisInsightResource>>? configureContainer = null, string? containerName = null)
Aspire.Hosting.Testing (9)
DistributedApplicationEntryPointInvoker.cs (9)
21Action<DistributedApplicationBuilder>? onConstructed = null, 22Action<DistributedApplicationBuilder>? onBuilding = null, 23Action<Exception?>? entryPointCompleted = null) 51private readonly Action<DistributedApplicationBuilder>? _onConstructed; 52private readonly Action<DistributedApplicationBuilder>? _onBuilding; 53private readonly Action<Exception?>? _entryPointCompleted; 59Action<DistributedApplicationBuilder>? onConstructed, 60Action<DistributedApplicationBuilder>? onBuilding, 61Action<Exception?>? entryPointCompleted)
Aspire.Hosting.Testing.Tests (6)
DistributedApplicationHttpClientExtensionsForTests.cs (2)
12public static HttpClient CreateHttpClientWithResilience(this DistributedApplication app, string resourceName, string? endpointName = default, Action<HttpStandardResilienceOptions>? configure = default) 41private static IHttpClientFactory CreateHttpClientFactoryWithResilience(Action<HttpStandardResilienceOptions> configure)
tests\Shared\Logging\ITestSink.cs (2)
10event Action<WriteContext> MessageLogged; 12event Action<BeginScopeContext> ScopeStarted;
tests\Shared\Logging\TestSink.cs (2)
32public event Action<WriteContext>? MessageLogged; 34public event Action<BeginScopeContext>? ScopeStarted;
Aspire.Hosting.Tests (16)
Dcp\DcpExecutorTests.cs (2)
491(Action<IResourceBuilder<ExecutableResource>> AddEndpoint, string ErrorMessageFragment)[] testcases = [ 935(Action<IResourceBuilder<ContainerResource>> AddEndpoint, string ErrorMessageFragment)[] testcases = [
KestrelConfigTests.cs (2)
349Action<IResourceBuilder<ProjectResource>>? callback = null, 350Action<ProjectResourceOptions>? configure = null) where TProject : IProjectMetadata, new()
ManifestGenerationTests.cs (1)
157var verify = new List<Action<JsonElement>>();
Schema\SchemaTests.cs (3)
16public static TheoryData<string, Action<IDistributedApplicationBuilder>> ApplicationSamples 20var data = new TheoryData<string, Action<IDistributedApplicationBuilder>> 218public void ValidateApplicationSamples(string testCaseName, Action<IDistributedApplicationBuilder> configurator)
tests\Aspire.Hosting.Testing.Tests\DistributedApplicationHttpClientExtensionsForTests.cs (2)
12public static HttpClient CreateHttpClientWithResilience(this DistributedApplication app, string resourceName, string? endpointName = default, Action<HttpStandardResilienceOptions>? configure = default) 41private static IHttpClientFactory CreateHttpClientFactoryWithResilience(Action<HttpStandardResilienceOptions> configure)
tests\Shared\Logging\ITestSink.cs (2)
10event Action<WriteContext> MessageLogged; 12event Action<BeginScopeContext> ScopeStarted;
tests\Shared\Logging\TestSink.cs (2)
32public event Action<WriteContext>? MessageLogged; 34public event Action<BeginScopeContext>? ScopeStarted;
Utils\TestDistributedApplicationBuilder.cs (2)
42public static IDistributedApplicationTestingBuilder Create(Action<DistributedApplicationOptions>? configureOptions, ITestOutputHelper? testOutputHelper = null) 50private static IDistributedApplicationTestingBuilder CreateCore(string[] args, Action<DistributedApplicationOptions>? configureOptions, ITestOutputHelper? testOutputHelper = null)
Aspire.Hosting.Yarp (2)
ConfigurationBuilder\YarpRoute.cs (1)
146public static YarpRoute WithTransform(this YarpRoute route, Action<IDictionary<string, string>> createTransform)
YarpResourceExtensions.cs (1)
59public static IResourceBuilder<YarpResource> WithConfiguration(this IResourceBuilder<YarpResource> builder, Action<IYarpConfigurationBuilder> configurationBuilder)
Aspire.Keycloak.Authentication (4)
AspireKeycloakExtensions.cs (4)
57public static AuthenticationBuilder AddKeycloakJwtBearer(this AuthenticationBuilder builder, string serviceName, string realm, Action<JwtBearerOptions>? configureOptions) 77Action<JwtBearerOptions>? configureOptions) 139public static AuthenticationBuilder AddKeycloakOpenIdConnect(this AuthenticationBuilder builder, string serviceName, string realm, Action<OpenIdConnectOptions>? configureOptions) 159Action<OpenIdConnectOptions>? configureOptions)
Aspire.Keycloak.Authentication.Tests (14)
KeycloakAuthenticationPublicApiTests.cs (14)
140Action<JwtBearerOptions>? configureOptions = null; 157Action<JwtBearerOptions>? configureOptions = null; 176Action<JwtBearerOptions>? configureOptions = null; 193Action<JwtBearerOptions>? configureOptions = null; 215Action<JwtBearerOptions>? configureOptions = null; 239Action<JwtBearerOptions>? configureOptions = null; 263Action<JwtBearerOptions>? configureOptions = null; 403Action<OpenIdConnectOptions>? configureOptions = null; 420Action<OpenIdConnectOptions>? configureOptions = null; 439Action<OpenIdConnectOptions>? configureOptions = null; 456Action<OpenIdConnectOptions>? configureOptions = null; 478Action<OpenIdConnectOptions>? configureOptions = null; 502Action<OpenIdConnectOptions>? configureOptions = null; 526Action<OpenIdConnectOptions>? configureOptions = null;
Aspire.Microsoft.Azure.Cosmos (14)
AspireMicrosoftAzureCosmosExtensions.cs (14)
33Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 34Action<CosmosClientOptions>? configureClientOptions = null) 62Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 63Action<CosmosClientOptions>? configureClientOptions = null) 91Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 92Action<CosmosClientOptions>? configureClientOptions = null) 126Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 127Action<CosmosClientOptions>? configureClientOptions = null) 155Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 156Action<CosmosClientOptions>? configureClientOptions = null) 178Action<MicrosoftAzureCosmosSettings>? configureSettings = null, 179Action<CosmosClientOptions>? configureClientOptions = null) 205Action<MicrosoftAzureCosmosSettings>? configureSettings 235Action<CosmosClientOptions>? configureClientOptions)
Aspire.Microsoft.Azure.Cosmos.Tests (1)
ConformanceTests.cs (1)
28protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftAzureCosmosSettings>? configure = null, string? key = null)
Aspire.Microsoft.Data.SqlClient (6)
AspireSqlServerSqlClientExtensions.cs (3)
31public static void AddSqlServerClient(this IHostApplicationBuilder builder, string connectionName, Action<MicrosoftDataSqlClientSettings>? configureSettings = null) 43public static void AddKeyedSqlServerClient(this IHostApplicationBuilder builder, string name, Action<MicrosoftDataSqlClientSettings>? configureSettings = null) 52Action<MicrosoftDataSqlClientSettings>? configure,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\TracerProviderBuilderExtensions.cs (2)
43Action<SqlClientTraceInstrumentationOptions> configureSqlClientTraceInstrumentationOptions) 60Action<SqlClientTraceInstrumentationOptions> configureSqlClientTraceInstrumentationOptions)
Aspire.Microsoft.Data.SqlClient.Tests (2)
ConformanceTests.cs (2)
67protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftDataSqlClientSettings>? configure = null, string? key = null) 108private static void RunWithConnectionString(string connectionString, Action<ConformanceTests> test)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (6)
AspireAzureEFCoreCosmosExtensions.cs (5)
40Action<EntityFrameworkCoreCosmosSettings>? configureSettings = null, 41Action<DbContextOptionsBuilder>? configureDbContextOptions = null) where TContext : DbContext 84Action<EntityFrameworkCoreCosmosSettings>? configureSettings = null, 85Action<DbContextOptionsBuilder>? configureDbContextOptions = null) where TContext : DbContext 181Action<EntityFrameworkCoreCosmosSettings>? configureSettings = null)
src\Components\Common\EntityFrameworkUtils.cs (1)
63public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "")
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
ConformanceTests.cs (1)
36protected override void RegisterComponent(HostApplicationBuilder builder, Action<EntityFrameworkCoreCosmosSettings>? configure = null, string? key = null)
EnrichCosmosDbTests.cs (1)
20protected override void RegisterComponent(HostApplicationBuilder builder, Action<EntityFrameworkCoreCosmosSettings>? configure = null, string? key = null)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (7)
AspireSqlServerEFCoreSqlClientExtensions.cs (3)
40Action<MicrosoftEntityFrameworkCoreSqlServerSettings>? configureSettings = null, 41Action<DbContextOptionsBuilder>? configureDbContextOptions = null) where TContext : DbContext 98Action<MicrosoftEntityFrameworkCoreSqlServerSettings>? configureSettings = null) where TContext : DbContext
src\Components\Common\EntityFrameworkUtils.cs (1)
63public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "")
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\TracerProviderBuilderExtensions.cs (2)
43Action<SqlClientTraceInstrumentationOptions> configureSqlClientTraceInstrumentationOptions) 60Action<SqlClientTraceInstrumentationOptions> configureSqlClientTraceInstrumentationOptions)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (3)
ConformanceTests.cs (2)
79protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftEntityFrameworkCoreSqlServerSettings>? configure = null, string? key = null) 123private static void RunWithConnectionString(string connectionString, Action<ConformanceTests> test)
EnrichSqlServerTests.cs (1)
24protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftEntityFrameworkCoreSqlServerSettings>? configure = null, string? key = null)
Aspire.Milvus.Client (4)
AspireMilvusExtensions.cs (3)
33Action<MilvusClientSettings>? configureSettings = null) 50Action<MilvusClientSettings>? configureSettings = null) 59Action<MilvusClientSettings>? configureSettings,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Milvus.Client.Tests (1)
ConformanceTests.cs (1)
40protected override void RegisterComponent(HostApplicationBuilder builder, Action<MilvusClientSettings>? configure = null, string? key = null)
Aspire.MongoDB.Driver (10)
AspireMongoDBDriverExtensions.cs (9)
35Action<MongoDBSettings>? configureSettings = null, 36Action<MongoClientSettings>? configureClientSettings = null) 54Action<MongoDBSettings>? configureSettings = null, 55Action<MongoClientSettings>? configureClientSettings = null) 69Action<MongoDBSettings>? configureSettings, 70Action<MongoClientSettings>? configureClientSettings, 105Action<MongoClientSettings>? configureClientSettings, 191Action<MongoClientSettings>? configureClientSettings) 222Action<MongoDBSettings>? configureSettings)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.MongoDB.Driver.Tests (1)
ConformanceTests.cs (1)
84protected override void RegisterComponent(HostApplicationBuilder builder, Action<MongoDBSettings>? configure = null, string? key = null)
Aspire.MongoDB.Driver.v3.Tests (1)
tests\Aspire.MongoDB.Driver.Tests\ConformanceTests.cs (1)
84protected override void RegisterComponent(HostApplicationBuilder builder, Action<MongoDBSettings>? configure = null, string? key = null)
Aspire.MySqlConnector (4)
AspireMySqlConnectorExtensions.cs (3)
32public static void AddMySqlDataSource(this IHostApplicationBuilder builder, string connectionName, Action<MySqlConnectorSettings>? configureSettings = null) 46public static void AddKeyedMySqlDataSource(this IHostApplicationBuilder builder, string name, Action<MySqlConnectorSettings>? configureSettings = null) 55Action<MySqlConnectorSettings>? configureSettings,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.MySqlConnector.Tests (2)
ConformanceTests.cs (2)
72protected override void RegisterComponent(HostApplicationBuilder builder, Action<MySqlConnectorSettings>? configure = null, string? key = null) 138private static void RunWithConnectionString(string connectionString, Action<ConformanceTests> test)
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)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.NATS.Net.Tests (5)
ConformanceTests.cs (1)
39protected override void RegisterComponent(HostApplicationBuilder builder, Action<NatsClientSettings>? configure = null, string? key = null)
NatsClientPublicApiTests.cs (4)
25Action<NatsClientSettings>? configureSettings = null; 61Action<NatsClientSettings>? configureSettings = null; 93Action<NatsClientSettings>? configureSettings = null; 129Action<NatsClientSettings>? configureSettings = null;
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)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (5)
AspireEFPostgreSqlExtensions.cs (3)
48Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configureSettings = null, 49Action<DbContextOptionsBuilder>? configureDbContextOptions = null) where TContext : DbContext 109Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configureSettings = null)
src\Components\Common\EntityFrameworkUtils.cs (1)
63public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "")
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
ConformanceTests.cs (2)
96protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configure = null, string? key = null) 143private static void RunWithConnectionString(string connectionString, Action<ConformanceTests> test)
EnrichNpgsqlTests.cs (1)
28protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configure = null, string? key = null)
Aspire.Npgsql.Tests (2)
ConformanceTests.cs (2)
74protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlSettings>? configure = null, string? key = null) 142private static void RunWithConnectionString(string connectionString, Action<ConformanceTests> test)
Aspire.OpenAI (6)
AspireOpenAIExtensions.cs (6)
33Action<OpenAISettings>? configureSettings = null, 34Action<OpenAIClientOptions>? configureOptions = null) 49Action<OpenAISettings>? configureSettings = null, 50Action<OpenAIClientOptions>? configureOptions = null) 60Action<OpenAISettings>? configureSettings, 61Action<OpenAIClientOptions>? configureOptions,
Aspire.OpenAI.Tests (1)
ConformanceTests.cs (1)
55protected override void RegisterComponent(HostApplicationBuilder builder, Action<OpenAISettings>? configure = null, string? key = null)
Aspire.Oracle.EntityFrameworkCore (6)
AspireOracleEFCoreExtensions.cs (3)
41Action<OracleEntityFrameworkCoreSettings>? configureSettings = null, 42Action<DbContextOptionsBuilder>? configureDbContextOptions = null) where TContext : DbContext 97Action<OracleEntityFrameworkCoreSettings>? configureSettings = null) where TContext : DbContext
OracleEntityFrameworkCoreSettings.cs (1)
50public Action<OracleDataProviderInstrumentationOptions>? InstrumentationOptions { get; set; }
src\Components\Common\EntityFrameworkUtils.cs (1)
63public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "")
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Oracle.EntityFrameworkCore.Tests (3)
ConformanceTests.cs (2)
74protected override void RegisterComponent(HostApplicationBuilder builder, Action<OracleEntityFrameworkCoreSettings>? configure = null, string? key = null) 182private static void RunWithConnectionString(string connectionString, Action<ConformanceTests> test)
EnrichOracleDatabaseTests.cs (1)
24protected override void RegisterComponent(HostApplicationBuilder builder, Action<OracleEntityFrameworkCoreSettings>? configure = null, string? key = null)
Aspire.Playground.Tests (5)
Infrastructure\DistributedApplicationExtensions.cs (1)
193public static HttpClient CreateHttpClient(this DistributedApplication app, string resourceName, string? endpointName, Action<IHttpClientBuilder> configure)
tests\Shared\Logging\ITestSink.cs (2)
10event Action<WriteContext> MessageLogged; 12event Action<BeginScopeContext> ScopeStarted;
tests\Shared\Logging\TestSink.cs (2)
32public event Action<WriteContext>? MessageLogged; 34public event Action<BeginScopeContext>? ScopeStarted;
Aspire.Pomelo.EntityFrameworkCore.MySql (5)
AspireEFMySqlExtensions.cs (3)
52Action<PomeloEntityFrameworkCoreMySqlSettings>? configureSettings = null, 53Action<DbContextOptionsBuilder>? configureDbContextOptions = null) 146Action<PomeloEntityFrameworkCoreMySqlSettings>? configureSettings = null)
src\Components\Common\EntityFrameworkUtils.cs (1)
63public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "")
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (3)
ConformanceTests.cs (2)
90protected override void RegisterComponent(HostApplicationBuilder builder, Action<PomeloEntityFrameworkCoreMySqlSettings>? configure = null, string? key = null) 136private static void RunWithConnectionString(string connectionString, Action<ConformanceTests> test)
EnrichMySqlTests.cs (1)
29protected override void RegisterComponent(HostApplicationBuilder builder, Action<PomeloEntityFrameworkCoreMySqlSettings>? configure = null, string? key = null)
Aspire.Qdrant.Client (4)
AspireQdrantExtensions.cs (3)
33Action<QdrantClientSettings>? configureSettings = null) 48Action<QdrantClientSettings>? configureSettings = null) 57Action<QdrantClientSettings>? configureSettings,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Qdrant.Client.Tests (1)
ConformanceTests.cs (1)
42protected override void RegisterComponent(HostApplicationBuilder builder, Action<QdrantClientSettings>? configure = null, string? key = null)
Aspire.RabbitMQ.Client (9)
AspireRabbitMQExtensions.cs (6)
41Action<RabbitMQClientSettings>? configureSettings = null, 42Action<ConnectionFactory>? configureConnectionFactory = null) 57Action<RabbitMQClientSettings>? configureSettings = null, 58Action<ConnectionFactory>? configureConnectionFactory = null) 67Action<RabbitMQClientSettings>? configureSettings, 68Action<ConnectionFactory>? configureConnectionFactory,
RabbitMQEventSourceLogForwarder.cs (2)
132private readonly Action<EventWrittenEventArgs> _log; 135public RabbitMQEventSourceListener(Action<EventWrittenEventArgs> log, EventLevel level)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.RabbitMQ.Client.Tests (1)
ConformanceTests.cs (1)
82protected override void RegisterComponent(HostApplicationBuilder builder, Action<RabbitMQClientSettings>? configure = null, string? key = null)
Aspire.RabbitMQ.Client.v7.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\ConformanceTests.cs (1)
82protected override void RegisterComponent(HostApplicationBuilder builder, Action<RabbitMQClientSettings>? configure = null, string? key = null)
Aspire.Seq (2)
AspireSeqExtensions.cs (1)
32Action<SeqSettings>? configureSettings = null)
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.StackExchange.Redis (11)
AspireRedisExtensions.cs (6)
37Action<StackExchangeRedisSettings>? configureSettings = null, 38Action<ConfigurationOptions>? configureOptions = null) 53Action<StackExchangeRedisSettings>? configureSettings = null, 54Action<ConfigurationOptions>? configureOptions = null) 63Action<StackExchangeRedisSettings>? configureSettings, 64Action<ConfigurationOptions>? configureOptions,
src\Components\Common\HealthChecksExtensions.cs (1)
23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\TracerProviderBuilderExtensions.cs (4)
58Action<StackExchangeRedisInstrumentationOptions> configure) 75Action<StackExchangeRedisInstrumentationOptions> configure) 100Action<StackExchangeRedisInstrumentationOptions>? configure) 141Action<StackExchangeRedisInstrumentation> configure)
Aspire.StackExchange.Redis.DistributedCaching (4)
AspireRedisDistributedCacheExtensions.cs (4)
33Action<StackExchangeRedisSettings>? configureSettings = null, 34Action<ConfigurationOptions>? configureOptions = null) 63Action<StackExchangeRedisSettings>? configureSettings = null, 64Action<ConfigurationOptions>? configureOptions = null)
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
DistributedCacheConformanceTests.cs (1)
24protected override void RegisterComponent(HostApplicationBuilder builder, Action<StackExchangeRedisSettings>? configure = null, string? key = null)
Aspire.StackExchange.Redis.OutputCaching (4)
AspireRedisOutputCacheExtensions.cs (4)
32Action<StackExchangeRedisSettings>? configureSettings = null, 33Action<ConfigurationOptions>? configureOptions = null) 62Action<StackExchangeRedisSettings>? configureSettings = null, 63Action<ConfigurationOptions>? configureOptions = null)
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
OutputCacheConformanceTests.cs (1)
24protected override void RegisterComponent(HostApplicationBuilder builder, Action<StackExchangeRedisSettings>? configure = null, string? key = null)
Aspire.StackExchange.Redis.Tests (1)
ConformanceTests.cs (1)
77protected override void RegisterComponent(HostApplicationBuilder builder, Action<StackExchangeRedisSettings>? configure = null, string? key = null)
Aspire.Templates.Tests (3)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
161public async Task StartAppHostAsync(string[]? extraArgs = default, Action<ProcessStartInfo>? configureProcess = null, bool noBuild = true, bool waitForDashboardUrl = true, CancellationToken token = default)
tests\Shared\TemplatesTesting\ToolCommand.cs (2)
62public ToolCommand WithOutputDataReceived(Action<string?> handler) 68public ToolCommand WithErrorDataReceived(Action<string?> handler)
Binding.UDS.IntegrationTests (8)
.packages\corewcf.primitives\1.7.0\contentFiles\CoreWCFWebApplicationExtensions.cs (1)
14public static Microsoft.Extensions.Hosting.IHost UseServiceModel(this Microsoft.AspNetCore.Builder.WebApplication app, Action<IServiceBuilder> configureServices)
ServiceHelper.cs (6)
30var configureServiceAction = (Action<IServiceCollection>)configureServicesMethod.CreateDelegate(typeof(Action<IServiceCollection>), startupInstance); 37var configureAction = (Action<IHost>)configureMethod.CreateDelegate(typeof(Action<IHost>), startupInstance);
UDSBindingTests.cs (1)
291Action<CoreWCF.ServiceHostBase> serviceHost = host => ChangeHostBehavior(host);
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)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
88ActionOfBinderOptions = binderOptions is null ? null : compilation.GetBestTypeByMetadataName(typeof(Action<>))?.Construct(binderOptions);
Contract.XmlSerializer.IntegrationTests (1)
XmlSerializerFormatSoapTest.cs (1)
80private static void RunWcfSoapServiceTest(Action<IWcfSoapService> testMethod)
CSharpSyntaxGenerator (1)
Program.cs (1)
155private static void WriteToFile(Action<TextWriter> writeAction, string outputFile)
dotnet-dev-certs (5)
ReporterEventListener.cs (1)
23Action<string> report = eventData.Level switch
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)
Program.cs (1)
53public static RazorProjectEngine CreateProjectEngine(string rootNamespace, string targetProjectDirectory, Action<RazorProjectEngineBuilder> configure = null)
dotnet-sql-cache (5)
Program.cs (1)
158Action<string> writer = reporter.Output;
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)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatSoapTest.cs (1)
80private static void RunWcfSoapServiceTest(Action<IWcfSoapService> testMethod)
dotnet-svcutil-lib (88)
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
28CodeTypeReference delegateType = new CodeTypeReference(typeof(Action<>));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ActionItem.cs (6)
34public static void Schedule(Action<object> callback, object state) 64private void ScheduleCallback(Action<object> callback) 74private static Action<object> s_invokeCallback; 76public static Action<object> InvokeCallbackAction 100private Action<object> _callback; 113public DefaultActionItem(Action<object> callback, object state, bool isLowPriority)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (3)
937internal sealed class ActionThunk<T1> : Thunk<Action<T1>> 939public ActionThunk(Action<T1> callback) : base(callback) 943public Action<T1> ThunkFrame
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (9)
13private static Action<object> s_completeOutstandingReadersCallback; 14private static Action<object> s_completeWaitersFalseCallback; 15private static Action<object> s_completeWaitersTrueCallback; 16private static Action<object> s_onDispatchCallback; 17private static Action<object> s_onInvokeDequeuedCallback; 57public Action<T> DisposeItemCallback 484Action<T> disposeItemCallback = this.DisposeItemCallback; 797private static Action<object> s_timerCallback = new Action<object>(AsyncQueueReader.TimerCallback); 859private static Action<object> s_timerCallback = new Action<object>(AsyncQueueWaiter.TimerCallback);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ScheduleActionItemAsyncResult.cs (1)
10private static Action<object> s_doWork = new Action<object>(DoWork);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (1)
247public static Action<object> OnAsyncCompletionCallback = OnAsyncCompletion;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (1)
250private static readonly Action<object> s_deregisterToken = (object state) =>
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedConnection.cs (1)
238public override AsyncCompletionResult BeginWrite(byte[] buffer, int offset, int size, bool immediate, TimeSpan timeout, Action<object> callback, object state)
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\CoreClrSocketConnection.cs (3)
26private static Action<object> s_onWaitForFinComplete = new Action<object>(OnWaitForFinComplete); 368Action<object> callback, object state) 627Action<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\HttpChannelFactory.cs (1)
862private static readonly Action<object> s_cancelCts = state =>
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
107private static Action<object> s_onIdle;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (4)
1997private static Action<object> s_signalWaiter = new Action<object>(SignalWaiter); 2263private static Action<object> s_timerCallback = new Action<object>(TimerCallback); 2337private static Action<object> s_timerCallback; 2396private static Action<object> GetTimerCallback()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (2)
172Action<IAsyncResult> endCallDelegate = (asyncResult) => 214Action<IAsyncResult> endCallDelegate = (asyncResult) =>
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (8)
31protected Action<object> _asyncReadCallback; 37protected Action<object> _asyncWriteCallback; 275Action<object> callback, object state) 288Action<object> callback, object state); 299Action<object> asyncWriteCallback = _asyncWriteCallback; 343Action<object> callback, object state) 359Action<object> callback, object state); 368Action<object> asyncReadCallback = _asyncReadCallback;
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)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (1)
16private static Action<object> s_tryReceive = new Action<object>(BufferedReceiveBinder.TryReceive);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (4)
33private static Action<object> s_onContinueAsyncReceive = new Action<object>(ChannelHandler.OnContinueAsyncReceive); 34private static Action<object> s_onStartSyncMessagePump = new Action<object>(ChannelHandler.OnStartSyncMessagePump); 35private static Action<object> s_onStartAsyncMessagePump = new Action<object>(ChannelHandler.OnStartAsyncMessagePump); 36private static Action<object> s_openAndEnsurePump = new Action<object>(ChannelHandler.OpenAndEnsurePump);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
801private static Action<object> s_timerCallback = new Action<object>(AsyncDuplexRequest.TimerCallback); 1035private static Action<object> s_receiveThreadSchedulerCallback;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ListenerHandler.cs (1)
16private static Action<object> s_initiateChannelPump = new Action<object>(ListenerHandler.InitiateChannelPump);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ThreadBehavior.cs (2)
16private static Action<object> s_cleanThreadCallback; 47private static Action<object> CleanThreadCallbackDelegate
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (3)
1058private static readonly Action<object> s_scheduledCallback = new Action<object>(OnScheduled); 1060private Action<TimeSpan> _operationWithTimeout; 1062public OperationWithTimeoutAsyncResult(Action<TimeSpan> operationWithTimeout, TimeSpan timeout, AsyncCallback callback, object state)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (2)
15private static Action<object> s_purgeCallback; 47private static Action<object> PurgeCallback
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)
Metadata\ServiceDescriptor.cs (2)
93public async Task ImportMetadataAsync(Action<WsdlImporter> onWsdlImporterCreated, Action<ServiceDescriptor> onBeforeMetadataImport, Func<ServiceDescriptor, bool> onAfterMetadataImport, CancellationToken cancellationToken)
dotnet-user-jwts (5)
Commands\ProjectCommandLineApplication.cs (1)
33public ProjectCommandLineApplication Command(string name, Action<ProjectCommandLineApplication> configuration)
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)
Program.cs (4)
1216Action<StringBuilder> startRulesetOrEditorconfig, 1217Action<StringBuilder> endRulesetOrEditorconfig, 1218Action<StringBuilder> startRulesSection, 1219Action<StringBuilder> endRulesSection,
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
GetDocument.Insider (10)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-rc.1.25420.121\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (6)
65Action<object>? configureHostBuilder = null, 66Action<Exception?>? entrypointCompleted = null) 205private readonly Action<object>? _configure; 206private readonly Action<Exception?>? _entrypointCompleted; 209public HostingListener(string[] args, MethodInfo entryPoint, TimeSpan waitTimeout, bool stopApplication, Action<object>? configure, Action<Exception?>? entrypointCompleted)
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)
ProcessUtil.cs (3)
78Action<string>? outputDataReceived = null, 79Action<string>? errorDataReceived = null, 80Action<int>? onStart = null,
http2cat (4)
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
13public static IServiceCollection UseHttp2Cat(this IServiceCollection services, Action<Http2CatOptions> configureOptions)
src\Shared\Http2cat\Http2Utilities.cs (2)
897internal Task ReceiveHeadersAsync(int expectedStreamId, Action<IDictionary<string, string>> verifyHeaders = null) 900internal async Task ReceiveHeadersAsync(int expectedStreamId, bool endStream = false, Action<IDictionary<string, string>> verifyHeaders = null)
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
IdeCoreBenchmarks (2)
IncrementalSourceGeneratorBenchmarks.cs (2)
182private readonly Action<IncrementalGeneratorInitializationContext> _registerPipelineCallback; 184public PipelineCallbackGenerator(Action<IncrementalGeneratorInitializationContext> registerPipelineCallback)
Identity.DefaultUI.WebSite (1)
Services\ContosoAuthenticationBuilderExtensions.cs (1)
12Action<ContosoAuthenticationOptions> configure) =>
IIS.FunctionalTests (8)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
41public static async Task StressLoad(HttpClient httpClient, string path, Action<HttpResponseMessage> action) 97public static void ModifyWebConfig(this DeploymentResult deploymentResult, Action<XElement> action)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
21private readonly Action<IISDeploymentParameters> _configure; 29internal IISTestSiteFixture(Action<IISDeploymentParameters> configure)
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
13public static IServiceCollection UseHttp2Cat(this IServiceCollection services, Action<Http2CatOptions> configureOptions)
src\Shared\Http2cat\Http2Utilities.cs (2)
897internal Task ReceiveHeadersAsync(int expectedStreamId, Action<IDictionary<string, string>> verifyHeaders = null) 900internal async Task ReceiveHeadersAsync(int expectedStreamId, bool endStream = false, Action<IDictionary<string, string>> verifyHeaders = null)
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
IIS.LongTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
41public static async Task StressLoad(HttpClient httpClient, string path, Action<HttpResponseMessage> action) 97public static void ModifyWebConfig(this DeploymentResult deploymentResult, Action<XElement> action)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
21private readonly Action<IISDeploymentParameters> _configure; 29internal IISTestSiteFixture(Action<IISDeploymentParameters> configure)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
547private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations(); 571public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations() 573var dictionary = new Dictionary<string, (string, Action<XElement>)>();
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
13public static IServiceCollection UseHttp2Cat(this IServiceCollection services, Action<Http2CatOptions> configureOptions)
src\Shared\Http2cat\Http2Utilities.cs (2)
897internal Task ReceiveHeadersAsync(int expectedStreamId, Action<IDictionary<string, string>> verifyHeaders = null) 900internal async Task ReceiveHeadersAsync(int expectedStreamId, bool endStream = false, Action<IDictionary<string, string>> verifyHeaders = null)
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
IIS.NewHandler.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
41public static async Task StressLoad(HttpClient httpClient, string path, Action<HttpResponseMessage> action) 97public static void ModifyWebConfig(this DeploymentResult deploymentResult, Action<XElement> action)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
21private readonly Action<IISDeploymentParameters> _configure; 29internal IISTestSiteFixture(Action<IISDeploymentParameters> configure)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
547private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations(); 571public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations() 573var dictionary = new Dictionary<string, (string, Action<XElement>)>();
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
13public static IServiceCollection UseHttp2Cat(this IServiceCollection services, Action<Http2CatOptions> configureOptions)
src\Shared\Http2cat\Http2Utilities.cs (2)
897internal Task ReceiveHeadersAsync(int expectedStreamId, Action<IDictionary<string, string>> verifyHeaders = null) 900internal async Task ReceiveHeadersAsync(int expectedStreamId, bool endStream = false, Action<IDictionary<string, string>> verifyHeaders = null)
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
IIS.NewShim.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
41public static async Task StressLoad(HttpClient httpClient, string path, Action<HttpResponseMessage> action) 97public static void ModifyWebConfig(this DeploymentResult deploymentResult, Action<XElement> action)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
21private readonly Action<IISDeploymentParameters> _configure; 29internal IISTestSiteFixture(Action<IISDeploymentParameters> configure)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
547private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations(); 571public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations() 573var dictionary = new Dictionary<string, (string, Action<XElement>)>();
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
13public static IServiceCollection UseHttp2Cat(this IServiceCollection services, Action<Http2CatOptions> configureOptions)
src\Shared\Http2cat\Http2Utilities.cs (2)
897internal Task ReceiveHeadersAsync(int expectedStreamId, Action<IDictionary<string, string>> verifyHeaders = null) 900internal async Task ReceiveHeadersAsync(int expectedStreamId, bool endStream = false, Action<IDictionary<string, string>> verifyHeaders = null)
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
IIS.ShadowCopy.Tests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
41public static async Task StressLoad(HttpClient httpClient, string path, Action<HttpResponseMessage> action) 97public static void ModifyWebConfig(this DeploymentResult deploymentResult, Action<XElement> action)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
21private readonly Action<IISDeploymentParameters> _configure; 29internal IISTestSiteFixture(Action<IISDeploymentParameters> configure)
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
IIS.Tests (3)
Utilities\TestServer.cs (3)
45private readonly Action<IApplicationBuilder> _appBuilder; 61private TestServer(Action<IApplicationBuilder> appBuilder, ILoggerFactory loggerFactory, bool isHttps) 70public static async Task<TestServer> Create(Action<IApplicationBuilder> appBuilder, ILoggerFactory loggerFactory, IISServerOptions options, bool isHttps = false)
IISExpress.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
41public static async Task StressLoad(HttpClient httpClient, string path, Action<HttpResponseMessage> action) 97public static void ModifyWebConfig(this DeploymentResult deploymentResult, Action<XElement> action)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (2)
21private readonly Action<IISDeploymentParameters> _configure; 29internal IISTestSiteFixture(Action<IISDeploymentParameters> configure)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
547private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations(); 571public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations() 573var dictionary = new Dictionary<string, (string, Action<XElement>)>();
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
13public static IServiceCollection UseHttp2Cat(this IServiceCollection services, Action<Http2CatOptions> configureOptions)
src\Shared\Http2cat\Http2Utilities.cs (2)
897internal Task ReceiveHeadersAsync(int expectedStreamId, Action<IDictionary<string, string>> verifyHeaders = null) 900internal async Task ReceiveHeadersAsync(int expectedStreamId, bool endStream = false, Action<IDictionary<string, string>> verifyHeaders = null)
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
illink (16)
ILLink.RoslynAnalyzer (34)
DynamicallyAccessedMembersTypeHierarchy.cs (1)
19Action<Diagnostic> reportDiagnostic)
RequiresAnalyzerBase.cs (7)
37private protected virtual ImmutableArray<(Action<SyntaxNodeAnalysisContext> Action, SyntaxKind[] SyntaxKind)> ExtraSyntaxNodeActions { get; } = ImmutableArray<(Action<SyntaxNodeAnalysisContext> Action, SyntaxKind[] SyntaxKind)>.Empty; 38private protected virtual ImmutableArray<(Action<SymbolAnalysisContext> Action, SymbolKind[] SymbolKind)> ExtraSymbolActions { get; } = ImmutableArray<(Action<SymbolAnalysisContext> Action, SymbolKind[] SymbolKind)>.Empty; 39private protected virtual ImmutableArray<Action<CompilationAnalysisContext>> ExtraCompilationActions { get; } = ImmutableArray<Action<CompilationAnalysisContext>>.Empty; 173foreach (var extraCompilationAction in ExtraCompilationActions)
RequiresDynamicCodeAnalyzer.cs (2)
167private protected override ImmutableArray<Action<CompilationAnalysisContext>> ExtraCompilationActions => 168ImmutableArray.Create<Action<CompilationAnalysisContext>>((context) =>
RequiresUnreferencedCodeAnalyzer.cs (2)
81private protected override ImmutableArray<Action<CompilationAnalysisContext>> ExtraCompilationActions => 82ImmutableArray.Create<Action<CompilationAnalysisContext>>((context) =>
TrimAnalysis\DiagnosticContext.cs (2)
17private readonly Action<Diagnostic>? _reportDiagnostic; 19public DiagnosticContext(Location location, Action<Diagnostic>? reportDiagnostic)
TrimAnalysis\FeatureCheckReturnValuePattern.cs (1)
33public void ReportDiagnostics(DataFlowAnalyzerContext context, Action<Diagnostic> reportDiagnostic)
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)
TrimAnalysis\HandleCallAction.cs (1)
36Action<Diagnostic>? reportDiagnostic)
TrimAnalysis\ReflectionAccessAnalyzer.cs (2)
17readonly Action<Diagnostic>? _reportDiagnostic; 24Action<Diagnostic>? reportDiagnostic,
TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (2)
18readonly Action<Diagnostic>? _reportDiagnostic; 27Action<Diagnostic>? reportDiagnostic,
TrimAnalysis\TrimAnalysisAssignmentPattern.cs (1)
55public void ReportDiagnostics(DataFlowAnalyzerContext context, Action<Diagnostic> reportDiagnostic)
TrimAnalysis\TrimAnalysisBackingFieldAccessPattern.cs (1)
48public void ReportDiagnostics(DataFlowAnalyzerContext context, Action<Diagnostic> reportDiagnostic)
TrimAnalysis\TrimAnalysisFieldAccessPattern.cs (1)
47public void ReportDiagnostics(DataFlowAnalyzerContext context, Action<Diagnostic> reportDiagnostic)
TrimAnalysis\TrimAnalysisGenericInstantiationPattern.cs (1)
46public void ReportDiagnostics(DataFlowAnalyzerContext context, Action<Diagnostic> reportDiagnostic)
TrimAnalysis\TrimAnalysisMethodCallPattern.cs (1)
78public void ReportDiagnostics(DataFlowAnalyzerContext context, Action<Diagnostic> reportDiagnostic)
TrimAnalysis\TrimAnalysisPatternStore.cs (1)
125public void ReportDiagnostics(DataFlowAnalyzerContext context, Action<Diagnostic> reportDiagnostic)
TrimAnalysis\TrimAnalysisReflectionAccessPattern.cs (1)
46public void ReportDiagnostics(DataFlowAnalyzerContext context, Action<Diagnostic> reportDiagnostic)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
374Action<Diagnostic>? reportDiagnostic,
TrimAnalysis\TrimDataFlowAnalysis.cs (1)
55public void ReportDiagnostics(Action<Diagnostic> reportDiagnostic)
Infrastructure.Common (2)
TestEventListener.cs (2)
18private Action<EventWrittenEventArgs> _eventWritten; 33public new Action<EventWrittenEventArgs> EventWritten
InMemory.FunctionalTests (12)
BadHttpRequestTests.cs (2)
292private Action<KeyValuePair<string, object>> _callback; 296public BadRequestEventListener(DiagnosticListener diagnosticListener, Action<KeyValuePair<string, object>> callback)
Http2\PipeReaderFactory.cs (1)
15private static readonly Action<object> _cancelReader = state => ((PipeReader)state).CancelPendingRead();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (4)
630internal async Task WaitForStreamErrorAsync(Http3ErrorCode protocolError, Action<string> matchExpectedErrorMessage = null, string expectedErrorMessage = null) 1084public void OnHeartbeat(Action<object> action, object state) 1096private readonly record struct CloseAction(Action<object> Callback, object State); 1278public void OnClosed(Action<object> callback, object state)
TestTransport\InMemoryTransportConnection.cs (1)
195public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)
TestTransport\TestServer.cs (4)
54public TestServer(RequestDelegate app, TestServiceContext context, Action<ListenOptions> configureListenOptions) 69public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel, Action<IServiceCollection> configureServices) 116public InMemoryConnection CreateConnection(Encoding encoding = null, Action<IFeatureCollection> featuresAction = null)
IntegrationTestsWebsite (1)
Infrastructure\DynamicServiceModelProvider.cs (1)
11public Action<ServiceMethodProviderContext<DynamicService>>? CreateMethod { get; set; }
Interop.FunctionalTests (5)
Http2\Http2RequestTests.cs (1)
326private IHostBuilder CreateHostBuilder(RequestDelegate requestDelegate, HttpProtocols? protocol = null, Action<KestrelServerOptions> configureKestrel = null, bool? plaintext = null)
Http3\Http3RequestTests.cs (1)
2358private IHostBuilder CreateHostBuilder(RequestDelegate requestDelegate, HttpProtocols? protocol = null, Action<KestrelServerOptions> configureKestrel = null, TimeSpan? shutdownTimeout = null)
Http3\Http3TlsTests.cs (1)
524private IHostBuilder CreateHostBuilder(RequestDelegate requestDelegate, HttpProtocols? protocol = null, Action<KestrelServerOptions> configureKestrel = null)
HttpHelpers.cs (2)
66public static IHostBuilder CreateHostBuilder(Action<IServiceCollection> configureServices, RequestDelegate requestDelegate, HttpProtocols? protocol = null, Action<KestrelServerOptions> configureKestrel = null, bool? plaintext = null, TimeSpan? shutdownTimeout = null)
Metrics (44)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Metrics.Legacy (44)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Microsoft.Arcade.Common (11)
Command.cs (9)
20private Action<string> _statusForward; 25private Action<string> _stdOutForward; 26private Action<string> _stdErrForward; 28private Action<string> _stdOutHandler; 29private Action<string> _stdErrHandler; 190public ICommand OnOutputLine(Action<string> handler) 202public ICommand OnErrorLine(Action<string> handler) 256private void ProcessData(string data, StringWriter capture, Action<string> forward, Action<string> handler)
ICommand.cs (2)
19ICommand OnErrorLine(Action<string> handler); 20ICommand OnOutputLine(Action<string> handler);
Microsoft.AspNetCore (26)
BootstrapHostBuilder.cs (3)
16private readonly List<Action<IConfigurationBuilder>> _configureHostActions = new(); 43public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate) 87foreach (var configureHostAction in _configureHostActions)
ConfigureHostBuilder.cs (3)
62public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate) 117IHostBuilder ISupportsConfigureWebHost.ConfigureWebHost(Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureOptions)
ConfigureWebHostBuilder.cs (2)
98public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices) 168IWebHostBuilder ISupportsStartup.Configure(Action<IApplicationBuilder> configure)
ForwardedHeadersStartupFilter.cs (2)
19public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
GenericHostBuilderExtensions.cs (3)
32public static IHostBuilder ConfigureWebHostDefaults(this IHostBuilder builder, Action<IWebHostBuilder> configure) 58public static IHostBuilder ConfigureWebHostDefaults(this IHostBuilder builder, Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureOptions)
HostFilteringStartupFilter.cs (2)
11public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
WebApplicationBuilder.cs (4)
34internal WebApplicationBuilder(WebApplicationOptions options, Action<IHostBuilder>? configureDefaults = null) 80internal WebApplicationBuilder(WebApplicationOptions options, bool slim, Action<IHostBuilder>? configureDefaults = null) 148internal WebApplicationBuilder(WebApplicationOptions options, bool slim, bool empty, Action<IHostBuilder>? configureDefaults = null) 484void IHostApplicationBuilder.ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory, Action<TContainerBuilder>? configure) =>
WebHost.cs (7)
55public static IWebHost Start(Action<IRouteBuilder> routeBuilder) => 65public static IWebHost Start([StringSyntax(StringSyntaxAttribute.Uri)] string url, Action<IRouteBuilder> routeBuilder) 77public static IWebHost StartWith(Action<IApplicationBuilder> app) => 87public static IWebHost StartWith([StringSyntax(StringSyntaxAttribute.Uri)] string url, Action<IApplicationBuilder> app) => 90private static IWebHost StartWith(string? url, Action<IServiceCollection>? configureServices, Action<IApplicationBuilder> app, string? applicationName) 252private static void ConfigureWebDefaultsWorker(IWebHostBuilder builder, Action<IServiceCollection>? configureRouting)
Microsoft.AspNetCore.Antiforgery (2)
AntiforgeryServiceCollectionExtensions.cs (2)
53/// <param name="setupAction">An <see cref="Action{AntiforgeryOptions}"/> to configure the provided <see cref="AntiforgeryOptions"/>.</param> 55public static IServiceCollection AddAntiforgery(this IServiceCollection services, Action<AntiforgeryOptions> setupAction)
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)
AuthenticationServiceCollectionExtensions.cs (1)
51public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, Action<AuthenticationOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationOptions.cs (1)
32public void AddScheme(string name, Action<AuthenticationSchemeBuilder> configureBuilder)
Microsoft.AspNetCore.Authentication.BearerToken (2)
BearerTokenExtensions.cs (2)
49public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder, Action<BearerTokenOptions> configure) 62public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder, string authenticationScheme, Action<BearerTokenOptions> configure)
Microsoft.AspNetCore.Authentication.Certificate (3)
CertificateAuthenticationExtensions.cs (3)
54public static AuthenticationBuilder AddCertificate(this AuthenticationBuilder builder, Action<CertificateAuthenticationOptions>? configureOptions) 72Action<CertificateAuthenticationOptions>? configureOptions) 88Action<CertificateValidationCacheOptions>? configureOptions = null)
Microsoft.AspNetCore.Authentication.Cookies (3)
CookieExtensions.cs (3)
50public static AuthenticationBuilder AddCookie(this AuthenticationBuilder builder, Action<CookieAuthenticationOptions> configureOptions) 63public static AuthenticationBuilder AddCookie(this AuthenticationBuilder builder, string authenticationScheme, Action<CookieAuthenticationOptions> configureOptions) 77public static AuthenticationBuilder AddCookie(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<CookieAuthenticationOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationCoreServiceCollectionExtensions.cs (1)
38public static IServiceCollection AddAuthenticationCore(this IServiceCollection services, Action<AuthenticationOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Facebook (3)
FacebookExtensions.cs (3)
36public static AuthenticationBuilder AddFacebook(this AuthenticationBuilder builder, Action<FacebookOptions> configureOptions) 50public static AuthenticationBuilder AddFacebook(this AuthenticationBuilder builder, string authenticationScheme, Action<FacebookOptions> configureOptions) 64public static AuthenticationBuilder AddFacebook(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<FacebookOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Google (3)
GoogleExtensions.cs (3)
36public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder builder, Action<GoogleOptions> configureOptions) 50public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder builder, string authenticationScheme, Action<GoogleOptions> configureOptions) 65public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<GoogleOptions> configureOptions)
Microsoft.AspNetCore.Authentication.JwtBearer (3)
JwtBearerExtensions.cs (3)
48public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, Action<JwtBearerOptions> configureOptions) 61public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, Action<JwtBearerOptions> configureOptions) 75public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<JwtBearerOptions> configureOptions)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (3)
MicrosoftAccountExtensions.cs (3)
36public static AuthenticationBuilder AddMicrosoftAccount(this AuthenticationBuilder builder, Action<MicrosoftAccountOptions> configureOptions) 50public static AuthenticationBuilder AddMicrosoftAccount(this AuthenticationBuilder builder, string authenticationScheme, Action<MicrosoftAccountOptions> configureOptions) 65public static AuthenticationBuilder AddMicrosoftAccount(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<MicrosoftAccountOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Negotiate (6)
Internal\NegotiateOptionsValidationStartupFilter.cs (2)
20public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
NegotiateExtensions.cs (3)
40public static AuthenticationBuilder AddNegotiate(this AuthenticationBuilder builder, Action<NegotiateOptions> configureOptions) 54public static AuthenticationBuilder AddNegotiate(this AuthenticationBuilder builder, string authenticationScheme, Action<NegotiateOptions> configureOptions) 69public static AuthenticationBuilder AddNegotiate(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<NegotiateOptions> configureOptions)
NegotiateOptions.cs (1)
66public void EnableLdap(Action<LdapSettings> configureSettings)
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
EventTests.cs (1)
409private static async Task<IHost> CreateHostAsync(Action<NegotiateOptions> configureOptions = null)
NegotiateHandlerTests.cs (1)
387private static async Task<IHost> CreateHostAsync(Action<NegotiateOptions> configureOptions = null)
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)
OpenIdConnectExtensions.cs (3)
40public static AuthenticationBuilder AddOpenIdConnect(this AuthenticationBuilder builder, Action<OpenIdConnectOptions> configureOptions) 54public static AuthenticationBuilder AddOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, Action<OpenIdConnectOptions> configureOptions) 69public static AuthenticationBuilder AddOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<OpenIdConnectOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Test (38)
AuthenticationMiddlewareTests.cs (1)
201Action<IServiceCollection> registerServices = null,
BearerTokenTests.cs (1)
22protected override void RegisterAuth(AuthenticationBuilder services, Action<BearerTokenOptions> configure)
CookieTests.cs (3)
32protected override void RegisterAuth(AuthenticationBuilder services, Action<CookieAuthenticationOptions> configure) 1850private Task<IHost> CreateHost(Action<CookieAuthenticationOptions> configureOptions, Func<HttpContext, Task> testpath = null, Uri baseAddress = null, bool claimsTransform = false) 1864private static async Task<IHost> CreateHostWithServices(Action<IServiceCollection> configureServices, Func<HttpContext, Task> testpath = null, Uri baseAddress = null)
DynamicSchemeTests.cs (1)
129private static async Task<IHost> CreateHost(Action<IServiceCollection> configureServices = null)
FacebookTests.cs (3)
29protected override void RegisterAuth(AuthenticationBuilder services, Action<FacebookOptions> configure) 462private static async Task<IHost> CreateHost(Action<IApplicationBuilder> configure, Action<IServiceCollection> configureServices, Func<HttpContext, Task<bool>> handler)
GoogleTests.cs (2)
29protected override void RegisterAuth(AuthenticationBuilder services, Action<GoogleOptions> configure) 1151private static async Task<IHost> CreateHost(Action<GoogleOptions> configureOptions, Func<HttpContext, Task> testpath = null)
JwtBearerTests.cs (4)
34protected override void RegisterAuth(AuthenticationBuilder services, Action<JwtBearerOptions> configure) 1108private readonly Action<string> _tokenValidator; 1115public BlobTokenValidator(string authenticationScheme, Action<string> tokenValidator) 1157private static async Task<IHost> CreateHost(Action<JwtBearerOptions> options = null, Func<HttpContext, Func<Task>, Task> handlerBeforeAuth = null)
JwtBearerTests_Handler.cs (4)
34protected override void RegisterAuth(AuthenticationBuilder services, Action<JwtBearerOptions> configure = null) 1182private readonly Action<string> _tokenValidator; 1189public BlobTokenValidator(string authenticationScheme, Action<string> tokenValidator) 1225private static async Task<IHost> CreateHost(Action<JwtBearerOptions> options = null, Func<HttpContext, Func<Task>, Task> handlerBeforeAuth = null)
MicrosoftAccountTests.cs (2)
30protected override void RegisterAuth(AuthenticationBuilder services, Action<MicrosoftAccountOptions> configure) 362private static async Task<IHost> CreateHost(Action<MicrosoftAccountOptions> configureOptions)
OAuthTests.cs (2)
25protected override void RegisterAuth(AuthenticationBuilder services, Action<OAuthOptions> configure) 518private static async Task<IHost> CreateHost(Action<IServiceCollection> configureServices, Func<HttpContext, Task<bool>> handler = null)
OpenIdConnect\OpenIdConnectConfigurationTests.cs (3)
554private TestServer BuildTestServer(Action<OpenIdConnectOptions> options) 572Action<OpenIdConnectOptions> options, 573Action<T> verifyException)
OpenIdConnect\TestServerBuilder.cs (3)
36public static OpenIdConnectOptions CreateOpenIdConnectOptions(Action<OpenIdConnectOptions> update) 54public static TestServer CreateServer(Action<OpenIdConnectOptions> options) 60Action<OpenIdConnectOptions> options,
OpenIdConnect\TestSettings.cs (2)
22private readonly Action<OpenIdConnectOptions> _configureOptions; 29public TestSettings(Action<OpenIdConnectOptions> configure, HttpMessageHandler backchannel = null)
PolicyTests.cs (1)
461private static async Task<TestServer> CreateServer(Action<IServiceCollection> configure = null, string defaultScheme = null)
RemoteAuthenticationTests.cs (2)
18private Task<IHost> CreateHost(Action<TOptions> configureOptions, Func<HttpContext, Task> testpath = null, bool isDefault = true) 34protected virtual async Task<IHost> CreateHostWithServices(Action<IServiceCollection> configureServices, Func<HttpContext, Task> testpath = null)
SharedAuthenticationTests.cs (1)
24protected abstract void RegisterAuth(AuthenticationBuilder services, Action<TOptions> configure);
TwitterTests.cs (3)
28protected override void RegisterAuth(AuthenticationBuilder services, Action<TwitterOptions> configure) 542private static async Task<IHost> CreateHost(Action<TwitterOptions> options, Func<HttpContext, Task<bool>> handler = null) 584Action<TwitterOptions> wrapOptions = o =>
Microsoft.AspNetCore.Authentication.Twitter (3)
TwitterExtensions.cs (3)
38public static AuthenticationBuilder AddTwitter(this AuthenticationBuilder builder, Action<TwitterOptions> configureOptions) 52public static AuthenticationBuilder AddTwitter(this AuthenticationBuilder builder, string authenticationScheme, Action<TwitterOptions> configureOptions) 67public static AuthenticationBuilder AddTwitter(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<TwitterOptions> configureOptions)
Microsoft.AspNetCore.Authentication.WsFederation (3)
WsFederationExtensions.cs (3)
30public static AuthenticationBuilder AddWsFederation(this AuthenticationBuilder builder, Action<WsFederationOptions> configureOptions) 40public static AuthenticationBuilder AddWsFederation(this AuthenticationBuilder builder, string authenticationScheme, Action<WsFederationOptions> configureOptions) 51public static AuthenticationBuilder AddWsFederation(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<WsFederationOptions> configureOptions)
Microsoft.AspNetCore.Authorization (5)
AuthorizationBuilder.cs (3)
85public virtual AuthorizationBuilder AddPolicy(string name, Action<AuthorizationPolicyBuilder> configurePolicy) 109public virtual AuthorizationBuilder AddDefaultPolicy(string name, Action<AuthorizationPolicyBuilder> configurePolicy) 136public virtual AuthorizationBuilder AddFallbackPolicy(string name, Action<AuthorizationPolicyBuilder> configurePolicy)
AuthorizationOptions.cs (1)
67public void AddPolicy(string name, Action<AuthorizationPolicyBuilder> configurePolicy)
AuthorizationServiceCollectionExtensions.cs (1)
48public static IServiceCollection AddAuthorizationCore(this IServiceCollection services, Action<AuthorizationOptions> configure)
Microsoft.AspNetCore.Authorization.Policy (3)
AuthorizationEndpointConventionBuilderExtensions.cs (1)
103public static TBuilder RequireAuthorization<TBuilder>(this TBuilder builder, Action<AuthorizationPolicyBuilder> configurePolicy)
PolicyServiceCollectionExtensions.cs (1)
59public static IServiceCollection AddAuthorization(this IServiceCollection services, Action<AuthorizationOptions> configure)
src\Http\Routing\src\DataSourceDependentCache.cs (1)
18private readonly Action<object?> _initializerWithState;
Microsoft.AspNetCore.Authorization.Test (18)
AuthorizationEndpointConventionBuilderExtensionsTests.cs (13)
23var convention = Assert.Single(builder.Conventions); 41var convention = Assert.Single(builder.Conventions); 60var convention = Assert.Single(builder.Conventions); 79var convention = Assert.Single(builder.Conventions); 98var convention = Assert.Single(builder.Conventions); 131var convention = Assert.Single(builder.Conventions); 154var convention = Assert.Single(builder.Conventions); 180var convention = Assert.Single(builder.Conventions); 206var convention = Assert.Single(builder.Conventions); 230var convention = Assert.Single(builder.Conventions); 253public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 256public void Add(Action<EndpointBuilder> convention)
AuthorizationMetricsTest.cs (1)
172private static IAuthorizationService BuildAuthorizationService(TestMeterFactory meterFactory, Action<IServiceCollection> setupServices = null)
AuthorizationMiddlewareTests.cs (1)
1008Action<IServiceCollection> registerServices = null,
DefaultAuthorizationServiceTests.cs (1)
14private IAuthorizationService BuildAuthorizationService(Action<IServiceCollection> setupServices = null)
PassThroughAuthorizationHandlerTests.cs (1)
12private IAuthorizationService BuildAuthorizationService(Action<IServiceCollection> setupServices = null)
PolicyEvaluatorTests.cs (1)
159private IPolicyEvaluator BuildEvaluator(Action<IServiceCollection> setupServices = null)
Microsoft.AspNetCore.AzureAppServicesIntegration.Tests (1)
AppServicesWebHostBuilderExtensionsTest.cs (1)
18mock.Verify(builder => builder.ConfigureServices(It.IsNotNull<Action<IServiceCollection>>()), Times.Once);
Microsoft.AspNetCore.Components (59)
CompilerServices\RuntimeHelpers.cs (2)
34public static EventCallback<T> CreateInferredEventCallback<T>(object receiver, Action<T> callback, T value) 94public static Func<T, Task> CreateInferredBindSetter<T>(Action<T?> callback, T value)
EventCallbackFactory.cs (3)
49public EventCallback Create(object receiver, Action<object> callback) 133public EventCallback<TValue> Create<TValue>(object receiver, Action<TValue> callback) 177public EventCallback<TValue> CreateInferred<TValue>(object receiver, Action<TValue> callback, TValue value)
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 =>
EventCallbackFactoryEventArgsExtensions.cs (2)
19public static EventCallback<EventArgs> Create(this EventCallbackFactory factory, object receiver, Action<EventArgs> callback) 49public static EventCallback<ChangeEventArgs> Create(this EventCallbackFactory factory, object receiver, Action<ChangeEventArgs> callback)
EventCallbackWorkItem.cs (1)
50case Action<T> actionEventArgs:
Rendering\RendererSynchronizationContext.cs (3)
191private async Task PostAsync<TState>(Task antecedent, Action<TState> callback, TState state) 211private void SendIfQuiescedOrElsePost<TState>(Action<TState> callback, TState state) 236Action<TState> callback,
Rendering\RenderTreeBuilder.cs (2)
592public void AddElementReferenceCapture(int sequence, Action<ElementReference> elementReferenceCaptureAction) 608public void AddComponentReferenceCapture(int sequence, Action<object> componentReferenceCaptureAction)
RenderTree\RenderTreeFrame.cs (8)
209[FieldOffset(24)] internal Action<ElementReference> ElementReferenceCaptureActionField; 221public Action<ElementReference> ElementReferenceCaptureAction => ElementReferenceCaptureActionField; 228[FieldOffset(16)] internal Action<object> ComponentReferenceCaptureActionField; 246public Action<object> ComponentReferenceCaptureAction => ComponentReferenceCaptureActionField; 371private RenderTreeFrame(int sequence, Action<ElementReference> elementReferenceCaptureAction, string elementReferenceCaptureId) 381private RenderTreeFrame(int sequence, Action<object> componentReferenceCaptureAction, int parentFrameIndex) 411internal static RenderTreeFrame ElementReferenceCapture(int sequence, Action<ElementReference> elementReferenceCaptureAction) 414internal static RenderTreeFrame ComponentReferenceCapture(int sequence, Action<object> componentReferenceCaptureAction, int parentFrameIndex)
RenderTree\RenderTreeFrameArrayBuilder.cs (2)
93public void AppendElementReferenceCapture(int sequence, Action<ElementReference> elementReferenceCaptureAction) 108public void AppendComponentReferenceCapture(int sequence, Action<object> componentReferenceCaptureAction, int parentFrameIndexValue)
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)
src\Components\Shared\test\TestRenderer.cs (1)
37public Action<RenderBatch> OnUpdateDisplay { get; set; }
Microsoft.AspNetCore.Components.Endpoints (26)
Builder\RazorComponentEndpointDataSource.cs (5)
21private readonly List<Action<EndpointBuilder>> _conventions = []; 22private readonly List<Action<EndpointBuilder>> _finallyConventions = []; 39internal List<Action<EndpointBuilder>> Conventions => _conventions; 184foreach (var convention in _conventions) 189foreach (var convention in _finallyConventions)
Builder\RazorComponentEndpointFactory.cs (4)
26IReadOnlyList<Action<EndpointBuilder>> conventions, 27IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 60foreach (var convention in conventions) 65foreach (var finallyConvention in finallyConventions)
Builder\RazorComponentsEndpointConventionBuilder.cs (7)
19private readonly List<Action<EndpointBuilder>> _conventions; 20private readonly List<Action<EndpointBuilder>> _finallyConventions; 27List<Action<EndpointBuilder>> conventions, 28List<Action<EndpointBuilder>> finallyConventions) 49internal event Action<RazorComponentEndpointUpdateContext>? BeforeCreateEndpoints; 52public void Add(Action<EndpointBuilder> convention) 65public void Finally(Action<EndpointBuilder> finallyConvention)
Builder\RenderModeEndpointProvider.cs (4)
39List<Action<EndpointBuilder>> conventions, 40List<Action<EndpointBuilder>> finallyConventions) 46foreach (var convention in conventions) 51foreach (var finallyConvention in finallyConventions)
Builder\ResourcePreloadService.cs (2)
8private Action<List<PreloadAsset>>? handler; 10public void SetPreloadingHandler(Action<List<PreloadAsset>> handler)
DependencyInjection\HotReloadService.cs (2)
20private static event Action<Type[]?>? UpdateApplicationEvent; 21internal static event Action<Type[]?>? ClearCacheEvent;
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (2)
33/// <param name="configure">An <see cref="Action{RazorComponentOptions}"/> to configure the provided <see cref="RazorComponentsServiceOptions"/>.</param> 36public static IRazorComponentsBuilder AddRazorComponents(this IServiceCollection services, Action<RazorComponentsServiceOptions>? configure = null)
Microsoft.AspNetCore.Components.Endpoints.Tests (14)
Binding\FormDataMapperTests.cs (2)
2336public static event Action<int[]> OnRent; 2337public static event Action<int[]> OnReturn;
Builder\TestFileProvider\TestFileChangeToken.cs (1)
19public IDisposable RegisterChangeCallback(Action<object> callback, object state)
ImportMapTest.cs (1)
265public Action<RenderBatch> OnUpdateDisplay { get; set; }
RazorComponentEndpointFactoryTest.cs (10)
19var conventions = new List<Action<EndpointBuilder>>(); 20var finallyConventions = new List<Action<EndpointBuilder>>(); 59var conventions = new List<Action<EndpointBuilder>>() { 63var finallyConventions = new List<Action<EndpointBuilder>>(); 85var conventions = new List<Action<EndpointBuilder>>(); 87var finallyConventions = new List<Action<EndpointBuilder>>() 113var conventions = new List<Action<EndpointBuilder>>(); 115var finallyConventions = new List<Action<EndpointBuilder>>() 142var conventions = new List<Action<EndpointBuilder>>() 147var finallyConventions = new List<Action<EndpointBuilder>>()
Microsoft.AspNetCore.Components.Forms.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)
src\Components\Shared\test\TestRenderer.cs (1)
37public Action<RenderBatch> OnUpdateDisplay { get; set; }
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)
src\Components\Shared\test\TestRenderer.cs (1)
37public Action<RenderBatch> OnUpdateDisplay { get; set; }
Microsoft.AspNetCore.Components.Server (9)
Builder\ComponentEndpointConventionBuilder.cs (2)
29public void Add(Action<EndpointBuilder> convention) 37public void Finally(Action<EndpointBuilder> finalConvention)
Builder\ComponentEndpointRouteBuilderExtensions.cs (2)
52Action<HttpConnectionDispatcherOptions> configureOptions) 70Action<HttpConnectionDispatcherOptions> configureOptions)
Builder\ServerRazorComponentsEndpointConventionBuilderExtensions.cs (1)
35Action<ServerComponentsEndpointOptions> configure)
DependencyInjection\ComponentServiceCollectionExtensions.cs (1)
36public static IServerSideBlazorBuilder AddServerSideBlazor(this IServiceCollection services, Action<CircuitOptions>? configure = null)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
33public static IServerSideBlazorBuilder AddInteractiveServerComponents(this IRazorComponentsBuilder builder, Action<CircuitOptions>? configure = null)
DependencyInjection\ServerSideBlazorBuilderExtensions.cs (2)
20public static IServerSideBlazorBuilder AddCircuitOptions(this IServerSideBlazorBuilder builder, Action<CircuitOptions> configure) 36public static IServerSideBlazorBuilder AddHubOptions(this IServerSideBlazorBuilder builder, Action<HubOptions> configure)
Microsoft.AspNetCore.Components.Tests (118)
ComponentBaseTest.cs (2)
600public Action<TestComponent> OnInitLogic { get; set; } 604public Action<TestComponent> OnParametersSetLogic { get; set; }
EventCallbackFactoryBinderExtensionsTest.cs (34)
18Action<int> setter = (_) => value = _; 35Action<int> setter = (_) => value = _; 51Action<int> setter = (_) => { throw new InvalidTimeZoneException(); }; 70Action<int> setter = (_) => value = _; 87Action<int?> setter = (_) => value = _; 104Action<string> setter = (_) => value = _; 123Action<bool> setter = (_) => value = _; 142Action<bool?> setter = (_) => value = _; 161Action<int> setter = (_) => value = _; 180Action<int?> setter = (_) => value = _; 199Action<long> setter = (_) => value = _; 218Action<long?> setter = (_) => value = _; 237Action<float> setter = (_) => value = _; 256Action<float?> setter = (_) => value = _; 275Action<double> setter = (_) => value = _; 294Action<double?> setter = (_) => value = _; 313Action<decimal> setter = (_) => value = _; 332Action<decimal?> setter = (_) => value = _; 351Action<AttributeTargets> setter = (_) => value = _; 370Action<AttributeTargets?> setter = (_) => value = _; 389Action<DateTime> setter = (_) => value = _; 408Action<DateTime?> setter = (_) => value = _; 427Action<DateTime> setter = (_) => value = _; 447Action<DateTime?> setter = (_) => value = _; 467Action<DateTimeOffset> setter = (_) => value = _; 486Action<DateTimeOffset?> setter = (_) => value = _; 505Action<DateTimeOffset> setter = (_) => value = _; 525Action<DateTimeOffset?> setter = (_) => value = _; 546Action<Guid> setter = (_) => value = _; 566Action<Guid?> setter = (_) => value = _; 585Action<SecretMessage> setter = (_) => value = _; 603Action<ClassWithoutTypeConverter> setter = (_) => value = _; 620Action<int> setter = (_) => value = _; 639Action<int> setter = (_) => value = _;
EventCallbackFactoryTest.cs (16)
99var @delegate = (Action<string>)component.SomeActionOfT; 115var @delegate = (Action<string>)component.SomeActionOfT; 133var @delegate = (Action<string>)((s) => { }); 153var callback = EventCallback.Factory.Create(component, (Action<string>)null); 386var @delegate = (Action<string>)component.SomeActionOfT; 402var @delegate = (Action<string>)component.SomeActionOfT; 422var callback = EventCallback.Factory.Create<string>(component, (Action<string>)null); 435var @delegate = (Action<string>)((s) => { }); 587var @delegate = (Action<string>)((s) => { });
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);
ParameterViewTest.cs (1)
571private Action<ParameterValue> AssertParameter(string expectedName, object expectedValue, bool expectedIsCascading)
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; }
Rendering\RenderTreeBuilderTest.cs (18)
235Action<EventArgs> eventHandler = eventInfo => { }; 280Action<EventArgs> eventHandler = eventInfo => { }; 714Action<ElementReference> referenceCaptureAction = elementReference => { }; 782Action<ElementReference> referenceCaptureAction1 = elementReference => { }; 783Action<ElementReference> referenceCaptureAction2 = elementReference => { }; 803Action<object> myAction = elementReference => { }; 871Action<object> referenceCaptureAction1 = elementReference => { }; 872Action<object> referenceCaptureAction2 = elementReference => { }; 1060var value = new Action<EventArgs>((e) => { }); 1082builder.AddAttribute(1, "attr", (Action<EventArgs>)null); 1128public static TheoryData<Action<EventArgs>> EventHandlerValues => new TheoryData<Action<EventArgs>> 1136public void AddAttribute_Component_EventHandlerValue_SetsAttributeValue(Action<EventArgs> value) 1155public void AddComponentParameter_Component_EventHandlerValue_SetsAttributeValue(Action<EventArgs> value) 1463var value = new Action<EventArgs>((e) => { }); 1483var value = new Action<EventArgs>((e) => { }); 1837var capture = (Action<ElementReference>)((_) => { });
RenderTreeDiffBuilderTest.cs (11)
911Action<EventArgs> retainedHandler = _ => { }; 912Action<EventArgs> removedHandler = _ => { }; 913Action<EventArgs> addedHandler = _ => { }; 1651Action<EventArgs> retainedHandler = _ => { }; 1677Action<EventArgs> retainedHandler = _ => { }; 1842Action<ElementReference> capture1 = val => { ref1 = val; }; 1843Action<ElementReference> capture2 = val => { ref2 = val; }; 1883Action<ElementReference> capture1 = val => { ref1 = val; refWriteCount++; }; 1909Action<object> assigner1 = val => { capturedInstance1 = (FakeComponent)val; }; 1910Action<object> assigner2 = val => { capturedInstance2 = (FakeComponent)val; }; 1949Action<object> assigner = val => { capturedInstance = (FakeComponent)val; refWriteCount++; };
Routing\RouterTest.cs (5)
45Action<NavigationContext> OnNavigateAsync = async (NavigationContext args) => 64Action<NavigationContext> OnNavigateAsync = async (NavigationContext args) => 99Action<NavigationContext> OnNavigateAsync = async (NavigationContext args) => 135Action<NavigationContext> OnNavigateAsync = async (NavigationContext args) => 155Action<NavigationContext> OnNavigateAsync = async (NavigationContext args) =>
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)
src\Components\Shared\test\TestRenderer.cs (1)
37public Action<RenderBatch> OnUpdateDisplay { get; set; }
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)
Forms\EditFormTest.cs (1)
234public Action<EditContext> SubmitHandler { get; set; }
Forms\TestInputHostComponent.cs (1)
18public Action<TValue> ValueChanged { get; set; }
HtmlRendering\HtmlRendererTest.cs (3)
652rtb.AddAttribute(2, "change", pc.GetValueOrDefault<Action<ChangeEventArgs>>("update")); 659Action<ChangeEventArgs> change = (ChangeEventArgs changeArgs) => throw new InvalidOperationException(); 1413private IServiceProvider GetServiceProvider(Action<IServiceCollection> configure = null)
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)
src\Components\Shared\test\TestRenderer.cs (1)
37public Action<RenderBatch> OnUpdateDisplay { get; set; }
Virtualization\VirtualizeTest.cs (1)
112Action<Virtualize<TItem>> captureRenderedVirtualize = null)
Microsoft.AspNetCore.Components.WebAssembly (5)
Hosting\WebAssemblyCallQueue.cs (1)
46public static void Schedule<T>(T state, Action<T> callback)
Hosting\WebAssemblyHostBuilder.cs (3)
269/// <see cref="ConfigureContainer{TBuilder}(IServiceProviderFactory{TBuilder}, Action{TBuilder})"/> is called by <see cref="Build"/> 273/// Multiple calls to <see cref="ConfigureContainer{TBuilder}(IServiceProviderFactory{TBuilder}, Action{TBuilder})"/> will replace 277public void ConfigureContainer<TBuilder>(IServiceProviderFactory<TBuilder> factory, Action<TBuilder>? configure = null) where TBuilder : notnull
Hosting\WebassemblyHostBuilderExtensions.cs (1)
21Action<ServiceProviderOptions> configure)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Builder\WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs (1)
28Action<WebAssemblyComponentsEndpointOptions>? callback = null)
WebAssemblyRazorComponentsBuilderExtensions.cs (1)
41public static IRazorComponentsBuilder AddAuthenticationStateSerialization(this IRazorComponentsBuilder builder, Action<AuthenticationStateSerializationOptions>? configure = null)
Microsoft.AspNetCore.Components.WebView (3)
IpcSender.cs (2)
16private readonly Action<string> _messageDispatcher; 18public IpcSender(Dispatcher dispatcher, Action<string> messageDispatcher)
WebViewManager.cs (1)
176public async Task<bool> TryDispatchAsync(Action<IServiceProvider> workItem)
Microsoft.AspNetCore.Components.WebView.Maui (4)
BlazorWebView.cs (1)
89 public virtual async Task<bool> TryDispatchAsync(Action<IServiceProvider> workItem)
src\Core\src\TaskExtensions.cs (2)
13 Action<Exception>? errorCallback = null) 31 Action<Exception>? errorCallback = null
Standard\BlazorWebViewHandler.cs (1)
25 public virtual Task<bool> TryDispatchAsync(Action<IServiceProvider> workItem) => throw new NotSupportedException();
Microsoft.AspNetCore.Components.WebView.Photino (1)
BlazorWindow.cs (1)
30Action<PhotinoWindow>? configureWindow = null,
Microsoft.AspNetCore.Components.WebView.WindowsForms (8)
BlazorWebView.cs (1)
301 public virtual async Task<bool> TryDispatchAsync(Action<IServiceProvider> workItem)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (6)
67 private readonly Action<UrlLoadingEventArgs> _urlLoading; 68 private readonly Action<BlazorWebViewInitializingEventArgs> _blazorWebViewInitializing; 69 private readonly Action<BlazorWebViewInitializedEventArgs> _blazorWebViewInitialized; 94 Action<UrlLoadingEventArgs> urlLoading, 95 Action<BlazorWebViewInitializingEventArgs> blazorWebViewInitializing, 96 Action<BlazorWebViewInitializedEventArgs> blazorWebViewInitialized,
WindowsFormsDispatcher.cs (1)
18 private static Action<Exception> RethrowException = exception =>
Microsoft.AspNetCore.Components.WebView.Wpf (8)
BlazorWebView.cs (1)
361 public virtual async Task<bool> TryDispatchAsync(Action<IServiceProvider> workItem)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (6)
67 private readonly Action<UrlLoadingEventArgs> _urlLoading; 68 private readonly Action<BlazorWebViewInitializingEventArgs> _blazorWebViewInitializing; 69 private readonly Action<BlazorWebViewInitializedEventArgs> _blazorWebViewInitialized; 94 Action<UrlLoadingEventArgs> urlLoading, 95 Action<BlazorWebViewInitializingEventArgs> blazorWebViewInitializing, 96 Action<BlazorWebViewInitializedEventArgs> blazorWebViewInitialized,
WpfDispatcher.cs (1)
20 private static Action<Exception> RethrowException = exception =>
Microsoft.AspNetCore.ConcurrencyLimiter (2)
QueuePolicies\QueuePolicyServiceCollectionExtensions.cs (2)
20public static IServiceCollection AddQueuePolicy(this IServiceCollection services, Action<QueuePolicyOptions> configure) 34public static IServiceCollection AddStackPolicy(this IServiceCollection services, Action<QueuePolicyOptions> configure)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
MiddlewareTests.cs (1)
232public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)
Microsoft.AspNetCore.Connections.Abstractions (3)
Features\IConnectionHeartbeatFeature.cs (2)
16/// <param name="action">The <see cref="Action{T}"/> to invoke.</param> 18void OnHeartbeat(Action<object> action, object state);
Features\IStreamClosedFeature.cs (1)
20void OnClosed(Action<object?> callback, object? state);
Microsoft.AspNetCore.CookiePolicy (3)
CookiePolicyOptions.cs (2)
75public Action<AppendCookieContext>? OnAppendCookie { get; set; } 80public Action<DeleteCookieContext>? OnDeleteCookie { get; set; }
CookiePolicyServiceCollectionExtensions.cs (1)
19public static IServiceCollection AddCookiePolicy(this IServiceCollection services, Action<CookiePolicyOptions> configureOptions)
Microsoft.AspNetCore.CookiePolicy.Test (4)
CookieConsentTests.cs (2)
702private async Task<HttpContext> RunTestAsync(Action<CookiePolicyOptions> configureOptions, Action<HttpContext> configureRequest, RequestDelegate handleRequest)
CookiePolicyTests.cs (2)
505public RequestTest(string testUri, Action<Transaction> verify) 518public Action<Transaction> Verification { get; set; }
Microsoft.AspNetCore.Cors (6)
CorsServiceCollectionExtensions.cs (2)
35/// <param name="setupAction">An <see cref="Action{CorsOptions}"/> to configure the provided <see cref="CorsOptions"/>.</param> 37public static IServiceCollection AddCors(this IServiceCollection services, Action<CorsOptions> setupAction)
Infrastructure\CorsEndpointConventionBuilderExtensions.cs (1)
53public static TBuilder RequireCors<TBuilder>(this TBuilder builder, Action<CorsPolicyBuilder> configurePolicy) where TBuilder : IEndpointConventionBuilder
Infrastructure\CorsMiddlewareExtensions.cs (1)
46Action<CorsPolicyBuilder> configurePolicy)
Infrastructure\CorsOptions.cs (2)
45public void AddDefaultPolicy(Action<CorsPolicyBuilder> configurePolicy) 70public void AddPolicy(string name, Action<CorsPolicyBuilder> configurePolicy)
Microsoft.AspNetCore.Cors.Test (6)
CorsEndpointConventionBuilderExtensionsTests.cs (6)
21var addCorsPolicy = Assert.Single(testConventionBuilder.Conventions); 42var addCorsPolicy = Assert.Single(testConventionBuilder.Conventions); 64var addCorsPolicy = Assert.Single(testConventionBuilder.Conventions); 98public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 101public void Add(Action<EndpointBuilder> convention)
Microsoft.AspNetCore.DataProtection (8)
DataProtectionBuilderExtensions.cs (2)
130/// <param name="setupAction">An <see cref="Action{KeyManagementOptions}"/> to configure the provided <see cref="KeyManagementOptions"/>.</param> 132public static IDataProtectionBuilder AddKeyManagementOptions(this IDataProtectionBuilder builder, Action<KeyManagementOptions> setupAction)
DataProtectionServiceCollectionExtensions.cs (2)
47/// <param name="setupAction">An <see cref="Action{DataProtectionOptions}"/> to configure the provided <see cref="DataProtectionOptions"/>.</param> 49public static IDataProtectionBuilder AddDataProtection(this IServiceCollection services, Action<DataProtectionOptions> setupAction)
Repositories\EphemeralXmlRepository.cs (1)
59public bool DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements)
Repositories\FileSystemXmlRepository.cs (1)
180public virtual bool DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements)
Repositories\IDeletableXmlRepository.cs (1)
26bool DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements);
Repositories\RegistryXmlRepository.cs (1)
160public virtual bool DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements)
Microsoft.AspNetCore.DataProtection.Extensions (3)
DataProtectionProvider.cs (3)
57Action<IDataProtectionBuilder> setupAction) 111Action<IDataProtectionBuilder> setupAction, 123Action<IDataProtectionBuilder> setupAction,
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
DataProtectionProviderTests.cs (1)
321private static void WithUniqueTempDirectory(Action<DirectoryInfo> testCode)
Microsoft.AspNetCore.DataProtection.Tests (4)
Internal\KeyManagementOptionsSetupTest.cs (1)
99private static void WithUniqueTempRegKey(Action<RegistryKey> testCode)
KeyManagement\XmlKeyManagerTests.cs (1)
1019bool IDeletableXmlRepository.DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements) => throw new InvalidOperationException();
Repositories\FileSystemXmlRepositoryTests.cs (1)
316private static void WithUniqueTempDirectory(Action<DirectoryInfo> testCode)
Repositories\RegistryXmlRepositoryTests.cs (1)
222private static void WithUniqueTempRegKey(Action<RegistryKey> testCode)
Microsoft.AspNetCore.Diagnostics (7)
ExceptionHandler\ExceptionHandlerExtensions.cs (1)
76public static IApplicationBuilder UseExceptionHandler(this IApplicationBuilder app, Action<IApplicationBuilder> configure)
ExceptionHandler\ExceptionHandlerServiceCollectionExtensions.cs (1)
21public static IServiceCollection AddExceptionHandler(this IServiceCollection services, Action<ExceptionHandlerOptions> configureOptions)
src\Shared\Diagnostics\HelperResult.cs (2)
18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; }
src\Shared\RazorViews\HelperResult.cs (2)
18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; }
StatusCodePage\StatusCodePagesExtensions.cs (1)
126public static IApplicationBuilder UseStatusCodePages(this IApplicationBuilder app, Action<IApplicationBuilder> configuration)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (4)
src\Shared\Diagnostics\HelperResult.cs (2)
18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; }
src\Shared\RazorViews\HelperResult.cs (2)
18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; }
Microsoft.AspNetCore.Diagnostics.Middleware (5)
Latency\CapturePipelineEntryStartupFilter.cs (2)
21public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Latency\RequestLatencyTelemetryServiceCollectionExtensions.cs (1)
54public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services, Action<RequestLatencyTelemetryOptions> configure)
Logging\HttpLoggingServiceCollectionExtensions.cs (1)
34public static IServiceCollection AddHttpLoggingRedaction(this IServiceCollection services, Action<LoggingRedactionOptions>? configure = null)
Logging\RequestHeadersEnricherServiceCollectionExtensions.cs (1)
37public static IServiceCollection AddRequestHeadersLogEnricher(this IServiceCollection services, Action<RequestHeadersLogEnricherOptions> configure)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Logging\AcceptanceTests.cs (2)
143private static Task RunAsync(LogLevel level, Action<IServiceCollection> configure, Func<FakeLogCollector, HttpClient, Task> func) 148Action<IServiceCollection> configure,
Logging\AcceptanceTests.Mvc.cs (1)
51private static Task RunControllerAsync(LogLevel level, Action<IServiceCollection> configure, Func<FakeLogCollector, HttpClient, Task> func)
Logging\AcceptanceTests.Routing.cs (2)
56Action<IServiceCollection> configureHttpLogging, 57Action<Dictionary<string, string?>> validateRequestState)
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
GrpcJsonTranscodingServiceExtensions.cs (2)
41/// <param name="configureOptions">An <see cref="Action{GrpcJsonTranscodingOptions}"/> to configure the provided <see cref="GrpcJsonTranscodingOptions"/>.</param> 43public static IGrpcServerBuilder AddJsonTranscoding(this IGrpcServerBuilder builder, Action<GrpcJsonTranscodingOptions> configureOptions)
Internal\CallHandlers\ServerCallHandlerBase.cs (1)
39foreach (var rewriteAction in DescriptorInfo.RouteAdapter.RewriteVariableActions)
Internal\JsonTranscodingRouteAdapter.cs (3)
45public List<Action<HttpContext>> RewriteVariableActions { get; } 47private JsonTranscodingRouteAdapter(HttpRoutePattern httpRoutePattern, string resolvedRoutePattern, List<Action<HttpContext>> rewriteVariableActions) 56var rewriteActions = new List<Action<HttpContext>>();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
ConverterTests\JsonConverterReadTests.cs (1)
875private void AssertReadJsonError<TValue>(string value, Action<Exception> assertException, GrpcJsonSettings? settings = null, DescriptorRegistry? descriptorRegistry = null, bool deserializeOld = true) where TValue : IMessage, new()
JsonTranscodingServiceMethodProviderTests.cs (1)
261private IReadOnlyList<Endpoint> MapEndpoints<TService>(Action<ILoggingBuilder>? configureLogging = null)
UnaryServerCallHandlerTests.cs (1)
1632Action<HttpContext>? configureHttpContext = null,
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingServiceCollectionExtensions.cs (1)
47public static IServiceCollection AddHeaderParsing(this IServiceCollection services, Action<HeaderParsingOptions> configure)
Microsoft.AspNetCore.HeaderPropagation (2)
DependencyInjection\HeaderPropagationHttpClientBuilderExtensions.cs (1)
51public static IHttpClientBuilder AddHeaderPropagation(this IHttpClientBuilder builder, Action<HeaderPropagationMessageHandlerOptions> configure)
DependencyInjection\HeaderPropagationServiceCollectionExtensions.cs (1)
35public static IServiceCollection AddHeaderPropagation(this IServiceCollection services, Action<HeaderPropagationOptions> configureOptions)
Microsoft.AspNetCore.HeaderPropagation.Tests (2)
HeaderPropagationIntegrationTest.cs (2)
194private async Task<IHost> CreateHost(Action<HeaderPropagationOptions> configure, HttpMessageHandler primaryHandler, Action<HeaderPropagationMessageHandlerOptions> configureClient = null)
Microsoft.AspNetCore.HostFiltering (1)
HostFilteringServicesExtensions.cs (1)
20public static IServiceCollection AddHostFiltering(this IServiceCollection services, Action<HostFilteringOptions> configureOptions)
Microsoft.AspNetCore.Hosting (44)
GenericHost\GenericWebHostBuilder.cs (1)
316public IWebHostBuilder Configure(Action<IApplicationBuilder> configure)
GenericHost\GenericWebHostService.cs (1)
126var configure = Options.ConfigureApplication;
GenericHost\GenericWebHostServiceOptions.cs (1)
10public Action<IApplicationBuilder>? ConfigureApplication { get; set; }
GenericHost\HostingStartupWebHostBuilder.cs (2)
39public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices) 73public IWebHostBuilder Configure(Action<IApplicationBuilder> configure)
GenericHost\SlimWebHostBuilder.cs (1)
62public IWebHostBuilder Configure(Action<IApplicationBuilder> configure)
GenericHost\WebHostBuilderBase.cs (1)
47public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices)
GenericHostWebHostBuilderExtensions.cs (7)
21public static IHostBuilder ConfigureWebHost(this IHostBuilder builder, Action<IWebHostBuilder> configure) 35public static IHostBuilder ConfigureWebHost(this IHostBuilder builder, Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureWebHostBuilder) 51public static IHostBuilder ConfigureSlimWebHost(this IHostBuilder builder, Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureWebHostBuilder) 63Action<IWebHostBuilder> configure, 64Action<WebHostBuilderOptions> configureWebHostBuilder)
Infrastructure\ISupportsConfigureWebHost.cs (3)
9/// An interface implemented by IWebHostBuilders that handle <see cref="GenericHostWebHostBuilderExtensions.ConfigureWebHost(IHostBuilder, Action{IWebHostBuilder})"/> 20IHostBuilder ConfigureWebHost(Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureOptions);
Infrastructure\ISupportsStartup.cs (2)
11/// An interface implemented by IWebHostBuilders that handle <see cref="WebHostBuilderExtensions.Configure(IWebHostBuilder, Action{IApplicationBuilder})"/>, 22IWebHostBuilder Configure(Action<IApplicationBuilder> configure);
Internal\ConfigureBuilder.cs (1)
20public Action<IApplicationBuilder> Build(object? instance) => builder => Invoke(instance, builder);
Internal\ConfigureContainerBuilder.cs (3)
18public Func<Action<object>, Action<object>> ConfigureContainerFilters { get; set; } = f => f; 20public Action<object> Build(object instance) => container => Invoke(instance, container);
Internal\StartupLoader.cs (8)
111var configureContainerCallback = ConfigureContainerBuilder.Build(Instance); 115Action<object> ConfigureContainerPipeline(Action<object> action) 134Action<object> configureContainerCallback) 185Action<IServiceCollection> pipeline = InvokeStartup; 213private Action<TContainerBuilder> BuildStartupConfigureContainerFiltersPipeline(Action<TContainerBuilder> configureContainer) 224Action<TContainerBuilder> pipeline = InvokeConfigureContainer;
Internal\StartupMethods.cs (2)
12public StartupMethods(object? instance, Action<IApplicationBuilder> configure, Func<IServiceCollection, IServiceProvider> configureServices) 24public Action<IApplicationBuilder> ConfigureDelegate { get; }
Internal\WebHost.cs (1)
215Action<IApplicationBuilder> configure = _startup!.Configure;
Internal\WebHostLifetime.cs (1)
26Action<PosixSignalContext> handler = HandlePosixSignal;
src\Shared\RazorViews\HelperResult.cs (2)
18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; }
Startup\DelegateStartup.cs (2)
16private readonly Action<IApplicationBuilder> _configureApp; 23public DelegateStartup(IServiceProviderFactory<IServiceCollection> factory, Action<IApplicationBuilder> configureApp) : base(factory)
WebHostBuilder.cs (1)
93public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices)
WebHostBuilderExtensions.cs (4)
31public static IWebHostBuilder Configure(this IWebHostBuilder hostBuilder, Action<IApplicationBuilder> configureApp) 182public static IWebHostBuilder UseDefaultServiceProvider(this IWebHostBuilder hostBuilder, Action<ServiceProviderOptions> configure) 219public static IWebHostBuilder ConfigureAppConfiguration(this IWebHostBuilder hostBuilder, Action<IConfigurationBuilder> configureDelegate) 230public static IWebHostBuilder ConfigureLogging(this IWebHostBuilder hostBuilder, Action<ILoggingBuilder> configureLogging)
Microsoft.AspNetCore.Hosting.Abstractions (7)
IStartupConfigureContainerFilter.cs (2)
18Action<TContainerBuilder> ConfigureContainer(Action<TContainerBuilder> container);
IStartupConfigureServicesFilter.cs (2)
20Action<IServiceCollection> ConfigureServices(Action<IServiceCollection> next);
IStartupFilter.cs (2)
21Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next);
IWebHostBuilder.cs (1)
38IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices);
Microsoft.AspNetCore.Hosting.Tests (22)
ConfigureBuilderTests.cs (1)
25Action<IApplicationBuilder> action = builder.Build(instance: null);
Fakes\GenericWebHostBuilderWrapper.cs (2)
32public IWebHostBuilder Configure(Action<IApplicationBuilder> configure) 50public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices)
HostingApplicationDiagnosticsTests.cs (3)
1262Action<DefaultHttpContext> configure = null, HostingEventSource eventSource = null, IMeterFactory meterFactory = null, 1359private readonly Action<KeyValuePair<string, object>> _callback; 1361public CallbackDiagnosticListener(Action<KeyValuePair<string, object>> callback)
StartupManagerTests.cs (4)
195public Action<MyContainer> ConfigureContainer(Action<MyContainer> next) 244public Action<IServiceCollection> ConfigureServices(Action<IServiceCollection> next)
WebHostBuilderTests.cs (10)
1571public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 1610private readonly Action<IServiceCollection> _configureServices; 1615public ExternalContainerFactory(Action<IServiceCollection> configureServices) 1716private readonly Action<IApplicationBuilder> _configure; 1718public DelegatingStartupWithIStartup(Func<IServiceCollection, IServiceProvider> configureServices, Action<IApplicationBuilder> configure) 1731private readonly Action<IServiceCollection> _configureServices; 1732private readonly Action<IApplicationBuilder> _configure; 1734public DelegatingStartup(Action<IServiceCollection> configureServices, Action<IApplicationBuilder> configure)
WebHostTests.cs (2)
786public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.Http (2)
Internal\BufferingHelper.cs (1)
27public static MultipartSection EnableRewind(this MultipartSection section, Action<IDisposable> registerForDispose,
Timeouts\RequestTimeoutsIServiceCollectionExtensions.cs (1)
31public static IServiceCollection AddRequestTimeouts(this IServiceCollection services, Action<RequestTimeoutOptions> configure)
Microsoft.AspNetCore.Http.Abstractions (8)
Extensions\IEndpointConventionBuilder.cs (3)
18void Add(Action<EndpointBuilder> convention); 22/// via <see cref="Add(Action{EndpointBuilder})"/> 25void Finally(Action<EndpointBuilder> finallyConvention) => throw new NotImplementedException();
Extensions\MapExtensions.cs (3)
22public static IApplicationBuilder Map(this IApplicationBuilder app, string pathMatch, Action<IApplicationBuilder> configuration) 35public static IApplicationBuilder Map(this IApplicationBuilder app, PathString pathMatch, Action<IApplicationBuilder> configuration) 49public static IApplicationBuilder Map(this IApplicationBuilder app, PathString pathMatch, bool preserveMatchedPathSegment, Action<IApplicationBuilder> configuration)
Extensions\MapWhenExtensions.cs (1)
23public static IApplicationBuilder MapWhen(this IApplicationBuilder app, Predicate predicate, Action<IApplicationBuilder> configuration)
Extensions\UseWhenExtensions.cs (1)
22public static IApplicationBuilder UseWhen(this IApplicationBuilder app, Predicate predicate, Action<IApplicationBuilder> configuration)
Microsoft.AspNetCore.Http.Connections (11)
ConnectionEndpointRouteBuilder.cs (2)
22public void Add(Action<EndpointBuilder> convention) 28public void Finally(Action<EndpointBuilder> finalConvention)
ConnectionEndpointRouteBuilderExtensions.cs (5)
29public static ConnectionEndpointRouteBuilder MapConnections(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, Action<IConnectionBuilder> configure) => 52public static ConnectionEndpointRouteBuilder MapConnectionHandler<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConnectionHandler>(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, Action<HttpConnectionDispatcherOptions>? configureOptions) where TConnectionHandler : ConnectionHandler 84public static ConnectionEndpointRouteBuilder MapConnections(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, HttpConnectionDispatcherOptions options, Action<IConnectionBuilder> configure) 146public void Add(Action<EndpointBuilder> convention) 154public void Finally(Action<EndpointBuilder> finalConvention)
ConnectionsDependencyInjectionExtensions.cs (1)
38public static IServiceCollection AddConnections(this IServiceCollection services, Action<ConnectionOptions> options)
Internal\HttpConnectionContext.cs (3)
43private List<(Action<object> handler, object state)>? _heartbeatHandlers; 220public void OnHeartbeat(Action<object> action, object state) 226_heartbeatHandlers = new List<(Action<object> handler, object state)>();
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnectionOptions.cs (2)
30private Action<ClientWebSocketOptions>? _webSocketConfiguration; 264public Action<ClientWebSocketOptions>? WebSocketConfiguration
Microsoft.AspNetCore.Http.Connections.Tests (5)
HttpConnectionDispatcherTests.cs (2)
3644private static IHost CreateHost(Action<IServiceCollection> configureServices, Action<IEndpointRouteBuilder> configureEndpoints,
MapConnectionHandlerTests.cs (3)
484private IHost BuildWebHost(Action<IEndpointRouteBuilder> configure) 505private IHost BuildWebHost<TConnectionHandler>(string path, Action<HttpConnectionDispatcherOptions> configureOptions, Action<IEndpointConventionBuilder> configureEndpoints = null) where TConnectionHandler : ConnectionHandler
Microsoft.AspNetCore.Http.Extensions (4)
HttpJsonServiceExtensions.cs (2)
20/// <param name="configureOptions">The <see cref="Action{JsonOptions}"/> to configure the 23public static IServiceCollection ConfigureHttpJsonOptions(this IServiceCollection services, Action<JsonOptions> configureOptions)
ProblemDetailsOptions.cs (1)
15public Action<ProblemDetailsContext>? CustomizeProblemDetails { get; set; }
ProblemDetailsServiceCollectionExtensions.cs (1)
36Action<ProblemDetailsOptions>? configure)
Microsoft.AspNetCore.Http.Extensions.Tests (31)
CookieRedirectEndpointConventionBuilderExtensionsTests.cs (1)
65public void Add(Action<EndpointBuilder> convention)
HttpMetricsEndpointConventionBuilderExtensionsTests.cs (1)
22public void Add(Action<EndpointBuilder> convention)
ParameterBindingMethodCacheTests.cs (2)
752private static ParameterInfo GetFirstParameter<T>(Expression<Action<T>> expr) 758private static ParameterInfo GetParameterAtIndex<T>(Expression<Action<T>> expr, int paramIndex)
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) => { };
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (5)
98internal static void VerifyStaticEndpointModel(GeneratorRunResult? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint> runAssertions) 106internal static void VerifyStaticEndpointModels(GeneratorRunResult? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint[]> runAssertions) 208public ServiceProvider CreateServiceProvider(Action<IServiceCollection> configureServices = null) 240internal static async Task VerifyResponseJsonBodyAsync<T>(HttpContext httpContext, Action<T> check, int expectedStatusCode = 200) 252internal static async Task VerifyResponseJsonNodeAsync(HttpContext httpContext, Action<JsonNode> check, int expectedStatusCode = 200, string expectedContentType = "application/json; charset=utf-8")
Microsoft.AspNetCore.Http.Microbenchmarks (5)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (5)
98internal static void VerifyStaticEndpointModel(GeneratorRunResult? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint> runAssertions) 106internal static void VerifyStaticEndpointModels(GeneratorRunResult? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint[]> runAssertions) 208public ServiceProvider CreateServiceProvider(Action<IServiceCollection> configureServices = null) 240internal static async Task VerifyResponseJsonBodyAsync<T>(HttpContext httpContext, Action<T> check, int expectedStatusCode = 200) 252internal static async Task VerifyResponseJsonNodeAsync(HttpContext httpContext, Action<JsonNode> check, int expectedStatusCode = 200, string expectedContentType = "application/json; charset=utf-8")
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingServicesExtensions.cs (2)
35public static IServiceCollection AddHttpLogging(this IServiceCollection services, Action<HttpLoggingOptions> configureOptions) 64public static IServiceCollection AddW3CLogging(this IServiceCollection services, Action<W3CLoggerOptions> configureOptions)
Microsoft.AspNetCore.HttpLogging.Tests (7)
HttpLoggingEndpointConventionBuilderTests.cs (5)
24var httpLogingAttribute = Assert.Single(testConventionBuilder.Conventions); 64public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 66public void Add(Action<EndpointBuilder> convention) 73foreach (var convention in Conventions)
HttpLoggingMiddlewareTests.cs (2)
2217private class FakeInterceptor(Action<HttpLoggingInterceptorContext> interceptRequest, Action<HttpLoggingInterceptorContext> interceptResponse = null) : IHttpLoggingInterceptor
Microsoft.AspNetCore.HttpOverrides (1)
CertificateForwardingServiceExtensions.cs (1)
21Action<CertificateForwardingOptions> configure)
Microsoft.AspNetCore.HttpsPolicy (2)
HstsServicesExtensions.cs (1)
20public static IServiceCollection AddHsts(this IServiceCollection services, Action<HstsOptions> configureOptions)
HttpsRedirectionServicesExtensions.cs (1)
20public static IServiceCollection AddHttpsRedirection(this IServiceCollection services, Action<HttpsRedirectionOptions> configureOptions)
Microsoft.AspNetCore.Identity (8)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
472public void Add(Action<EndpointBuilder> convention) => InnerAsConventionBuilder.Add(convention); 473public void Finally(Action<EndpointBuilder> finallyConvention) => InnerAsConventionBuilder.Finally(finallyConvention);
IdentityBuilderExtensions.cs (1)
90/// but does not configure authentication. Call <see cref="BearerTokenExtensions.AddBearerToken(AuthenticationBuilder, Action{BearerTokenOptions}?)"/> and/or
IdentityCookiesBuilderExtensions.cs (1)
31public static IdentityCookiesBuilder AddIdentityCookies(this AuthenticationBuilder builder, Action<IdentityCookiesBuilder> configureCookies)
IdentityServiceCollectionExtensions.cs (4)
48Action<IdentityOptions> setupAction) 135public static IdentityBuilder AddIdentityApiEndpoints<TUser>(this IServiceCollection services, Action<IdentityOptions> configure) 161public static IServiceCollection ConfigureApplicationCookie(this IServiceCollection services, Action<CookieAuthenticationOptions> configure) 170public static IServiceCollection ConfigureExternalCookie(this IServiceCollection services, Action<CookieAuthenticationOptions> configure)
Microsoft.AspNetCore.Identity.FunctionalTests (4)
Infrastructure\FunctionalTestsServiceCollectionExtensions.cs (1)
34public static IServiceCollection SetupGetUserClaimsPrincipal(this IServiceCollection services, Action<ClaimsPrincipal> captureUser, string schemeName) =>
MapIdentityApiTests.cs (3)
1277private async Task<WebApplication> CreateAppAsync<TUser, TContext>(Action<IServiceCollection>? configureServices, bool autoStart = true) 1344private Task<WebApplication> CreateAppAsync(Action<IServiceCollection>? configureServices = null) 1347private static Dictionary<string, Action<IServiceCollection>> AddIdentityActions { get; } = new()
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
291private async Task<TestServer> CreateServer(Action<IServiceCollection> configureServices = null, Func<HttpContext, Task> testpath = null, Uri baseAddress = null, bool testCore = false)
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
78protected virtual UserManager<TUser> CreateManager(object context = null, IServiceCollection services = null, Action<IServiceCollection> configureServices = null)
Microsoft.AspNetCore.Identity.Test (1)
Passkeys\PasskeyScenarioTest.cs (1)
104public void TransformAsJsonObject(Action<JsonObject> transform)
Microsoft.AspNetCore.Identity.UI (1)
IdentityServiceCollectionUIExtensions.cs (1)
39public static IdentityBuilder AddDefaultIdentity<TUser>(this IServiceCollection services, Action<IdentityOptions> configureOptions) where TUser : class
Microsoft.AspNetCore.InternalTesting (10)
Logging\ITestSink.cs (2)
11event Action<WriteContext> MessageLogged; 13event Action<BeginScopeContext> ScopeStarted;
Logging\TestSink.cs (2)
33public event Action<WriteContext> MessageLogged; 35public event Action<BeginScopeContext> ScopeStarted;
Tracing\EventAssert.cs (6)
17private readonly IList<(string name, Action<object> asserter)> _payloadAsserters = new List<(string, Action<object>)>(); 40public EventAssert Payload(string name, Action<object> asserter) 46private Action<EventWrittenEventArgs> CreateAsserter() => Execute; 54Action<string> CreateNameAsserter((string name, Action<object> asserter) val)
Microsoft.AspNetCore.InternalTesting.Tests (2)
AssemblyTestLogTests.cs (1)
366private static async Task RunTestLogFunctionalTest(Action<string> action)
XunitLoggerProviderTest.cs (1)
86private static ILoggerFactory CreateTestLogger(Action<ILoggingBuilder> configure)
Microsoft.AspNetCore.JsonPatch (11)
Adapters\ObjectAdapter.cs (4)
22Action<JsonPatchError> logErrorAction) : 35Action<JsonPatchError> logErrorAction, 56public Action<JsonPatchError> LogErrorAction { get; } 261private Action<JsonPatchError> ErrorReporter
Internal\ErrorReporter.cs (1)
11public static readonly Action<JsonPatchError> Default = (error) =>
JsonPatchDocument.cs (3)
160public void ApplyTo(object objectToApplyTo, Action<JsonPatchError> logErrorAction) 171public void ApplyTo(object objectToApplyTo, IObjectAdapter adapter, Action<JsonPatchError> logErrorAction) 184var errorReporter = logErrorAction ?? ErrorReporter.Default;
JsonPatchDocumentOfT.cs (3)
596public void ApplyTo(TModel objectToApplyTo, Action<JsonPatchError> logErrorAction) 607public void ApplyTo(TModel objectToApplyTo, IObjectAdapter adapter, Action<JsonPatchError> logErrorAction) 620var errorReporter = logErrorAction ?? ErrorReporter.Default;
Microsoft.AspNetCore.JsonPatch.SystemTextJson (11)
Adapters\ObjectAdapter.cs (4)
23Action<JsonPatchError> logErrorAction) : 36Action<JsonPatchError> logErrorAction, 57public Action<JsonPatchError> LogErrorAction { get; } 257private Action<JsonPatchError> ErrorReporter
Internal\ErrorReporter.cs (1)
11public static readonly Action<JsonPatchError> Default = (error) =>
JsonPatchDocument.cs (3)
153public void ApplyTo(object objectToApplyTo, Action<JsonPatchError> logErrorAction) 164public void ApplyTo(object objectToApplyTo, IObjectAdapter adapter, Action<JsonPatchError> logErrorAction) 177var errorReporter = logErrorAction ?? ErrorReporter.Default;
JsonPatchDocumentOfT.cs (3)
589public void ApplyTo(TModel objectToApplyTo, Action<JsonPatchError> logErrorAction) 600public void ApplyTo(TModel objectToApplyTo, IObjectAdapter adapter, Action<JsonPatchError> logErrorAction) 613var errorReporter = logErrorAction ?? ErrorReporter.Default;
Microsoft.AspNetCore.Localization (2)
ApplicationBuilderExtensions.cs (1)
56Action<RequestLocalizationOptions> optionsAction)
RequestLocalizationServiceCollectionExtensions.cs (1)
19public static IServiceCollection AddRequestLocalization(this IServiceCollection services, Action<RequestLocalizationOptions> configureOptions)
Microsoft.AspNetCore.MiddlewareAnalysis (2)
AnalysisStartupFilter.cs (2)
20public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.Mvc (10)
HotReloadService.cs (2)
51private static event Action<Type[]?>? ClearCacheEvent; 52private static event Action<Type[]?>? UpdateApplicationEvent;
MvcServiceCollectionExtensions.cs (8)
43/// <param name="setupAction">An <see cref="Action{MvcOptions}"/> to configure the provided <see cref="MvcOptions"/>.</param> 46public static IMvcBuilder AddMvc(this IServiceCollection services, Action<MvcOptions> setupAction) 96/// <param name="configure">An <see cref="Action{MvcOptions}"/> to configure the provided <see cref="MvcOptions"/>.</param> 118public static IMvcBuilder AddControllers(this IServiceCollection services, Action<MvcOptions>? configure) 189/// <param name="configure">An <see cref="Action{MvcOptions}"/> to configure the provided <see cref="MvcOptions"/>.</param> 209public static IMvcBuilder AddControllersWithViews(this IServiceCollection services, Action<MvcOptions>? configure) 269/// <param name="configure">An <see cref="Action{MvcOptions}"/> to configure the provided <see cref="MvcOptions"/>.</param> 288public static IMvcBuilder AddRazorPages(this IServiceCollection services, Action<RazorPagesOptions>? configure)
Microsoft.AspNetCore.Mvc.Core (78)
Builder\ControllerActionEndpointConventionBuilder.cs (6)
16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal ControllerActionEndpointConventionBuilder(object @lock, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions) 32public void Add(Action<EndpointBuilder> convention) 45public void Finally(Action<EndpointBuilder> finalConvention)
Builder\MvcApplicationBuilderExtensions.cs (2)
24/// <see cref="UseMvc(IApplicationBuilder, Action{IRouteBuilder})"/>.</remarks> 61Action<IRouteBuilder> configureRoutes)
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (8)
24/// <param name="setupAction">An <see cref="Action{MvcOptions}"/>.</param> 28Action<MvcOptions> setupAction) 46Action<JsonOptions> configure) 63Action<FormatterMappings> setupAction) 98/// the given <see cref="Action{ApplicationPartManager}"/>. 101/// <param name="setupAction">The <see cref="Action{ApplicationPartManager}"/></param> 105Action<ApplicationPartManager> setupAction) 162Action<ApiBehaviorOptions> setupAction)
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (9)
26/// <param name="setupAction">An <see cref="Action{MvcOptions}"/>.</param> 30Action<MvcOptions> setupAction) 47Action<JsonOptions> configure) 75Action<FormatterMappings> setupAction) 112Action<AuthorizationOptions> setupAction) 180/// the given <see cref="Action{ApplicationPartManager}"/>. 183/// <param name="setupAction">The <see cref="Action{ApplicationPartManager}"/></param> 187Action<ApplicationPartManager> setupAction) 205Action<ApiBehaviorOptions> setupAction)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (2)
104/// <param name="setupAction">An <see cref="Action{MvcOptions}"/> to configure the provided <see cref="MvcOptions"/>.</param> 117Action<MvcOptions> setupAction)
Filters\MiddlewareFilterBuilder.cs (1)
53var configureDelegate = MiddlewareFilterConfigurationProvider.CreateConfigureDelegate(middlewarePipelineProviderType);
Filters\MiddlewareFilterBuilderStartupFilter.cs (2)
12public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Filters\MiddlewareFilterConfigurationProvider.cs (2)
18public static Action<IApplicationBuilder> CreateConfigureDelegate(Type configurationType) 85public Action<IApplicationBuilder> Build(object instance)
Infrastructure\DefaultProblemDetailsFactory.cs (1)
21private readonly Action<ProblemDetailsContext>? _configure;
Routing\ActionEndpointDataSourceBase.cs (10)
25protected readonly List<Action<EndpointBuilder>> Conventions; 26protected readonly List<Action<EndpointBuilder>> FinallyConventions; 37Conventions = new List<Action<EndpointBuilder>>(); 38FinallyConventions = new List<Action<EndpointBuilder>>(); 67IReadOnlyList<Action<EndpointBuilder>> conventions, 68IReadOnlyList<Action<EndpointBuilder>> groupConventions, 69IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 70IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions); 124groupConventions: Array.Empty<Action<EndpointBuilder>>(), 126groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>());
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)
Routing\ControllerActionEndpointDataSource.cs (6)
58var conventions = new List<Action<EndpointBuilder>>(); 59var finallyConventions = new List<Action<EndpointBuilder>>(); 68IReadOnlyList<Action<EndpointBuilder>> conventions, 69IReadOnlyList<Action<EndpointBuilder>> groupConventions, 70IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 71IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions)
Routing\ConventionalRouteEntry.cs (4)
17public readonly IReadOnlyList<Action<EndpointBuilder>> Conventions; 18public readonly IReadOnlyList<Action<EndpointBuilder>> FinallyConventions; 27List<Action<EndpointBuilder>> conventions, 28List<Action<EndpointBuilder>> finallyConventions)
src\Http\Routing\src\DataSourceDependentCache.cs (1)
18private readonly Action<object?> _initializerWithState;
Microsoft.AspNetCore.Mvc.Core.Test (44)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
321Action<ControllerActionDescriptor> InspectElement(string httpMethod)
ApplicationModels\EndpointMetadataProviderTest.cs (5)
105Conventions = new Action<EndpointBuilder>[] 109FinallyConventions = new Action<EndpointBuilder>[] 148Conventions = new Action<EndpointBuilder>[] 169Conventions = new Action<EndpointBuilder>[] 190Conventions = new Action<EndpointBuilder>[]
Authorization\AuthorizeFilterTest.cs (1)
573Action<IServiceCollection> registerServices = null)
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (1)
130private static ProblemDetailsFactory GetProblemDetailsFactory(Action<ApiBehaviorOptions> configure = null)
Filters\FilterFactoryTest.cs (4)
295private readonly Action<FilterProviderContext> _providerExecuting; 296private readonly Action<FilterProviderContext> _providerExecuted; 299Action<FilterProviderContext> providerExecuting, 300Action<FilterProviderContext> providerExecuted,
Filters\MiddlewareFilterAttributeTest.cs (2)
42public static Action<IApplicationBuilder> ConfigurePipeline { get; set; } 52public static Action<IApplicationBuilder> ConfigurePipeline { get; set; }
Filters\MiddlewareFilterBuilderTest.cs (1)
294public static Action<IApplicationBuilder> ConfigurePipeline { get; set; }
Filters\MiddlewareFilterConfigurationProviderTest.cs (2)
37var configureDelegate = MiddlewareFilterConfigurationProvider.CreateConfigureDelegate(typeof(ValidConfigure_WithNoEnvironment)); 55var configureDelegate = MiddlewareFilterConfigurationProvider.CreateConfigureDelegate(typeof(ValidConfigure_WithNoEnvironment_AdditionalServices));
Filters\MiddlewareFilterTest.cs (2)
289public static Action<IApplicationBuilder> ConfigurePipeline { get; set; } 299public static Action<IApplicationBuilder> ConfigurePipeline { get; set; }
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
1084private static ComplexObjectModelBinder CreateBinder(ModelMetadata metadata, Action<MvcOptions> configureOptions = null)
ModelBinding\StubModelBinder.cs (1)
26public StubModelBinder(Action<ModelBindingContext> callback)
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>>();
Routing\ControllerActionEndpointDataSourceTest.cs (1)
420var groupConventions = new List<Action<EndpointBuilder>>()
Microsoft.AspNetCore.Mvc.Core.TestCommon (15)
TestModelMetadataProvider.cs (15)
178IMetadataBuilder BindingDetails(Action<BindingMetadata> action); 180IMetadataBuilder DisplayDetails(Action<DisplayMetadata> action); 182IMetadataBuilder ValidationDetails(Action<ValidationMetadata> action); 187private readonly List<Action<BindingMetadata>> _bindingActions = new List<Action<BindingMetadata>>(); 188private readonly List<Action<DisplayMetadata>> _displayActions = new List<Action<DisplayMetadata>>(); 189private readonly List<Action<ValidationMetadata>> _validationActions = new List<Action<ValidationMetadata>>(); 202foreach (var action in _bindingActions) 213foreach (var action in _displayActions) 224foreach (var action in _validationActions) 231public IMetadataBuilder BindingDetails(Action<BindingMetadata> action) 237public IMetadataBuilder DisplayDetails(Action<DisplayMetadata> action) 243public IMetadataBuilder ValidationDetails(Action<ValidationMetadata> action)
Microsoft.AspNetCore.Mvc.Cors (3)
DependencyInjection\MvcCorsMvcCoreBuilderExtensions.cs (3)
33/// <param name="setupAction">An <see cref="Action{MvcOptions}"/> to configure the provided <see cref="CorsOptions"/>.</param> 37Action<CorsOptions> setupAction) 56Action<CorsOptions> setupAction)
Microsoft.AspNetCore.Mvc.DataAnnotations (5)
DataAnnotationsLocalizationServices.cs (1)
14Action<MvcDataAnnotationsLocalizationOptions>? setupAction)
DependencyInjection\MvcDataAnnotationsMvcBuilderExtensions.cs (1)
34Action<MvcDataAnnotationsLocalizationOptions>? setupAction)
DependencyInjection\MvcDataAnnotationsMvcCoreBuilderExtensions.cs (3)
46/// <param name="setupAction">An <see cref="Action{MvcDataAnnotationsLocalizationOptions}"/>.</param> 50Action<MvcDataAnnotationsLocalizationOptions>? setupAction) 69Action<MvcDataAnnotationsLocalizationOptions>? setupAction)
Microsoft.AspNetCore.Mvc.Formatters.Xml (6)
DependencyInjection\MvcXmlMvcBuilderExtensions.cs (3)
23Action<MvcXmlOptions> setupAction) 53Action<MvcXmlOptions> setupAction) 84Action<MvcXmlOptions> setupAction)
DependencyInjection\MvcXmlMvcCoreBuilderExtensions.cs (3)
24Action<MvcXmlOptions> setupAction) 54Action<MvcXmlOptions> setupAction) 85Action<MvcXmlOptions> setupAction)
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
Infrastructure\CultureReplacerStartupFilter.cs (2)
15public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
src\Shared\SizeLimitedStream.cs (2)
10private readonly Action<long>? _handleSizeLimit; 13public SizeLimitedStream(Stream innerStream, long? sizeLimit, Action<long>? handleSizeLimit = null)
Microsoft.AspNetCore.Mvc.IntegrationTests (20)
ComplexRecordIntegrationTest.cs (1)
2006.BindingDetails((Action<ModelBinding.Metadata.BindingMetadata>)(binding =>
ComplexTypeIntegrationTestBase.cs (3)
2159.BindingDetails((Action<ModelBinding.Metadata.BindingMetadata>)(binding => 3764Action<HttpRequest> updateRequest = null, 3765Action<MvcOptions> updateOptions = null,
ComplexTypeModelBinderIntegrationTest.cs (2)
16Action<HttpRequest> updateRequest = null, 17Action<MvcOptions> updateOptions = null,
DictionaryModelBinderIntegrationTest.cs (4)
217public static TheoryData<Action<HttpRequest>> ThreeEntryTestData 282return new TheoryData<Action<HttpRequest>> 328public async Task DictionaryModelBinder_Binds3EntriesOfSimpleType(Action<HttpRequest> updateRequest) 363Action<HttpRequest> updateRequest)
HeaderModelBinderIntegrationTest.cs (2)
436Action<HttpRequest> updateRequest = null, 437Action<MvcOptions> updateOptions = null)
KeyValuePairModelBinderIntegrationTest.cs (2)
97.BindingDetails((System.Action<ModelBinding.Metadata.BindingMetadata>)(binding => 184.BindingDetails((System.Action<ModelBinding.Metadata.BindingMetadata>)(binding =>
ModelBindingTestHelper.cs (5)
22Action<HttpRequest> updateRequest = null, 23Action<MvcOptions> updateOptions = null, 148Action<HttpRequest> updateRequest = null, 149Action<MvcOptions> updateOptions = null, 164Action<MvcOptions> updateOptions = null,
TryValidateModelIntegrationTest.cs (1)
210Action<MvcOptions> optionsConfigurator
Microsoft.AspNetCore.Mvc.Localization (21)
DependencyInjection\MvcLocalizationMvcBuilderExtensions.cs (10)
52Action<LocalizationOptions>? setupAction) 70Action<LocalizationOptions>? setupAction) 112Action<LocalizationOptions>? localizationOptionsSetupAction) 162Action<LocalizationOptions>? localizationOptionsSetupAction, 188Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 215Action<LocalizationOptions>? localizationOptionsSetupAction, 216Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 243Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 271Action<LocalizationOptions>? localizationOptionsSetupAction, 273Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction)
DependencyInjection\MvcLocalizationMvcCoreBuilderExtensions.cs (10)
70Action<LocalizationOptions>? setupAction) 92Action<LocalizationOptions>? setupAction) 137Action<LocalizationOptions>? localizationOptionsSetupAction) 187Action<LocalizationOptions>? localizationOptionsSetupAction, 213Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 240Action<LocalizationOptions>? localizationOptionsSetupAction, 241Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 268Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 296Action<LocalizationOptions>? localizationOptionsSetupAction, 298Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction)
MvcLocalizationServices.cs (1)
16Action<LocalizationOptions>? setupAction)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
DependencyInjection\NewtonsoftJsonMvcBuilderExtensions.cs (1)
34Action<MvcNewtonsoftJsonOptions> setupAction)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (1)
43Action<MvcNewtonsoftJsonOptions> setupAction)
Microsoft.AspNetCore.Mvc.Razor (2)
DependencyInjection\MvcRazorMvcBuilderExtensions.cs (1)
23Action<RazorViewEngineOptions> setupAction)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (1)
49Action<RazorViewEngineOptions> setupAction)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
DependencyInjection\RazorRuntimeCompilationMvcBuilderExtensions.cs (1)
33public static IMvcBuilder AddRazorRuntimeCompilation(this IMvcBuilder builder, Action<MvcRazorRuntimeCompilationOptions> setupAction)
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensions.cs (1)
45public static IMvcCoreBuilder AddRazorRuntimeCompilation(this IMvcCoreBuilder builder, Action<MvcRazorRuntimeCompilationOptions> setupAction)
Microsoft.AspNetCore.Mvc.Razor.Test (5)
RazorPageTest.cs (1)
1376Action<TestableRazorPage> executeAction,
RazorViewTest.cs (4)
1805private readonly Action<TestableRazorPageForDiagnostics> _executeAction; 1807public TestableRazorPageForDiagnostics(Action<TestableRazorPageForDiagnostics> executeAction) 1827private readonly Action<TestableRazorPage> _executeAction; 1829public TestableRazorPage(Action<TestableRazorPage> executeAction)
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)
Builder\PageActionEndpointConventionBuilder.cs (6)
16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal PageActionEndpointConventionBuilder(object @lock, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions) 32public void Add(Action<EndpointBuilder> convention) 45public void Finally(Action<EndpointBuilder> finalConvention)
DependencyInjection\MvcRazorPagesMvcBuilderExtensions.cs (1)
23Action<RazorPagesOptions> setupAction)
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (1)
49Action<RazorPagesOptions> setupAction)
DependencyInjection\PageConventionCollectionExtensions.cs (1)
422private static Action<PageRouteModel> AddPageRouteThunk(string route)
Infrastructure\DefaultPageLoader.cs (4)
71conventions: new Action<EndpointBuilder>[] 87groupConventions: Array.Empty<Action<EndpointBuilder>>(), 88finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 89groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
Infrastructure\PageActionEndpointDataSource.cs (4)
47IReadOnlyList<Action<EndpointBuilder>> conventions, 48IReadOnlyList<Action<EndpointBuilder>> groupConventions, 49IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 50IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
138var groupConventions = new List<Action<EndpointBuilder>>()
Microsoft.AspNetCore.Mvc.TagHelpers (4)
DependencyInjection\TagHelperExtensions.cs (4)
33/// <param name="configure">The <see cref="Action{CacheTagHelperOptions}"/>to configure the cache options.</param> 35public static IMvcBuilder AddCacheTagHelperLimits(this IMvcBuilder builder, Action<CacheTagHelperOptions> configure) 49/// <param name="configure">The <see cref="Action{CacheTagHelperOptions}"/>to configure the cache options.</param> 51public static IMvcCoreBuilder AddCacheTagHelperLimits(this IMvcCoreBuilder builder, Action<CacheTagHelperOptions> configure)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (19)
GlobbingUrlBuilderTest.cs (1)
217var collectionAssertions = expectedPaths.Select<string, Action<string>>(expected =>
LinkTagHelperTest.cs (9)
171public static TheoryData<TagHelperAttributeList, Action<LinkTagHelper>> RunsWhenRequiredAttributesArePresent_Data 175return new TheoryData<TagHelperAttributeList, Action<LinkTagHelper>> 296Action<LinkTagHelper> setProperties) 322public static TheoryData<TagHelperAttributeList, Action<LinkTagHelper>> RunsWhenRequiredAttributesArePresent_NoHref_Data 326return new TheoryData<TagHelperAttributeList, Action<LinkTagHelper>> 384Action<LinkTagHelper> setProperties) 448public static TheoryData<TagHelperAttributeList, Action<LinkTagHelper>> DoesNotRunWhenARequiredAttributeIsMissing_Data 452return new TheoryData<TagHelperAttributeList, Action<LinkTagHelper>> 527Action<LinkTagHelper> setProperties)
ScriptTagHelperTest.cs (9)
116public static TheoryData<TagHelperAttributeList, Action<ScriptTagHelper>> RunsWhenRequiredAttributesArePresent_Data 120return new TheoryData<TagHelperAttributeList, Action<ScriptTagHelper>> 273Action<ScriptTagHelper> setProperties) 298public static TheoryData<TagHelperAttributeList, Action<ScriptTagHelper>> RunsWhenRequiredAttributesArePresent_NoSrc_Data 302return new TheoryData<TagHelperAttributeList, Action<ScriptTagHelper>> 360Action<ScriptTagHelper> setProperties) 386public static TheoryData<TagHelperAttributeList, Action<ScriptTagHelper>> DoesNotRunWhenARequiredAttributeIsMissing_Data 390return new TheoryData<TagHelperAttributeList, Action<ScriptTagHelper>> 454Action<ScriptTagHelper> setProperties)
Microsoft.AspNetCore.Mvc.Test (2)
MvcOptionsSetupTest.cs (2)
277private static T GetOptions<T>(Action<IServiceCollection> action = null) 284private static IServiceProvider GetServiceProvider(Action<IServiceCollection> action = null)
Microsoft.AspNetCore.Mvc.Testing (19)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-rc.1.25420.121\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (6)
65Action<object>? configureHostBuilder = null, 66Action<Exception?>? entrypointCompleted = null) 205private readonly Action<object>? _configure; 206private readonly Action<Exception?>? _entrypointCompleted; 209public HostingListener(string[] args, MethodInfo entryPoint, TimeSpan waitTimeout, bool stopApplication, Action<object>? configure, Action<Exception?>? entrypointCompleted)
DeferredHostBuilder.cs (2)
15private Action<IHostBuilder> _configure; 68public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate)
WebApplicationFactory.cs (11)
33private Action<KestrelServerOptions>? _configureKestrelOptions; 37private Action<IWebHostBuilder> _configuration; 125/// <see cref="WebApplicationFactory{TEntryPoint}.WithWebHostBuilder(Action{IWebHostBuilder})"/>. 139/// An <see cref="Action{IWebHostBuilder}"/> to configure the <see cref="IWebHostBuilder"/>. 142public WebApplicationFactory<TEntryPoint> WithWebHostBuilder(Action<IWebHostBuilder> configuration) => 145internal virtual WebApplicationFactory<TEntryPoint> WithWebHostBuilderCore(Action<IWebHostBuilder> configuration) 203public void UseKestrel(Action<KestrelServerOptions> configureKestrelOptions) 835private readonly Action<HttpClient> _configureClient; 845Action<HttpClient> configureClient, 846Action<IWebHostBuilder> configureWebHost) 876internal override WebApplicationFactory<TEntryPoint> WithWebHostBuilderCore(Action<IWebHostBuilder> configuration)
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensions.cs (4)
22/// An <see cref="Action{MvcViewOptions}"/> to configure the provided <see cref="MvcViewOptions"/>. 27Action<MvcViewOptions> setupAction) 102/// An <see cref="Action{CookieTempDataProviderOptions}"/> to configure the provided 108Action<CookieTempDataProviderOptions> setupAction)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (4)
78Action<MvcViewOptions> setupAction) 95/// An <see cref="Action{CookieTempDataProviderOptions}"/> to configure the provided 101Action<CookieTempDataProviderOptions> setupAction) 120Action<MvcViewOptions> setupAction)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Rendering\HtmlHelperPartialExtensionsTest.cs (3)
139public static TheoryData<Action<IHtmlHelper>, object, ViewDataDictionary> RenderPartialExtensionMethods 145return new TheoryData<Action<IHtmlHelper>, object, ViewDataDictionary> 158Action<IHtmlHelper> partialMethod,
TemplateRendererTest.cs (1)
56var collectionAssertions = expectedResult.Select<string, Action<string>>(expected =>
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileChangeToken.cs (1)
19public IDisposable RegisterChangeCallback(Action<object> callback, object state)
Microsoft.AspNetCore.OpenApi (2)
Extensions\OpenApiServiceCollectionExtensions.cs (2)
56public static IServiceCollection AddOpenApi(this IServiceCollection services, string documentName, Action<OpenApiOptions> configureOptions) 91public static IServiceCollection AddOpenApi(this IServiceCollection services, Action<OpenApiOptions> configureOptions)
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (8)
SnapshotTestHelper.cs (8)
104public static async Task VerifyOpenApi(Compilation compilation, Action<OpenApiDocument> verifyFunc) 107public static async Task VerifyOpenApi(Compilation compilation, List<byte[]> generatedAssemblies, Action<OpenApiDocument> verifyFunc) 274Action<object> configureHostBuilder = null, 275Action<Exception> entrypointCompleted = null) 395private readonly Action<object> _configure; 396private readonly Action<Exception> _entrypointCompleted; 399public HostingListener(string[] args, MethodInfo entryPoint, TimeSpan waitTimeout, bool stopApplication, Action<object> configure, Action<Exception> entrypointCompleted)
Microsoft.AspNetCore.OpenApi.Tests (12)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (1)
233private static async Task ValidateOpenApiDocumentAsync(MemoryStream documentStream, Action<OpenApiDocument> action, string format = "json")
Integration\LocalizedSampleAppFixture.cs (2)
31public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Services\OpenApiDocumentProviderTests.cs (1)
103private static void ValidateOpenApiDocument(StringWriter stringWriter, Action<OpenApiDocument> action)
Services\OpenApiDocumentServiceTestsBase.cs (3)
30public static async Task VerifyOpenApiDocument(IEndpointRouteBuilder builder, Action<OpenApiDocument> verifyOpenApiDocument) 33public static async Task VerifyOpenApiDocument(IEndpointRouteBuilder builder, OpenApiOptions openApiOptions, Action<OpenApiDocument> verifyOpenApiDocument, CancellationToken cancellationToken = default) 41public static async Task VerifyOpenApiDocument(ActionDescriptor action, Action<OpenApiDocument> verifyOpenApiDocument, CancellationToken cancellationToken = default)
Services\OpenApiGeneratorTests.cs (1)
1139public void Add(Action<EndpointBuilder> convention)
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (4)
182public async Task GetOpenApiParameters_HandlesRouteParametersWithDefaultValue(Delegate requestHandler, Action<JsonNode> assert) 352public async Task GetOpenApiParameters_HandlesRouteParameterWithValidationAttributes(Delegate requestHandler, Action<OpenApiSchema> verifySchema) 382public async Task GetOpenApiParameters_HandlesRouteParametersWithRangeAttributes(Delegate requestHandler, Action<OpenApiSchema> verifySchema) 411public async Task GetOpenApiParameters_HandlesRouteParametersWithRangeAttributes_CultureInfo(Delegate requestHandler, Action<OpenApiSchema> verifySchema)
Microsoft.AspNetCore.OutputCaching (7)
OutputCacheOptions.cs (4)
65public void AddPolicy(string name, Action<OutputCachePolicyBuilder> build) => AddPolicy(name, build, false); 73public void AddPolicy(string name, Action<OutputCachePolicyBuilder> build, bool excludeDefaultPolicy) 96public void AddBasePolicy(Action<OutputCachePolicyBuilder> build) => AddBasePolicy(build, false); 103public void AddBasePolicy(Action<OutputCachePolicyBuilder> build, bool excludeDefaultPolicy)
OutputCacheServiceCollectionExtensions.cs (1)
48public static IServiceCollection AddOutputCache(this IServiceCollection services, Action<OutputCacheOptions> configureOptions)
Policies\OutputCacheConventionBuilderExtensions.cs (2)
51public static TBuilder CacheOutput<TBuilder>(this TBuilder builder, Action<OutputCachePolicyBuilder> policy) 61public static TBuilder CacheOutput<TBuilder>(this TBuilder builder, Action<OutputCachePolicyBuilder> policy, bool excludeDefaultPolicy) where TBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
StackExchangeRedisCacheServiceCollectionExtensions.cs (2)
20/// <param name="setupAction">An <see cref="Action{RedisOutputCacheOptions}"/> to configure the provided 23public static IServiceCollection AddStackExchangeRedisOutputCache(this IServiceCollection services, Action<RedisOutputCacheOptions> setupAction)
Microsoft.AspNetCore.OutputCaching.Tests (3)
TestUtils.cs (3)
102Action<IApplicationBuilder>? configureDelegate = null, 104Action<HttpContext>? contextAction = null) 132Action<IApplicationBuilder>? configureDelegate = null,
Microsoft.AspNetCore.Owin (16)
OwinEnvironment.cs (1)
423feature => new Action<Action<object>, object>((cb, state) => {
OwinExtensions.cs (13)
10using AddMiddleware = Action<Func< 30public static AddMiddleware UseOwin(this IApplicationBuilder builder) 34AddMiddleware add = middleware => 73public static IApplicationBuilder UseOwin(this IApplicationBuilder builder, Action<AddMiddleware> pipeline) 87public static IApplicationBuilder UseBuilder(this AddMiddleware app) 98public static IApplicationBuilder UseBuilder(this AddMiddleware app, IServiceProvider serviceProvider) 161public static AddMiddleware UseBuilder(this AddMiddleware app, Action<IApplicationBuilder> pipeline) 173public static AddMiddleware UseBuilder(this AddMiddleware app, Action<IApplicationBuilder> pipeline, IServiceProvider serviceProvider)
OwinFeatureCollection.cs (2)
52var register = Prop<Action<Action<object>, object>>(OwinConstants.CommonKeys.OnSendingHeaders); 184var register = Prop<Action<Action<object>, object>>(OwinConstants.CommonKeys.OnSendingHeaders);
Microsoft.AspNetCore.Owin.Microbenchmarks (2)
Benchmarks\OwinEnvironmentBenchmark.cs (2)
80Action<IDictionary<string, object>> beforeOwinInvokeAction = null, 81Action<IDictionary<string, object>> afterOwinInvokeAction = null)
Microsoft.AspNetCore.Owin.Tests (7)
OwinExtensionTests.cs (7)
10using AddMiddleware = Action<Func< 28AddMiddleware build = list.Add; 32var builder = build.UseBuilder(applicationBuilder => 57AddMiddleware build = list.Add; 64var builder = build.UseBuilder(applicationBuilder => 92AddMiddleware build = list.Add; 98var builder = build.UseBuilder(applicationBuilder =>
Microsoft.AspNetCore.RateLimiting (5)
RateLimiterOptionsExtensions.cs (4)
27public static RateLimiterOptions AddTokenBucketLimiter(this RateLimiterOptions options, string policyName, Action<TokenBucketRateLimiterOptions> configureOptions) 56public static RateLimiterOptions AddFixedWindowLimiter(this RateLimiterOptions options, string policyName, Action<FixedWindowRateLimiterOptions> configureOptions) 85public static RateLimiterOptions AddSlidingWindowLimiter(this RateLimiterOptions options, string policyName, Action<SlidingWindowRateLimiterOptions> configureOptions) 110public static RateLimiterOptions AddConcurrencyLimiter(this RateLimiterOptions options, string policyName, Action<ConcurrencyLimiterOptions> configureOptions)
RateLimiterServiceCollectionExtensions.cs (1)
20public static IServiceCollection AddRateLimiter(this IServiceCollection services, Action<RateLimiterOptions> configureOptions)
Microsoft.AspNetCore.RateLimiting.Tests (8)
RateLimiterEndpointConventionBuilderExtensionsTests.cs (3)
23var addEnableRateLimitingAttribute = Assert.Single(testConventionBuilder.Conventions); 45var addEnableRateLimitingAttribute = Assert.Single(testConventionBuilder.Conventions); 67var addDisableRateLimitingAttribute = Assert.Single(testConventionBuilder.Conventions);
RateLimitingMiddlewareTests.cs (1)
638var addEnableRateLimitingAttribute = Assert.Single(testConventionBuilder.Conventions);
TestEndpointBuilder.cs (4)
24public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 26public void Add(Action<EndpointBuilder> convention) 33foreach (var convention in Conventions)
Microsoft.AspNetCore.Razor.Runtime (5)
Runtime\TagHelpers\TagHelperExecutionContext.cs (2)
16private readonly Action<HtmlEncoder> _startTagHelperWritingScope; 57Action<HtmlEncoder> startTagHelperWritingScope,
Runtime\TagHelpers\TagHelperScopeManager.cs (3)
26Action<HtmlEncoder> startTagHelperWritingScope, 103private readonly Action<HtmlEncoder> _startTagHelperWritingScope; 109Action<HtmlEncoder> startTagHelperWritingScope,
Microsoft.AspNetCore.Razor.Runtime.Test (2)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (2)
99Action<HtmlEncoder> startTagHelperWritingScope = _ => { }; 157Action<HtmlEncoder> startWritingScope = _ => { };
Microsoft.AspNetCore.RequestDecompression (3)
RequestDecompressionServiceExtensions.cs (1)
33public static IServiceCollection AddRequestDecompression(this IServiceCollection services, Action<RequestDecompressionOptions> configureOptions)
src\Shared\SizeLimitedStream.cs (2)
10private readonly Action<long>? _handleSizeLimit; 13public SizeLimitedStream(Stream innerStream, long? sizeLimit, Action<long>? handleSizeLimit = null)
Microsoft.AspNetCore.RequestDecompression.Tests (3)
RequestDecompressionMiddlewareTests.cs (1)
681Action<RequestDecompressionOptions> configure = null)
RequestDecompressionServiceExtensionsTests.cs (2)
15var configureOptions = (RequestDecompressionOptions options) => { }; 29Action<RequestDecompressionOptions> configureOptions = null;
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingServicesExtensions.cs (1)
35public static IServiceCollection AddResponseCaching(this IServiceCollection services, Action<ResponseCachingOptions> configureOptions)
Microsoft.AspNetCore.ResponseCaching.Tests (3)
TestUtils.cs (3)
117Action<IApplicationBuilder> configureDelegate = null, 119Action<HttpContext> contextAction = null) 142Action<IApplicationBuilder> configureDelegate = null,
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionServicesExtensions.cs (1)
34public static IServiceCollection AddResponseCompression(this IServiceCollection services, Action<ResponseCompressionOptions> configureOptions)
Microsoft.AspNetCore.ResponseCompression.Tests (2)
ResponseCompressionMiddlewareTest.cs (2)
1234Action<HttpResponse> addResponseAction = null, 1235Action<ResponseCompressionOptions> configure = null,
Microsoft.AspNetCore.Rewrite (3)
DelegateRule.cs (2)
8private readonly Action<RewriteContext> _onApplyRule; 10public DelegateRule(Action<RewriteContext> onApplyRule)
RewriteOptionsExtensions.cs (1)
32public static RewriteOptions Add(this RewriteOptions options, Action<RewriteContext> applyRule)
Microsoft.AspNetCore.Routing (54)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (4)
28/// <see cref="UseEndpoints(IApplicationBuilder, Action{IEndpointRouteBuilder})"/> for the same <see cref="IApplicationBuilder"/> 72/// <param name="configure">An <see cref="Action{IEndpointRouteBuilder}"/> to configure the provided <see cref="IEndpointRouteBuilder"/>.</param> 76/// A call to <see cref="UseEndpoints(IApplicationBuilder, Action{IEndpointRouteBuilder})"/> must be preceded by a call to 88public static IApplicationBuilder UseEndpoints(this IApplicationBuilder builder, Action<IEndpointRouteBuilder> configure)
Builder\RouteHandlerBuilder.cs (6)
12private readonly ICollection<Action<EndpointBuilder>>? _conventions; 13private readonly ICollection<Action<EndpointBuilder>>? _finallyConventions; 15internal RouteHandlerBuilder(ICollection<Action<EndpointBuilder>> conventions, ICollection<Action<EndpointBuilder>> finallyConventions) 35public void Add(Action<EndpointBuilder> convention) 51public void Finally(Action<EndpointBuilder> finalConvention)
Builder\RoutingBuilderExtensions.cs (2)
41/// <param name="action">An <see cref="Action{IRouteBuilder}"/> to configure the provided <see cref="IRouteBuilder"/>.</param> 43public static IApplicationBuilder UseRouter(this IApplicationBuilder builder, Action<IRouteBuilder> action)
DataSourceDependentCache.cs (1)
18private readonly Action<object?> _initializerWithState;
DependencyInjection\RoutingServiceCollectionExtensions.cs (1)
131Action<RouteOptions> configureOptions)
EndpointDataSource.cs (2)
62foreach (var convention in context.Conventions) 74foreach (var finallyConvention in context.FinallyConventions)
Matching\DfaNode.cs (1)
80public void Visit(Action<DfaNode> visitor)
Patterns\RoutePatternFactory.cs (3)
1071static Action<RoutePatternParameterPart> CheckDuplicateParameters(int parameterCount, string rawText) 1104Func<int, string, Action<T>>? checkDuplicates = null, 1120var check = checkDuplicates?.Invoke(combinedList.Length, rawText!);
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)
RouteEndpointDataSource.cs (10)
130RouteEntry entry, RoutePattern? groupPrefix = null, IReadOnlyList<Action<EndpointBuilder>>? groupConventions = null, IReadOnlyList<Action<EndpointBuilder>>? groupFinallyConventions = null) 204foreach (var groupConvention in groupConventions) 236foreach (var entrySpecificConvention in entry.Conventions) 271foreach (var entryFinallyConvention in entry.FinallyConventions) 280foreach (var groupFinallyConvention in groupFinallyConventions) 364private sealed class ThrowOnAddAfterEndpointBuiltConventionCollection : List<Action<EndpointBuilder>>, ICollection<Action<EndpointBuilder>> 370void ICollection<Action<EndpointBuilder>>.Add(Action<EndpointBuilder> convention)
RouteGroupBuilder.cs (10)
24private readonly List<Action<EndpointBuilder>> _conventions = new(); 25private readonly List<Action<EndpointBuilder>> _finallyConventions = new(); 37void IEndpointConventionBuilder.Add(Action<EndpointBuilder> convention) => _conventions.Add(convention); 38void IEndpointConventionBuilder.Finally(Action<EndpointBuilder> finalConvention) => _finallyConventions.Add(finalConvention); 51GetGroupedEndpointsWithNullablePrefix(null, Array.Empty<Action<EndpointBuilder>>(), 52Array.Empty<Action<EndpointBuilder>>(), _routeGroupBuilder._outerEndpointRouteBuilder.ServiceProvider); 59IReadOnlyList<Action<EndpointBuilder>> conventions, 60IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 90IReadOnlyList<Action<EndpointBuilder>> conventions, 91IReadOnlyList<Action<EndpointBuilder>> finallyConventions,
RouteGroupContext.cs (6)
23/// via <see cref="IEndpointConventionBuilder.Add(Action{EndpointBuilder})"/>. These should be applied in order when building every <see cref="RouteEndpoint"/> 26public IReadOnlyList<Action<EndpointBuilder>> Conventions { get; init; } = Array.Empty<Action<EndpointBuilder>>(); 30/// via <see cref="IEndpointConventionBuilder.Add(Action{EndpointBuilder})"/>. These should be applied in LIFO order when building every <see cref="RouteEndpoint"/> 33public IReadOnlyList<Action<EndpointBuilder>> FinallyConventions { get; init; } = Array.Empty<Action<EndpointBuilder>>();
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (2)
58public void Add(Action<EndpointBuilder> convention) 63public void Finally(Action<EndpointBuilder> finalConvention)
Microsoft.AspNetCore.Routing.FunctionalTests (5)
src\Shared\SizeLimitedStream.cs (2)
10private readonly Action<long>? _handleSizeLimit; 13public SizeLimitedStream(Stream innerStream, long? sizeLimit, Action<long>? handleSizeLimit = null)
WebHostBuilderExtensionsTest.cs (3)
17public static TheoryData<Action<IRouteBuilder>, HttpRequestMessage, string> MatchesRequest 21return new TheoryData<Action<IRouteBuilder>, HttpRequestMessage, string>() 76public async Task UseRouter_MapGet_MatchesRequest(Action<IRouteBuilder> routeBuilder, HttpRequestMessage request, string expected)
Microsoft.AspNetCore.Routing.Tests (77)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (4)
142Action<IEndpointConventionBuilder> genericSetup, 143Action<RouteHandlerBuilder> specificSetup, 144Action<EndpointBuilder> assert) 158public void Add(Action<EndpointBuilder> convention)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
233var @delegate = (HttpContext context) => context.Items.Add("param", "Value");
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (6)
857new object[] { (Action<IEndpointConventionBuilder>)((IEndpointConventionBuilder builder) => builder.AddEndpointFilter(new IncrementArgFilter())) }, 858new object[] { (Action<IEndpointConventionBuilder>)((IEndpointConventionBuilder builder) => builder.AddEndpointFilter<IEndpointConventionBuilder, IncrementArgFilter>()) } 884new object[] { (Action<IEndpointConventionBuilder>)WithFilter }, 885new object[] { (Action<IEndpointConventionBuilder>)WithFilterFactory } 915public async Task AddEndpointFilterMethods_CanRegisterFilterWithClassAndDelegateImplementations(Action<IEndpointConventionBuilder> addFilter) 931public async Task AddEndpointFilterMethods_WorkWithMapGroup(Action<IEndpointConventionBuilder> addFilter)
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (11)
22var convention = Assert.Single(builder.Conventions); 254public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 261public void Add(Action<EndpointBuilder> convention) 267public void Finally(Action<EndpointBuilder> finalConvention) 282private List<Action<EndpointBuilder>> _conventions; 283private List<Action<EndpointBuilder>> _finallyConventions; 292public void Add(Action<EndpointBuilder> convention) 304public void Finally(Action<EndpointBuilder> finalConvention) 316foreach (var convention in conventions) 325foreach (var finallyConvention in finallyConventions)
CompositeEndpointDataSourceTest.cs (12)
44var conventions = Array.Empty<Action<EndpointBuilder>>(); 45var finallyConventions = Array.Empty<Action<EndpointBuilder>>(); 72Conventions = Array.Empty<Action<EndpointBuilder>>(), 73FinallyConventions = Array.Empty<Action<EndpointBuilder>>(), 291var conventions = new Action<EndpointBuilder>[] 295var finallyConventions = Array.Empty<Action<EndpointBuilder>>(); 331var finallyConventions = new Action<EndpointBuilder>[] 341var conventions = Array.Empty<Action<EndpointBuilder>>(); 383var conventions = new Action<EndpointBuilder>[] 387var finallyConventions = new Action<EndpointBuilder>[] 442var finallyConventions = new Action<EndpointBuilder>[] 459var conventions = Array.Empty<Action<EndpointBuilder>>();
DefaultLinkGeneratorProcessTemplateTest.cs (11)
260Action<IServiceCollection> configure = (s) => 289Action<IServiceCollection> configure = (s) => 345Action<IServiceCollection> configure = (s) => 378Action<IServiceCollection> configure = (s) => 412Action<IServiceCollection> configure = (s) => 442Action<IServiceCollection> configure = (s) => 477Action<IServiceCollection> configure = (s) => 510Action<IServiceCollection> configure = (s) => 543Action<IServiceCollection> configure = (s) => 581Action<IServiceCollection> configure = (s) => 619Action<IServiceCollection> configure = (s) =>
DefaultLinkGeneratorTest.cs (4)
175Action<IServiceCollection> configureServices = s => 201Action<IServiceCollection> configureServices = s => 313Action<IServiceCollection> configure = (s) => 339Action<IServiceCollection> configure = (s) =>
EndpointRoutingMiddlewareTest.cs (2)
491private readonly Action<KeyValuePair<string, object>> _onNext; 493public DelegateObserver(Action<KeyValuePair<string, object>> onNext)
LinkGeneratorTestBase.cs (2)
40Action<IServiceCollection> configureServices, 52Action<IServiceCollection> configureServices,
LinkParserTestBase.cs (2)
32Action<IServiceCollection> configureServices, 44Action<IServiceCollection> configureServices,
Matching\DfaMatcherBuilderTest.cs (2)
3589public Action<IReadOnlyList<Endpoint>> OnGetEdges { get; set; } 3631public Action<IReadOnlyList<Endpoint>> OnGetEdges { get; set; }
Patterns\RoutePatternFactoryTest.cs (1)
737static Action<RoutePatternPathSegment> AssertLiteral(string literal)
RequestDelegateRouteBuilderExtensionsTest.cs (12)
17public static TheoryData<Action<IRouteBuilder>, Action<HttpContext>> MatchingActions 21return new TheoryData<Action<IRouteBuilder>, Action<HttpContext>>() 44Action<IRouteBuilder> routeSetup, 45Action<HttpContext> requestSetup) 65public static TheoryData<Action<IRouteBuilder>, Action<HttpContext>> NonmatchingActions 69return new TheoryData<Action<IRouteBuilder>, Action<HttpContext>>() 102Action<IRouteBuilder> routeSetup, 103Action<HttpContext> requestSetup)
RouteCollectionTest.cs (3)
591Action<RouteOptions> options = null) 617Action<RouteOptions> options = null, 692private static Action<RouteOptions> GetRouteOptions(
TestObjects\TestMatcher.cs (2)
12private readonly Action<HttpContext> _setEndpointCallback; 14public TestMatcher(bool isHandled, Action<HttpContext> setEndpointCallback = null)
TestObjects\TestMatcherFactory.cs (2)
15private readonly Action<HttpContext> _setEndpointCallback; 17public TestMatcherFactory(bool isHandled, Action<HttpContext> setEndpointCallback = null)
Microsoft.AspNetCore.Server.HttpSys (3)
AsyncAcceptContext.cs (1)
283public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags)
RequestProcessing\RequestContext.cs (1)
17private static readonly Action<object?> AbortDelegate = Abort;
WebHostBuilderHttpSysExtensions.cs (1)
68public static IWebHostBuilder UseHttpSys(this IWebHostBuilder hostBuilder, Action<HttpSysOptions> options)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (11)
Listener\Utilities.cs (1)
86internal static HttpSysListener CreateServer(Action<HttpSysOptions> configureOptions)
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
13public static IServiceCollection UseHttp2Cat(this IServiceCollection services, Action<Http2CatOptions> configureOptions)
src\Shared\Http2cat\Http2Utilities.cs (2)
897internal Task ReceiveHeadersAsync(int expectedStreamId, Action<IDictionary<string, string>> verifyHeaders = null) 900internal async Task ReceiveHeadersAsync(int expectedStreamId, bool endStream = false, Action<IDictionary<string, string>> verifyHeaders = null)
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
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)
Utilities.cs (2)
37internal static MessagePump CreatePump(Action<HttpSysOptions> configureOptions, ILoggerFactory loggerFactory = null) 44internal static IServer CreateDynamicHttpServer(string basePath, out string root, out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app)
Microsoft.AspNetCore.Server.IIS (13)
Core\IISServerSetupFilter.cs (2)
13public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Core\IO\AsyncIOOperation.cs (7)
13private static readonly Action<object?> CallbackCompleted = _ => { Debug.Assert(false, "Should not be invoked"); }; 15private Action<object?>? _continuation; 31public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) 40var previousContinuation = Interlocked.CompareExchange(ref _continuation, continuation, null); 114var continuation = Interlocked.CompareExchange(ref _continuation, CallbackCompleted, null); 141public Action<object?> Continuation { get; } 144public AsyncContinuation(Action<object?> continuation, object? state)
Core\NativeSafeHandle.cs (1)
44public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags)
src\Shared\RazorViews\HelperResult.cs (2)
18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; }
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
Microsoft.AspNetCore.Server.IISIntegration (2)
IISSetupFilter.cs (2)
23public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Common\DeploymentParameters.cs (1)
175public Action<DeploymentParameters> UserAdditionalCleanup { get; set; }
Common\RetryHelper.cs (1)
71Action<Exception> exceptionBlock,
Deployers\SelfHostDeployer.cs (1)
25public Action<string> ProcessOutputListener { get; set; }
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (3)
IISDeployer.cs (1)
469private void RetryServerManagerAction(Action<ServerManager> action)
IISDeployerBase.cs (1)
23public void ModifyApplicationHostConfig(Action<XElement> action)
IISDeploymentParameterExtensions.cs (1)
16public static void AddServerConfigAction(this IISDeploymentParameters parameters, Action<XElement> action)
Microsoft.AspNetCore.Server.Kestrel (2)
WebHostBuilderKestrelExtensions.cs (2)
115public static IWebHostBuilder UseKestrel(this IWebHostBuilder hostBuilder, Action<KestrelServerOptions> options) 132public static IWebHostBuilder ConfigureKestrel(this IWebHostBuilder hostBuilder, Action<KestrelServerOptions> options)
Microsoft.AspNetCore.Server.Kestrel.Core (38)
Internal\Infrastructure\ConnectionManager.cs (2)
10private readonly Action<KestrelConnection> _walkCallback; 67public void Walk(Action<KestrelConnection> callback)
Internal\Infrastructure\KestrelConnection.cs (3)
12private List<(Action<object> handler, object state)>? _heartbeatHandlers; 62public void OnHeartbeat(Action<object> action, object state) 68_heartbeatHandlers = new List<(Action<object> handler, object state)>();
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))
KestrelServerOptions.cs (12)
194private Action<ListenOptions> EndpointDefaults { get; set; } = _ => { }; 199private Action<HttpsConnectionAdapterOptions> HttpsDefaults { get; set; } = _ => { }; 259public void ConfigureEndpointDefaults(Action<ListenOptions> configureOptions) 275public void ConfigureHttpsDefaults(Action<HttpsConnectionAdapterOptions> configureOptions) 485public void Listen(IPAddress address, int port, Action<ListenOptions> configure) 513public void Listen(IPEndPoint endPoint, Action<ListenOptions> configure) 522public void Listen(EndPoint endPoint, Action<ListenOptions> configure) 543public void ListenLocalhost(int port, Action<ListenOptions> configure) 561public void ListenAnyIP(int port, Action<ListenOptions> configure) 583public void ListenUnixSocket(string socketPath, Action<ListenOptions> configure) 611public void ListenHandle(ulong handle, Action<ListenOptions> configure) 633public void ListenNamedPipe(string pipeName, Action<ListenOptions> configure)
ListenOptionsHttpsExtensions.cs (8)
65Action<HttpsConnectionAdapterOptions> configureOptions) 115Action<HttpsConnectionAdapterOptions> configureOptions) 144Action<HttpsConnectionAdapterOptions> configureOptions) 162public static ListenOptions UseHttps(this ListenOptions listenOptions, Action<HttpsConnectionAdapterOptions> configureOptions) 187/// <see cref="KestrelServerOptions.ConfigureHttpsDefaults(Action{HttpsConnectionAdapterOptions})"/>. 211/// <see cref="KestrelServerOptions.ConfigureHttpsDefaults(Action{HttpsConnectionAdapterOptions})"/>. 224/// <see cref="KestrelServerOptions.ConfigureHttpsDefaults(Action{HttpsConnectionAdapterOptions})"/>. 243/// <see cref="KestrelServerOptions.ConfigureHttpsDefaults(Action{HttpsConnectionAdapterOptions})"/>.
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
Systemd\KestrelServerOptionsSystemdExtensions.cs (1)
37public static KestrelServerOptions UseSystemd(this KestrelServerOptions options, Action<ListenOptions> configure)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
CertificatePathWatcherTests.cs (1)
502IDisposable IChangeToken.RegisterChangeCallback(Action<object> callback, object state) => DummyDisposable.Instance;
Http3\Http3HttpProtocolFeatureCollectionTests.cs (1)
100void IStreamClosedFeature.OnClosed(Action<object> callback, object state)
KestrelServerTests.cs (2)
768mockChangeToken.Setup(t => t.RegisterChangeCallback(It.IsAny<Action<object>>(), It.IsAny<object>())).Returns<Action<object>, object>((callback, state) =>
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (8)
SchedulerBenchmark.cs (1)
31private Action<object> _action;
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (4)
630internal async Task WaitForStreamErrorAsync(Http3ErrorCode protocolError, Action<string> matchExpectedErrorMessage = null, string expectedErrorMessage = null) 1084public void OnHeartbeat(Action<object> action, object state) 1096private readonly record struct CloseAction(Action<object> Callback, object State); 1278public void OnClosed(Action<object> callback, object state)
src\Servers\Kestrel\Transport.Sockets\src\Internal\IOQueue.cs (3)
18public override void Schedule(Action<object?> action, object? state) 69public readonly Action<object?> Callback; 72public Work(Action<object?> callback, object? state)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
WebHostBuilderNamedPipeExtensions.cs (1)
56public static IWebHostBuilder UseNamedPipes(this IWebHostBuilder hostBuilder, Action<NamedPipeTransportOptions> configureOptions)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Internal\QuicStreamContext.FeatureCollection.cs (3)
20public Action<object?> Callback { get; } 24public OnCloseRegistration(Action<object?> callback, object? state) 103void IStreamClosedFeature.OnClosed(Action<object?> callback, object? state)
WebHostBuilderQuicExtensions.cs (1)
40public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder, Action<QuicTransportOptions> configureOptions)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (4)
QuicConnectionContextTests.cs (3)
778private readonly List<(Action<object> Action, object State)> _actions = new List<(Action<object>, object)>(); 780public void OnHeartbeat(Action<object> action, object state)
QuicTestHelpers.cs (1)
109public void OnHeartbeat(Action<object> action, object state)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (9)
Internal\IOQueue.cs (3)
18public override void Schedule(Action<object?> action, object? state) 69public readonly Action<object?> Callback; 72public Work(Action<object?> callback, object? state)
Internal\SocketAwaitableEventArgs.cs (5)
17private static readonly Action<object?> _continuationCompleted = _ => { }; 25private volatile Action<object?>? _continuation; 35var c = _continuation; 71public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) 74var prevContinuation = Interlocked.CompareExchange(ref _continuation, continuation, null);
WebHostBuilderSocketExtensions.cs (1)
53public static IWebHostBuilder UseSockets(this IWebHostBuilder hostBuilder, Action<SocketTransportOptions> configureOptions)
Microsoft.AspNetCore.Session (1)
SessionServiceCollectionExtensions.cs (1)
38public static IServiceCollection AddSession(this IServiceCollection services, Action<SessionOptions> configure)
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)
src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
24public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _core.OnCompleted(continuation, state, token, flags);
Microsoft.AspNetCore.SignalR (6)
HubEndpointConventionBuilder.cs (2)
22public void Add(Action<EndpointBuilder> convention) 28public void Finally(Action<EndpointBuilder> finalConvention)
HubEndpointRouteBuilderExtensions.cs (1)
39public static HubEndpointConventionBuilder MapHub<[DynamicallyAccessedMembers(HubAccessibility)] THub>(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, Action<HttpConnectionDispatcherOptions>? configureOptions) where THub : Hub
SignalRDependencyInjectionExtensions.cs (3)
23public static ISignalRServerBuilder AddHubOptions<THub>(this ISignalRServerBuilder signalrBuilder, Action<HubOptions<THub>> configure) where THub : Hub 54/// <param name="configure">An <see cref="Action{HubOptions}"/> to configure the provided <see cref="HubOptions"/>.</param> 56public static ISignalRServerBuilder AddSignalR(this IServiceCollection services, Action<HubOptions> configure)
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)
HubConnectionBuilderExtensions.cs (1)
22public static IHubConnectionBuilder ConfigureLogging(this IHubConnectionBuilder hubConnectionBuilder, Action<ILoggingBuilder> configureLogging)
HubConnectionExtensions.cs (4)
15private static IDisposable On(this HubConnection hubConnection, string methodName, Type[] parameterTypes, Action<object?[]> handler) 19var currentHandler = (Action<object?[]>)state; 47public static IDisposable On<T1>(this HubConnection hubConnection, string methodName, Action<T1> handler)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionFactoryTests.cs (1)
82Action<ClientWebSocketOptions> webSocketConfig = options => { };
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionContext.cs (1)
25private static readonly Action<object?> _cancelReader = state => ((PipeReader)state!).CancelPendingRead();
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
JsonProtocolDependencyInjectionExtensions.cs (1)
36public static TBuilder AddJsonProtocol<TBuilder>(this TBuilder builder, Action<JsonHubProtocolOptions> configure) where TBuilder : ISignalRBuilder
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
MessagePackProtocolDependencyInjectionExtensions.cs (1)
39public static TBuilder AddMessagePackProtocol<TBuilder>(this TBuilder builder, Action<MessagePackHubProtocolOptions> configure) where TBuilder : ISignalRBuilder
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
NewtonsoftJsonProtocolDependencyInjectionExtensions.cs (1)
39public static TBuilder AddNewtonsoftJsonProtocol<TBuilder>(this TBuilder builder, Action<NewtonsoftJsonHubProtocolOptions> configure) where TBuilder : ISignalRBuilder
Microsoft.AspNetCore.SignalR.Specification.Tests (3)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (3)
26private List<(Action<object> handler, object state)> _heartbeatHandlers; 322public void OnHeartbeat(Action<object> action, object state) 328_heartbeatHandlers = new List<(Action<object> handler, object state)>();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisDependencyInjectionExtensions.cs (2)
45public static ISignalRServerBuilder AddStackExchangeRedis(this ISignalRServerBuilder signalrBuilder, Action<RedisOptions> configure) 59public static ISignalRServerBuilder AddStackExchangeRedis(this ISignalRServerBuilder signalrBuilder, string redisConnectionString, Action<RedisOptions> configure)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisEndToEnd.cs (1)
317Action<IHubConnectionBuilder> customizeConnection = null)
Microsoft.AspNetCore.SignalR.Tests (3)
HubConnectionHandlerTestUtils\Utils.cs (2)
56public static IServiceProvider CreateServiceProvider(Action<ServiceCollection> addServices = null, ILoggerFactory loggerFactory = null) 75public static Connections.ConnectionHandler GetHubConnectionHandler(Type hubType, ILoggerFactory loggerFactory = null, Action<ServiceCollection> addServices = null)
MapSignalRTests.cs (1)
395private IHost BuildWebHost(Action<IEndpointRouteBuilder> configure)
Microsoft.AspNetCore.SignalR.Tests.Utils (10)
src\Shared\SignalR\FunctionalTestBase.cs (1)
40public Task<InProcessTestServer<T>> StartServer<T>(Func<WriteContext, bool> expectedErrorsFilter = null, Action<KestrelServerOptions> configureKestrelServerOptions = null) where T : class
src\Shared\SignalR\InProcessTestServer.cs (5)
24internal abstract event Action<LogRecord> ServerLogged; 44private readonly Action<KestrelServerOptions> _configureKestrelServerOptions; 49internal override event Action<LogRecord> ServerLogged 61public static async Task<InProcessTestServer<TStartup>> StartServer(ILoggerFactory loggerFactory, Action<KestrelServerOptions> configureKestrelServerOptions = null, IDisposable disposable = null) 72private InProcessTestServer(ILoggerFactory loggerFactory, Action<KestrelServerOptions> configureKestrelServerOptions, IDisposable disposable)
src\Shared\SignalR\LogSinkProvider.cs (1)
19public event Action<LogRecord> RecordLogged;
TestClient.cs (3)
26private List<(Action<object> handler, object state)> _heartbeatHandlers; 322public void OnHeartbeat(Action<object> action, object state) 328_heartbeatHandlers = new List<(Action<object> handler, object state)>();
Microsoft.AspNetCore.SpaProxy (2)
SpaProxyStartupFilter.cs (2)
27public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.SpaServices.Extensions (2)
SpaApplicationBuilderExtensions.cs (1)
28public static void UseSpa(this IApplicationBuilder app, Action<ISpaBuilder> configuration)
StaticFiles\SpaStaticFilesExtensions.cs (1)
25Action<SpaStaticFilesOptions>? configuration = null)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (2)
SpaProxyTests.cs (1)
19private static (HttpContext, HttpClient) GetHttpContextAndClient(string path, string queryString, Action<HttpRequestMessage> callback)
SpaServicesExtensionsTests.cs (1)
56private IServiceProvider GetServiceProvider(Action<SpaStaticFilesOptions> configuration = null)
Microsoft.AspNetCore.StaticAssets (12)
StaticAssetEndpointDataSource.cs (2)
21private readonly List<Action<EndpointBuilder>> _conventions = []; 22private readonly List<Action<EndpointBuilder>> _finallyConventions = [];
StaticAssetEndpointFactory.cs (4)
19public Endpoint Create(StaticAssetDescriptor resource, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions) 50foreach (var convention in conventions) 55foreach (var finallyConvention in finallyConventions)
StaticAssetsEndpointConventionBuilder.cs (6)
16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal StaticAssetsEndpointConventionBuilder(object lck, bool isBuildManifest, List<StaticAssetDescriptor> descriptors, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions) 33public void Add(Action<EndpointBuilder> convention) 43public void Finally(Action<EndpointBuilder> convention)
Microsoft.AspNetCore.StaticFiles (2)
StaticFileOptions.cs (2)
15internal static readonly Action<StaticFileResponseContext> _defaultOnPrepareResponse = _ => { }; 69public Action<StaticFileResponseContext> OnPrepareResponse { get; set; }
Microsoft.AspNetCore.StaticFiles.Tests (3)
StaticFilesTestServer.cs (3)
15public static async Task<IHost> Create(Action<IApplicationBuilder> configureApp, Action<IServiceCollection> configureServices = null) 17Action<IServiceCollection> defaultConfigureServices = services => { };
Microsoft.AspNetCore.TestHost (29)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-rc.1.25420.121\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (6)
65Action<object>? configureHostBuilder = null, 66Action<Exception?>? entrypointCompleted = null) 205private readonly Action<object>? _configure; 206private readonly Action<Exception?>? _entrypointCompleted; 209public HostingListener(string[] args, MethodInfo entryPoint, TimeSpan waitTimeout, bool stopApplication, Action<object>? configure, Action<Exception?>? entrypointCompleted)
ClientHandler.cs (2)
23private readonly Action<HttpContext> _additionalContextConfiguration; 32internal ClientHandler(PathString pathBase, ApplicationWrapper application, Action<HttpContext>? additionalContextConfiguration = null)
HttpContextBuilder.cs (2)
27private Action<HttpContext>? _responseReadCompleteCallback; 75internal void RegisterResponseReadCompleteCallback(Action<HttpContext> responseReadCompleteCallback)
RequestBuilder.cs (1)
36public RequestBuilder And(Action<HttpRequestMessage> configure)
RequestLifetimeFeature.cs (2)
11private readonly Action<Exception> _abort; 13public RequestLifetimeFeature(Action<Exception> abort)
ResponseFeature.cs (2)
13private readonly Action<Exception> _abort; 20public ResponseFeature(Action<Exception> abort)
TestServer.cs (2)
168public HttpMessageHandler CreateHandler(Action<HttpContext> additionalContextConfiguration) 212public async Task<HttpContext> SendAsync(Action<HttpContext> configureContext, CancellationToken cancellationToken = default)
WebHostBuilderExtensions.cs (11)
41public static IWebHostBuilder UseTestServer(this IWebHostBuilder builder, Action<TestServerOptions> configureOptions) 79public static IWebHostBuilder ConfigureTestServices(this IWebHostBuilder webHostBuilder, Action<IServiceCollection> servicesConfiguration) 108public static IWebHostBuilder ConfigureTestContainer<TContainer>(this IWebHostBuilder webHostBuilder, Action<TContainer> servicesConfiguration) 214private readonly Action<IServiceCollection> _servicesConfiguration; 216public ConfigureTestServicesStartupConfigureServicesFilter(Action<IServiceCollection> servicesConfiguration) 223public Action<IServiceCollection> ConfigureServices(Action<IServiceCollection> next) => 235private readonly Action<TContainer> _servicesConfiguration; 237public ConfigureTestServicesStartupConfigureContainerFilter(Action<TContainer> containerConfiguration) 244public Action<TContainer> ConfigureContainer(Action<TContainer> next) =>
WebSocketClient.cs (1)
44public Action<HttpRequest>? ConfigureRequest { get; set; }
Microsoft.AspNetCore.TestHost.Tests (8)
ClientHandlerTests.cs (2)
643Action<IFeatureCollection> _inspector; 645public InspectingApplication(Action<IFeatureCollection> inspector)
TestServerTests.cs (6)
495public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 578public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 629public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.Tests (14)
WebApplicationTests.cs (14)
46public delegate WebApplicationBuilder WebApplicationBuilderConstructorFunc(WebApplicationOptions options, Action<IHostBuilder> configureDefaults); 138private static WebApplicationBuilder WebApplicationBuilderConstructor(WebApplicationOptions options, Action<IHostBuilder> configureDefaults) 140private static WebApplicationBuilder WebApplicationSlimBuilderConstructor(WebApplicationOptions options, Action<IHostBuilder> configureDefaults) 142private static WebApplicationBuilder WebApplicationEmptyBuilderConstructor(WebApplicationOptions options, Action<IHostBuilder> configureDefaults) 2906public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 2935public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 2973private readonly Action<IHostBuilder> _configure; 2978public HostingListener(Action<IHostBuilder> configure) 3144public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 3160public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.WebSockets (1)
WebSocketsDependencyInjectionExtensions.cs (1)
20public static IServiceCollection AddWebSockets(this IServiceCollection services, Action<WebSocketOptions> configure)
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
126public async Task DeployTestAndAddToSpec(ServerType server, bool ssl, string environment, CancellationToken cancellationToken, Action<AutobahnExpectations> expectationConfig = null)
Microsoft.AspNetCore.WebSockets.Tests (2)
KestrelWebSocketHelpers.cs (2)
18public static IAsyncDisposable CreateServer(ILoggerFactory loggerFactory, out int port, Func<HttpContext, Task> app, Action<WebSocketOptions> configure = null) 22Action<IApplicationBuilder> startup = builder =>
Microsoft.AspNetCore.WebUtilities.Tests (2)
HttpRequestStreamReaderTest.cs (1)
376public static void StreamDisposed_ExpectedObjectDisposedException(Action<HttpRequestStreamReader> action)
HttpResponseStreamWriterTest.cs (1)
764public static void StreamDisposed_ExpectedObjectDisposedException(Action<HttpResponseStreamWriter> action)
Microsoft.Authentication.WebAssembly.Msal (3)
MsalWebAssemblyServiceCollectionExtensions.cs (3)
26public static IRemoteAuthenticationBuilder<RemoteAuthenticationState, RemoteUserAccount> AddMsalAuthentication(this IServiceCollection services, Action<RemoteAuthenticationOptions<MsalProviderOptions>> configure) 40this IServiceCollection services, Action<RemoteAuthenticationOptions<MsalProviderOptions>> configure) 56this IServiceCollection services, Action<RemoteAuthenticationOptions<MsalProviderOptions>> configure)
Microsoft.Build.Framework (5)
BinaryTranslator.cs (2)
835public void WithInterning(IEqualityComparer<string> comparer, int initialCapacity, Action<ITranslator> internBlock) 1681public void WithInterning(IEqualityComparer<string> comparer, int initialCapacity, Action<ITranslator> internBlock)
ImmutableDictionaryExtensions.cs (2)
30Action<string> verifyThrowKey) 37Action<string> verifyThrowKey)
ITranslator.cs (1)
430void WithInterning(IEqualityComparer<string> comparer, int initialCapacity, Action<ITranslator> internBlock);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (6)
CscTests.cs (2)
180Action<string> test = (s) => 196Action<string> test = (s) =>
CsiTests.cs (1)
23Action<string> test = (s) =>
TestUtilities\TestableCompilerServerLogger.cs (1)
13public Action<string> LogFunc { get; set; } = delegate { throw new InvalidOperationException(); };
VbcTests.cs (2)
181Action<string> test = (s) => 197Action<string> test = (s) =>
Microsoft.Cci.Extensions (3)
HostEnvironment.cs (1)
719private static IEnumerable<string> GetFilePaths(IEnumerable<string> paths, Action<string> perResolvedPathAction, bool recursive = false)
Writers\CSharp\CSDeclarationWriter.cs (1)
540private void WriteList<T>(IEnumerable<T> list, Action<T> writeItem)
Writers\Syntax\ISyntaxWriter.cs (1)
39public static void WriteList<T>(this ISyntaxWriter writer, IEnumerable<T> list, Action<T> writeItem, string delimiter = ",", bool addSpaceAfterDelimiter = true)
Microsoft.CodeAnalysis (223)
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
815Action<Diagnostic> addExceptionDiagnostic, 1955internal static Action<Diagnostic, CancellationToken> GetDiagnosticSink(Action<Diagnostic> addDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds)
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (1)
22public readonly Action<Diagnostic> AddDiagnosticAction;
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\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
61Action<Diagnostic> reportDiagnostic,
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\DiagnosticAnalysisContextHelpers.cs (5)
19internal static void VerifyArguments<TContext>(Action<TContext> action) 24internal static void VerifyArguments<TContext>(Action<TContext> action, ImmutableArray<SymbolKind> symbolKinds) 30internal static void VerifyArguments<TContext, TLanguageKindEnum>(Action<TContext> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) 37internal static void VerifyArguments<TContext>(Action<TContext> action, ImmutableArray<OperationKind> operationKinds) 109private static void VerifyAction<TContext>(Action<TContext> action)
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)
InternalUtilities\RoslynParallel.cs (2)
17/// <inheritdoc cref="Parallel.For(int, int, ParallelOptions, Action{int})"/> 18public static ParallelLoopResult For(int fromInclusive, int toExclusive, Action<int> body, CancellationToken cancellationToken)
InternalUtilities\UICultureUtilities.cs (7)
16private static readonly Action<CultureInfo>? s_setCurrentUICulture; 18private static bool TryGetCurrentUICultureSetter([NotNullWhen(returnValue: true)] out Action<CultureInfo>? setter) 46setter = (Action<CultureInfo>)currentUICultureSetter.CreateDelegate(typeof(Action<CultureInfo>)); 56private static bool TryGetCurrentThreadUICultureSetter([NotNullWhen(returnValue: true)] out Action<CultureInfo>? setter) 144public static Action<T> WithCurrentUICulture<T>(Action<T> action)
SourceGeneration\GeneratorContexts.cs (4)
202/// <param name="callback">An <see cref="Action{T}"/> that accepts a <see cref="GeneratorPostInitializationContext"/> that will be invoked after initialization.</param> 203public void RegisterForPostInitialization(Action<GeneratorPostInitializationContext> callback) 221internal Action<IncrementalGeneratorPostInitializationContext>? PostInitCallback { get; set; } 252/// Context passed to a source generator when it has opted-in to PostInitialization via <see cref="GeneratorInitializationContext.RegisterForPostInitialization(Action{GeneratorPostInitializationContext})"/>
SourceGeneration\GeneratorTimerExtensions.cs (2)
48private readonly Action<TimeSpan>? _callback; 66public RunTimer(Action<TimeSpan> callback, Func<TimeSpan, TimeSpan>? adjustRunTime = null)
SourceGeneration\IncrementalContexts.cs (2)
77public void RegisterPostInitializationOutput(Action<IncrementalGeneratorPostInitializationContext> callback) => _outputNodes.Add(new PostInitOutputNode(callback.WrapUserAction(CatchAnalyzerExceptions), _embeddedAttributeDefinition)); 100/// Context passed to an incremental generator when it has registered an output via <see cref="IncrementalGeneratorInitializationContext.RegisterPostInitializationOutput(Action{IncrementalGeneratorPostInitializationContext})"/>
SourceGeneration\Nodes\IIncrementalGeneratorOutputNode.cs (1)
43/// A post-initialization output, which will be visible to later phases, registered via <see cref="IncrementalGeneratorInitializationContext.RegisterPostInitializationOutput(Action{IncrementalGeneratorPostInitializationContext})"/>
SourceGeneration\Nodes\InputNode.cs (3)
25private readonly Action<IIncrementalGeneratorOutputNode> _registerOutput; 35private InputNode(Func<DriverStateTable.Builder, ImmutableArray<T>> getInput, Action<IIncrementalGeneratorOutputNode>? registerOutput, IEqualityComparer<T>? inputComparer = null, IEqualityComparer<T>? comparer = null, string? name = null) 118public InputNode<T> WithRegisterOutput(Action<IIncrementalGeneratorOutputNode> registerOutput) => new InputNode<T>(_getInput, registerOutput, _inputComparer, _comparer, _name);
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (2)
17private readonly Action<IIncrementalGeneratorOutputNode> _registerOutput; 22Action<IIncrementalGeneratorOutputNode> registerOutput,
SourceGeneration\Nodes\SyntaxValueProvider.cs (2)
20private readonly Action<IIncrementalGeneratorOutputNode> _registerOutput; 26Action<IIncrementalGeneratorOutputNode> registerOutput,
SourceGeneration\UserFunction.cs (1)
82internal static Action<TInput, CancellationToken> WrapUserAction<TInput>(this Action<TInput> userAction, bool catchAnalyzerExceptions)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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,
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_IdRangeAndCategoryValidation.cs (1)
71Action<Diagnostic> addDiagnostic)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (1)
284Action<Diagnostic> addDiagnostic)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Microsoft.CodeAnalysis.AnalyzerUtilities (45)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PredicatedAnalysisData.cs (1)
442protected void AssertValidPredicatedAnalysisData(Action<DictionaryAnalysisData<TKey, TValue>> assertValidAnalysisData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Microsoft.CodeAnalysis.BannedApiAnalyzers (51)
RestrictedInternalsVisibleToAnalyzer.cs (1)
189Action<Diagnostic> reportDiagnostic,
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
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\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
73public void AnalyzeAssemblyOrModuleAttribute(SyntaxNode attributeSyntax, SemanticModel model, Action<Diagnostic> reportDiagnostic, CancellationToken cancellationToken)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
89Action<Diagnostic> reportDiagnostic, 612Action<Diagnostic> reportDiagnostic,
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
122Action<Diagnostic> reportDiagnostic,
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\CodeActions\CSharpCodeFixVerifier`2+Test.cs (1)
83public Action<ImmutableArray<CodeAction>>? CodeActionsVerifier { get; set; }
Microsoft.CodeAnalysis.Collections.Package (15)
Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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)
Binder\Binder_Attributes.cs (6)
31Action<AttributeSyntax>? beforeAttributePartBound, 32Action<AttributeSyntax>? afterAttributePartBound, 77Action<AttributeSyntax>? beforeAttributePartBound, 78Action<AttributeSyntax>? afterAttributePartBound, 128Action<AttributeSyntax>? beforeAttributePartBound, 129Action<AttributeSyntax>? afterAttributePartBound,
Binder\EarlyWellKnownAttributeBinder.cs (4)
28Action<AttributeSyntax> beforeAttributePartBound, 29Action<AttributeSyntax> afterAttributePartBound, 44Action<AttributeSyntax> beforeAttributePartBound, 45Action<AttributeSyntax> afterAttributePartBound,
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)
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
260public static void VisitScopeTree(Scope treeRoot, Action<Scope> action)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
512Action<BoundExpression> addCode, 616Action<BoundExpression> addCode,
Symbols\Symbol_Attributes.cs (2)
306Action<AttributeSyntax>? beforeAttributePartBound = null, 307Action<AttributeSyntax>? afterAttributePartBound = null)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
320Name: nameof(Func<>) or nameof(Action<>),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
87Action<StatementSyntax> removeStatement,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (2)
213private void ProduceConflicts(SimpleNameSyntax node, Action<INamespaceSymbol> addConflict, CancellationToken cancellationToken) 223private void ProduceConflicts(MemberAccessExpressionSyntax node, bool containsAnonymousMethods, Action<INamespaceSymbol> addConflict, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (33)
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (1)
39public Action<ImmutableArray<PickMembersOption>> OptionsCallback;
QuickInfo\SemanticQuickInfoSourceTests.cs (24)
31params Action<QuickInfoItem>[] expectedResults) 40params Action<QuickInfoItem>[] expectedResults) 46private static async Task TestWithOptionsAsync(EditorTestWorkspace workspace, params Action<QuickInfoItem>[] expectedResults) 73private static async Task TestWithOptionsAsync(Document document, QuickInfoService service, int position, Action<QuickInfoItem>[] expectedResults) 85foreach (var expected in expectedResults) 94params Action<QuickInfoItem>[] expectedResults) 111params Action<QuickInfoItem>[] expectedResults) 126private static async Task VerifyWithMarkupAsync(string xmlString, Action<QuickInfoItem>[] expectedResults) 147foreach (var expected in expectedResults) 156params Action<QuickInfoItem>[] expectedResults) 164params Action<QuickInfoItem>[] expectedResults) 179params Action<QuickInfoItem>[] expectedResults) 187params Action<QuickInfoItem>[] expectedResults) 196params Action<QuickInfoItem>[] expectedResults) 207params Action<QuickInfoItem>[] expectedResults) 224params Action<QuickInfoItem>[] expectedResults) 250params Action<QuickInfoItem>[] expectedResults) 277params Action<QuickInfoItem>[] expectedResults) 295private static async Task VerifyWithReferenceWorkerAsync(string xmlString, params Action<QuickInfoItem>[] expectedResults) 316foreach (var expected in expectedResults) 5486var expectedDescription = Usage($""" 5521var expectedDescription = Usage($""" 5556var expectedDescription = Usage( 5597var expectedDescription = Usage($"""
Workspaces\WorkspaceTests_EditorFeatures.cs (8)
817var documentOpenedEventHandler = openWaiter.Wrap<DocumentEventArgs>( 821var documentClosedEventHandler = closeWaiter.Wrap<DocumentEventArgs>( 885var documentOpenedEventHandler = openWaiter.Wrap<DocumentEventArgs>( 889var documentClosedEventHandler = closeWaiter.Wrap<DocumentEventArgs>( 949var textDocumentOpenedEventHandler = openWaiter.Wrap<TextDocumentEventArgs>( 953var textDocumentClosedEventHandler = closeWaiter.Wrap<TextDocumentEventArgs>( 1010var textDocumentOpenedEventHandler = openWaiter.Wrap<TextDocumentEventArgs>( 1014var textDocumentClosedEventHandler = closeWaiter.Wrap<TextDocumentEventArgs>(
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (146)
CodeGen\CodeGenDeconstructTests.cs (35)
89Action<ModuleSymbol> validator = (ModuleSymbol module) => 1360Action<ModuleSymbol> validator = module => 1417Action<ModuleSymbol> validator = module => 1610Action<PEAssembly> assemblyValidator = assembly => 1662Action<ModuleSymbol> validator = module => 2681Action<ModuleSymbol> validator = (ModuleSymbol module) => 3123Action<ModuleSymbol> validator = (ModuleSymbol module) => 3171Action<ModuleSymbol> validator = (ModuleSymbol module) => 3235Action<ModuleSymbol> validator = (ModuleSymbol module) => 3273Action<ModuleSymbol> validator = (ModuleSymbol module) => 3323Action<ModuleSymbol> validator = (ModuleSymbol module) => 3361Action<ModuleSymbol> validator = (ModuleSymbol module) => 3436Action<ModuleSymbol> validator = (ModuleSymbol module) => 3472Action<ModuleSymbol> validator = (ModuleSymbol module) => 3537Action<ModuleSymbol> validator = (ModuleSymbol module) => 3683Action<ModuleSymbol> validator = (ModuleSymbol module) => 3728Action<ModuleSymbol> validator = (ModuleSymbol module) => 3785Action<ModuleSymbol> validator = (ModuleSymbol module) => 3835Action<ModuleSymbol> validator = (ModuleSymbol module) => 3881Action<ModuleSymbol> validator = (ModuleSymbol module) => 3925Action<ModuleSymbol> validator = (ModuleSymbol module) => 3971Action<ModuleSymbol> validator = (ModuleSymbol module) => 4020Action<ModuleSymbol> validator = (ModuleSymbol module) => 4126Action<ModuleSymbol> validator = (ModuleSymbol module) => 4211Action<ModuleSymbol> validator = (ModuleSymbol module) => 4322Action<ModuleSymbol> validator = (ModuleSymbol module) => 4431Action<ModuleSymbol> validator = (ModuleSymbol module) => 4585Action<ModuleSymbol> validator = (ModuleSymbol module) => 5014Action<ModuleSymbol> validator = (ModuleSymbol module) => 5166Action<ModuleSymbol> validator = (ModuleSymbol module) => 5303Action<ModuleSymbol> validator = (ModuleSymbol module) => 5339Action<ModuleSymbol> validator = (ModuleSymbol module) => 6432Action<ModuleSymbol> validator = (ModuleSymbol module) => 6853Action<ModuleSymbol> validator = (ModuleSymbol module) => 6925Action<ModuleSymbol> validator = (ModuleSymbol module) =>
CodeGen\CodeGenFunctionPointersTests.cs (4)
31Action<ModuleSymbol>? symbolValidator = null, 59private CompilationVerifier CompileAndVerifyFunctionPointersWithIl(string source, string ilStub, Action<ModuleSymbol>? symbolValidator = null, string? expectedOutput = null) 796static void validateProperty(PropertySymbol property, Action<TypeSymbol> verifier) 6289static Action<ModuleSymbol> getSymbolValidator(bool separateAssembly)
CodeGen\CodeGenImplicitImplementationTests.cs (1)
775Action<ModuleSymbol> validator = module =>
CodeGen\CodeGenOverridingAndHiding.cs (4)
3772Action<ModuleSymbol> validator = module => 3845Action<ModuleSymbol> validator = module => 3991Action<ModuleSymbol> validator = module => 4095Func<bool, Action<ModuleSymbol>> validator = isFromMetadata => module =>
CodeGen\CodeGenTests.cs (1)
13058System.Action<ModuleSymbol> validator = module =>
CodeGen\CodeGenTupleTest.cs (9)
3212Action<ModuleSymbol> validator = module => 3245Action<ModuleSymbol> validator = module => 3458Action<ModuleSymbol> validator = module => 3629Action<ModuleSymbol> validator = module => 3680Action<ModuleSymbol> validator = module => 3926Action<ModuleSymbol> validator = module => 4016Action<ModuleSymbol> validator = module => 4148Action<ModuleSymbol> validator = module => 20544Action<ModuleSymbol> validate = (m) =>
CodeGen\DestructorTests.cs (9)
50var validator = GetDestructorValidator("Base"); 104var validator = GetDestructorValidator("Base"); 163var validator = GetDestructorValidator("Derived"); 249var validator = GetDestructorValidator("Derived"); 349var validator = GetDestructorValidator("Derived"); 405var validator = GetDestructorValidator("Derived"); 462var validator = GetDestructorValidator("Derived"); 582Action<ModuleSymbol> validator = module => 813private static Action<ModuleSymbol> GetDestructorValidator(string typeName)
CodeGen\IndexerTests.cs (1)
149System.Action<ModuleSymbol> validator = module =>
CodeGen\WinMdDelegateTests.cs (3)
36Func<string[], Action<ModuleSymbol>> getValidator = expectedMembers => m => 49var validator = getValidator(expected); 252Action<ModuleSymbol> validator = module =>
Emit\CompilationEmitTests.cs (5)
910Action<PEAssembly> assemblyValidator = assembly => 931Action<PEAssembly> assemblyValidator = assembly => 953Action<PEAssembly> assemblyValidator = assembly => 1861private void VerifyRefAssemblyClient(string lib_cs, string client_cs, Action<CSharpCompilation> validator, int debugFlag = -1) 1885private static void VerifyRefAssemblyClient(string lib_cs, string source, Action<CSharpCompilation> validator, EmitOptions emitOptions)
Emit\DeterministicTests.cs (1)
335Action<ModuleSymbol> metadataValidator = module =>
Emit\EmitMetadataTests.cs (20)
496Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 546Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 595Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 662Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 730Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 777Action<ModuleSymbol> validator = module => 807Action<ModuleSymbol> validator = module => 846Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 943Action<ModuleSymbol> validator = module => 1014Action<ModuleSymbol> validator = module => 1081Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 1156Action<ModuleSymbol> validator = module => 1232Action<ModuleSymbol> validator = module => 1270Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 1329Action<ModuleSymbol> validator = module => 1353Action<ModuleSymbol> validator = module => 2152Func<bool, Action<ModuleSymbol>> validator = isFromSource => (ModuleSymbol m) => 2543Action<ModuleSymbol> verifier = module => 2567Action<ModuleSymbol> verifier = module => 2664Action<ModuleSymbol> verifier = module =>
Emit\InAttributeModifierTests.cs (53)
1652Action<ModuleSymbol> validator = module => 1672Action<ModuleSymbol> validator = module => 1693Action<ModuleSymbol> validator = module => 1713Action<ModuleSymbol> validator = module => 1734Action<ModuleSymbol> validator = module => 1755Action<ModuleSymbol> validator = module => 1776Action<ModuleSymbol> validator = module => 1796Action<ModuleSymbol> validator = module => 1817Action<ModuleSymbol> validator = module => 1838Action<ModuleSymbol> validator = module => 1858Action<ModuleSymbol> validator = module => 1878Action<ModuleSymbol> validator = module => 1899Action<ModuleSymbol> validator = module => 1919Action<ModuleSymbol> validator = module => 1941Action<ModuleSymbol> validator = module => 1957Action<ModuleSymbol> validator = module => 1982Action<ModuleSymbol> validator = module => 2007Action<ModuleSymbol> validator = module => 2027Action<ModuleSymbol> validator = module => 2047Action<ModuleSymbol> validator = module => 2067Action<ModuleSymbol> validator = module => 2087Action<ModuleSymbol> validator = module => 2111Action<ModuleSymbol> validator = module => 2523Action<ModuleSymbol> validator = module => 2570Action<ModuleSymbol> validator = module => 2618Action<ModuleSymbol> validator = module => 2673Action<ModuleSymbol> validator = module => 2720Action<ModuleSymbol> validator = module => 2765Action<ModuleSymbol> validator = module => 2810Action<ModuleSymbol> validator = module => 2855Action<ModuleSymbol> validator = module => 2900Action<ModuleSymbol> validator = module => 2945Action<ModuleSymbol> validator = module => 2990Action<ModuleSymbol> validator = module => 3036Action<ModuleSymbol> validator = module => 3082Action<ModuleSymbol> validator = module => 3128Action<ModuleSymbol> validator = module => 3174Action<ModuleSymbol> validator = module => 3222Action<ModuleSymbol> validator = module => 3270Action<ModuleSymbol> validator = module => 3318Action<ModuleSymbol> validator = module => 3373Action<ModuleSymbol> validator = module => 3421Action<ModuleSymbol> validator = module => 3467Action<ModuleSymbol> validator = module => 3513Action<ModuleSymbol> validator = module => 3559Action<ModuleSymbol> validator = module => 3605Action<ModuleSymbol> validator = module => 3651Action<ModuleSymbol> validator = module => 4194Action<ModuleSymbol> validator = module => 4241Action<ModuleSymbol> validator = module => 4288Action<ModuleSymbol> validator = module => 4337Action<ModuleSymbol> validator = module => 4390Action<ModuleSymbol> validator = module =>
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (2)
6393private static Action<ModuleSymbol> VerifyCacheContainer(string typeName, int arity, params string[] expectedFields) 6406private static Action<ModuleSymbol> VerifyNoCacheContainersIn(string containingTypeName)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (106)
Attributes\AttributeTests.cs (51)
486Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 1600Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 1629System.Action<ModuleSymbol> metadataValidator = 1705Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 1795Action<ModuleSymbol> symbolValidator = moduleSymbol => 1850Action<ModuleSymbol> symbolValidator = moduleSymbol => 1890Action<ModuleSymbol> symbolValidator = moduleSymbol => 1952Action<ModuleSymbol> symbolValidator = moduleSymbol => 2192Action<ModuleSymbol> symbolValidator = moduleSymbol => 2234Action<ModuleSymbol> symbolValidator = moduleSymbol => 2322Action<ModuleSymbol> symbolValidator = moduleSymbol => 2456Action<ModuleSymbol> symbolValidator = moduleSymbol => 2617Func<bool, Action<ModuleSymbol>> symbolValidator = isFromSource => moduleSymbol => 2860Action<ModuleSymbol> symbolValidator = moduleSymbol => 2996Func<bool, Action<ModuleSymbol>> symbolValidator = isFromMetadata => moduleSymbol => 3095Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 3170Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 3212Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 3446Action<ModuleSymbol> sourceAttributeValidator = (ModuleSymbol m) => 3459Action<ModuleSymbol> mdAttributeValidator = (ModuleSymbol m) => 3523Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 3585Action<ModuleSymbol> sourceAttributeValidator = (ModuleSymbol m) => 3598Action<ModuleSymbol> mdAttributeValidator = (ModuleSymbol m) => 3633Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 3679Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 3786Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 3860Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 3900Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 3946Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 3997Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 4075Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 4134Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 4177Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 4221Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 4266Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 4310Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 4512Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 4568Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 4609Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 4960Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 5066Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 5135Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 5171Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 5208Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 5246Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 5304Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 5365Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 5477Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 5621Func<bool, Action<ModuleSymbol>> validator = isFromSource => (ModuleSymbol module) => 8351Action<ModuleSymbol> sourceValidator = module => 8358Action<ModuleSymbol> metadataValidator = module =>
Attributes\AttributeTests_Assembly.cs (1)
934Action<AssemblyDefinition> verifier,
Attributes\AttributeTests_Conditional.cs (1)
622Func<bool, Action<ModuleSymbol>> validator = isFromSource => module =>
Attributes\AttributeTests_Security.cs (1)
36Func<bool, Action<ModuleSymbol>> attributeValidator = isFromSource => (ModuleSymbol module) =>
Attributes\AttributeTests_StructLayout.cs (1)
158Action<PEAssembly> validator = (assembly) =>
Attributes\AttributeTests_Tuples.cs (2)
863Action<PEAssembly> validator = assembly => 963Action<PEAssembly> validator = (assembly) =>
Attributes\AttributeTests_WellKnownAttributes.cs (26)
130Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 245Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 375Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 512Action<ModuleSymbol> verifier = (module) => 856Action<ModuleSymbol> verifier = (module) => 894Action<ModuleSymbol> verifier = module => 924Action<ModuleSymbol> verifier = module => 1012Action<ModuleSymbol> verifier = module => 1056Action<ModuleSymbol> verifier = module => 1365Action<SourceOrdinaryMethodSymbol> partialValidator = (SourceOrdinaryMethodSymbol sourceMethod) => 1378Action<ModuleSymbol> sourceValidator = (ModuleSymbol m) => 2471Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 2761Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 3070Action<PEAssembly> validator = (assembly) => 3671Action<ModuleSymbol> sourceValidator = (ModuleSymbol m) => 3686Action<ModuleSymbol> metadataValidator = (ModuleSymbol m) => 3747Func<bool, Action<ModuleSymbol>> attributeValidator = isFromSource => (ModuleSymbol m) => 3878Func<bool, Action<ModuleSymbol>> attributeValidator = isFromSource => (ModuleSymbol m) => 5145Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 5631Action<ModuleSymbol> sourceValidator = (ModuleSymbol module) => 5641Action<ModuleSymbol> metadataValidator = (ModuleSymbol module) => 5694Action<ModuleSymbol> sourceValidator = (ModuleSymbol module) => 5705Action<ModuleSymbol> metadataValidator = (ModuleSymbol module) => 9738Action<ModuleSymbol> validator = module => 13215Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) => 13336Action<ModuleSymbol> attributeValidator = (ModuleSymbol m) =>
Diagnostics\DiagnosticAnalyzerTests.cs (8)
775Action<Action<SyntaxNodeAnalysisContext>, ImmutableArray<SyntaxKind>> registerMethod = 789Action<Action<SyntaxNodeAnalysisContext>, ImmutableArray<SyntaxKind>> registerMethod = 797public void Initialize(Action<Action<SyntaxNodeAnalysisContext>, ImmutableArray<SyntaxKind>> registerSyntaxNodeAction) 1770Action<SortedSet<string>> addNames = null; 1771Action<SortedSet<string>> addPath = null; 2341private void ReportNodeDiagnostics(SyntaxNode node, Action<Diagnostic> addDiagnostic) 2346private void ReportOperationDiagnostics(IOperation operation, string name, Action<Diagnostic> addDiagnostic) 2351private void ReportDiagnosticsCore(Action<Diagnostic> addDiagnostic, Location location, params object[] messageArguments)
Diagnostics\GetDiagnosticsTests.cs (1)
1136static void analyzeNode(SyntaxNode node, ISymbol containingSymbol, Action<Diagnostic> reportDiagnostic)
RefStructInterfacesTests.cs (1)
28934System.Action<ModuleSymbol> metadataValidator =
Semantics\ExtensionTests2.cs (2)
23013private CompilationVerifier CompileAndVerifyAndValidate(CSharpCompilation comp, string expected, Action<ModuleSymbol> extraValidator = null, Verification verify = default) 23020static void validate(ModuleSymbol module, string expected, Action<ModuleSymbol> extraValidator)
Semantics\PrimaryConstructorTests.cs (4)
3035Action<ModuleSymbol> symbolValidator = moduleSymbol => 20350void verify1(string source1, string source2, Action<ModuleSymbol> validator) 20397void verify1(string source1, string source2, Action<ModuleSymbol> validator) 20430void verify1(string source1, string source2, Action<ModuleSymbol> validator)
Semantics\RecordTests.cs (7)
25187Action<ModuleSymbol> symbolValidator = moduleSymbol => 25247Action<ModuleSymbol> symbolValidator = moduleSymbol => 25324Action<ModuleSymbol> symbolValidator = moduleSymbol => 25381Action<ModuleSymbol> symbolValidator = moduleSymbol => 25459Action<ModuleSymbol> symbolValidator = moduleSymbol => 25543Action<ModuleSymbol> symbolValidator = moduleSymbol => 25616Action<ModuleSymbol> symbolValidator = moduleSymbol =>
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
71private static void RunTest(int expectedDepth, Action<int> runTest)
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\CrefCompletionProvider.cs (2)
49private Action<SyntaxNode?>? _testSpeculativeNodeCallback; 392public void SetSpeculativeNodeCallback(Action<SyntaxNode?> value)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
87Action<StatementSyntax> removeStatement,
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Copilot\CSharpImplementNotImplementedExceptionFixProviderTests.cs (2)
569private Action<TestCopilotCodeAnalysisService>? _copilotServiceSetupAction; 582public CustomCompositionCSharpTest WithMockCopilotService(Action<TestCopilotCodeAnalysisService> setup)
EditAndContinue\Helpers\CSharpEditAndContinueTestVerifier.cs (1)
14internal sealed class CSharpEditAndContinueTestVerifier(Action<SyntaxNode>? faultInjector = null) : EditAndContinueTestVerifier(faultInjector)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (44)
Semantics\AnonymousFunctionTests.cs (1)
22internal CompilationVerifier VerifyInPreview(CSharpTestSource source, string expectedOutput, Action<ModuleSymbol>? symbolValidator = null, params DiagnosticDescription[] expected)
Semantics\DeconstructionTests.cs (1)
3759Action<ModuleSymbol> validator = module =>
Semantics\GenericConstraintsTests.cs (18)
449Action<ModuleSymbol> validator = module => 467Action<ModuleSymbol> validator = module => 486Action<ModuleSymbol> validator = module => 505Action<ModuleSymbol> validator = module => 627Action<ModuleSymbol> validator = module => 975Action<ModuleSymbol> validator = module => 1009Action<ModuleSymbol> validator = module => 1026Action<ModuleSymbol> validator = module => 1140Action<ModuleSymbol> validator = module => 1460Action<ModuleSymbol> validator = module => 1494Action<ModuleSymbol> validator = module => 1511Action<ModuleSymbol> validator = module => 1625Action<ModuleSymbol> validator = module => 1901Action<ModuleSymbol> validator = module => 2116Action<ModuleSymbol> validator = module => 2141Action<ModuleSymbol> validator = module => 2162Action<ModuleSymbol> validator = module => 2937Action<ModuleSymbol> validator = module =>
Semantics\LookupPositionTests.cs (6)
3135private static string[][] MakeExpectedSymbols(params Action<Stack<string[]>>[] deltas) 3152private static Action<Stack<string[]>> Combine(params Action<Stack<string[]>>[] deltas) 3161private static Action<Stack<string[]>> Add(params string[] added) 3172private static Action<Stack<string[]>> Remove(params string[] removed) 3183private static readonly Action<Stack<string[]>> s_pop = stack => stack.Pop();
Semantics\LookupTests.cs (1)
1448Action<ModuleSymbol> validator = (module) =>
Semantics\NamedAndOptionalTests.cs (5)
2045Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 2127Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 2178Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 2261Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 2343Func<bool, Action<ModuleSymbol>> validator = isFromSource => module =>
Semantics\NullableReferenceTypesTests.cs (6)
16999Action<ModuleSymbol> validate = (m) => 17078Action<ModuleSymbol> validate = (m) => 17412Action<ModuleSymbol> validate = (ModuleSymbol m) => 17480Action<ModuleSymbol> validate = (ModuleSymbol m) => 17561Action<ModuleSymbol> validate = (ModuleSymbol m) => 17645Action<ModuleSymbol> validate = (ModuleSymbol m) =>
Semantics\RecordStructTests.cs (1)
10568Action<ModuleSymbol> symbolValidator = moduleSymbol =>
SourceGeneration\GeneratorDriverTests.cs (1)
2509var callback = (IncrementalGeneratorInitializationContext ctx) => ctx.RegisterPostInitializationOutput(c => c.AddEmbeddedAttributeDefinition());
SourceGeneration\SyntaxAwareGeneratorTests.cs (4)
2124private readonly Action<T>? _callback; 2130public TestReceiverBase(int tag = 0, Action<T>? callback = null) 2148public TestSyntaxReceiver(int tag = 0, Action<SyntaxNode>? callback = null) 2156public TestSyntaxContextReceiver(int tag = 0, Action<GeneratorSyntaxContext>? callback = null)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (61)
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
7974Action<ModuleSymbol> validator = module =>
Symbols\CustomModifiersTests.cs (1)
1832System.Action<ModuleSymbol> validator = (m) =>
Symbols\ExtensionMethodTests.cs (5)
35Action<ModuleSymbol> validator = module => 2449Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 2493Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 2523Action<ModuleSymbol> validator = module => 2746private CompilationVerifier CompileAndVerify(string source, string expectedOutput = null, Action<ModuleSymbol> validator = null,
Symbols\GenericConstraintTests.cs (13)
35Action<ModuleSymbol> validator = module => 79Action<ModuleSymbol> validator = module => 113Action<ModuleSymbol> validator = module => 153Action<ModuleSymbol> validator = module => 3748Action<CSharpCompilation> compilationVerifier = 3782Action<CSharpCompilation> compilationVerifier = 3816Action<CSharpCompilation> compilationVerifier = 3850Action<CSharpCompilation> compilationVerifier = 3899Action<CSharpCompilation> compilationVerifier = 4879Action<ModuleSymbol> validator = module => 5172Action<ModuleSymbol> validator = module => 5560Action<ModuleSymbol> validator = module => 6619Action<ModuleSymbol> metadataValidator =
Symbols\IndexerTests.cs (4)
55Action<ModuleSymbol> validator = module => 1141Func<bool, Action<ModuleSymbol>> validator = isFromSource => module => 1226Action<ModuleSymbol> sourceValidator = module => 1238Action<ModuleSymbol> metadataValidator = module =>
Symbols\Metadata\PE\TypeForwarders.cs (2)
1491Action<ModuleSymbol> metadataValidator = module => 1763Action<ModuleSymbol> metadataValidator = module =>
Symbols\MethodImplementationFlagsTests.cs (5)
36Action<ModuleSymbol> validator = module => 68Action<ModuleSymbol> validator = module => 115Action<ModuleSymbol> validator = module => 156Action<ModuleSymbol> validator = module => 178Action<ModuleSymbol> validator = module =>
Symbols\MissingSpecialMember.cs (9)
155Action<CSharpCompilation> validate = comp => 194Action<CSharpCompilation> validatePresent = comp => 201Action<CSharpCompilation> validateMissing = comp => 233Action<CSharpCompilation> validate = comp => 302Action<CSharpCompilation> validate = comp => 344Action<CSharpCompilation> validatePresent = comp => 379Action<CSharpCompilation> validate = comp => 430Action<CSharpCompilation> validate = comp => 506private static void ValidateSourceAndMetadata(string source, Action<CSharpCompilation> validate)
Symbols\RequiredMembersTests.cs (11)
25private static Action<ModuleSymbol> ValidateRequiredMembersInModule(string[] memberPaths, string expectedAttributeLayout) 55private static Action<ModuleSymbol> GetTypeRequiredMembersInvariantsValidator(string expectedType) 474var symbolValidator = ValidateRequiredMembersInModule(expectedRequiredMembers, expectedAttributeLayout); 592var symbolValidator = ValidateRequiredMembersInModule(expectedRequiredMembers, expectedAttributeLayout); 644var symbolValidator = ValidateRequiredMembersInModule(expectedRequiredMembers, expectedAttributeLayout); 687var symbolValidator = ValidateRequiredMembersInModule(expectedRequiredMembers, expectedAttributeLayout); 723var symbolValidator = ValidateRequiredMembersInModule(expectedRequiredMembers, expectedAttributeLayout); 1387var symbolValidator = ValidateRequiredMembersInModule(expectedRequiredMembers, expectedAttributeLayout); 2058var validator = GetTypeRequiredMembersInvariantsValidator("Derived"); 2147var validator = GetTypeRequiredMembersInvariantsValidator("Derived"); 2178var validator = GetTypeRequiredMembersInvariantsValidator("Derived");
Symbols\Source\EventTests.cs (5)
342Action<ModuleSymbol> validator = module => 428Action<ModuleSymbol> validator = module => 474Action<ModuleSymbol> validator = module => 603Action<ModuleSymbol> validator = module => 635Action<ModuleSymbol> validator = module =>
Symbols\Source\ExpressionBodiedPropertyTests.cs (1)
465Action<ModuleSymbol> srcValidator = m =>
Symbols\Source\PropertyTests.cs (4)
563Action<ModuleSymbol> validator = module => 1873Action<ModuleSymbol> validator = module => 2763Func<string[], Action<ModuleSymbol>> getValidator = expectedMembers => m => 2774var validator = getValidator(expected);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
IncrementalParsing\ChangingAsync.cs (2)
59private static void ParseAndVerify(string text, Action<SyntaxTree> validator) 65private static void ParseAndValidate(string text, Action<SyntaxTree> validator, CSharpParseOptions options = null)
IncrementalParsing\ChangingIdentifiers.cs (2)
241private static void MakeIncrementalNameChange(NameTypes oldStyle, NameTypes newStyle, Action<ExpressionSyntax> expressionValidator) 249Action<ExpressionSyntax> expressionValidator, bool topLevel = false, CSharpParseOptions options = null)
IncrementalParsing\TypeChanges.cs (2)
147private static void ParseAndVerify(string text, Action<SyntaxTree> validator) 153private static void ParseAndValidate(string text, Action<SyntaxTree> validator, CSharpParseOptions options = null)
Parsing\AsyncParsingTests.cs (1)
29private void TestVersions(Action<CSharpParseOptions> test)
Parsing\LambdaAttributeParsingTests.cs (4)
912static object[] getData(string expr, Action<LambdaAttributeParsingTests> action) => new object[] { expr, action }; 917public void Assignment(string exprLambda, Action<LambdaAttributeParsingTests> verifyLambda) 935public void Argument_01(string exprLambda, Action<LambdaAttributeParsingTests> verifyLambda) 960public void Argument_02(string exprLambda, Action<LambdaAttributeParsingTests> verifyLambda)
Syntax\SyntaxNodeTests.cs (1)
1825Action<SyntaxNodeOrToken> walk = null;
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)
FunctionPointerUtilities.cs (12)
271public static void VerifyFunctionPointerSymbol(TypeSymbol type, CallingConvention expectedConvention, (RefKind RefKind, Action<TypeSymbol> TypeVerifier) returnVerifier, params (RefKind RefKind, Action<TypeSymbol> TypeVerifier)[] argumentVerifiers) 332public static Action<TypeSymbol> IsVoidType() => typeSymbol => Assert.True(typeSymbol.IsVoidType()); 334public static Action<TypeSymbol> IsSpecialType(SpecialType specialType) 337public static Action<TypeSymbol> IsTypeName(string typeName) 340public static Action<TypeSymbol> IsArrayType(Action<TypeSymbol> arrayTypeVerifier) 347public static Action<TypeSymbol> IsUnsupportedType() 350public static Action<TypeSymbol> IsFunctionPointerTypeSymbol(CallingConvention callingConvention, (RefKind, Action<TypeSymbol>) returnVerifier, params (RefKind, Action<TypeSymbol>)[] argumentVerifiers) 353public static Action<TypeSymbol> IsErrorType()
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
320Name: nameof(Func<>) or nameof(Action<>),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (2)
213private void ProduceConflicts(SimpleNameSyntax node, Action<INamespaceSymbol> addConflict, CancellationToken cancellationToken) 223private void ProduceConflicts(MemberAccessExpressionSyntax node, bool containsAnonymousMethods, Action<INamespaceSymbol> addConflict, CancellationToken cancellationToken)
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)
EditAndContinue\EditAndContinueLanguageService.cs (1)
54public event Action<Solution>? SolutionCommitted;
EditAndContinue\IEditAndContinueSolutionProvider.cs (1)
18event Action<Solution> SolutionCommitted;
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsProvider.cs (1)
21internal sealed class NamingStyleSettingsProvider : SettingsProviderBase<NamingStyleSetting, NamingStyleSettingsUpdater, (Action<(object, object?)>, NamingStyleSetting), object>
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,
Interactive\InteractiveEvaluator.cs (1)
144public event Action<InteractiveHostPlatform>? OnBeforeReset;
Lightup\ISmartRenameSessionWrapper.cs (1)
39private static readonly Action<object> s_onCancel;
Lightup\LightupHelpers.cs (3)
110public static Action<T> CreateActionAccessor<T>(Type? type, string methodName) 145Expression.Lambda<Action<T>>( 523private static Action<T> CreateFallbackAction<T>()
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (1)
54public event Action<ITrackingSpan> TrackingSessionCleared = delegate { };
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (17)
AbstractTypingCommandHandlerTest.cs (1)
28protected void Verify(string initialMarkup, string expectedMarkup, Action<EditorTestWorkspace> initializeWorkspace = null)
CompleteStatement\AbstractCompleteStatementTests.cs (1)
98Action<EditorTestWorkspace>? setOptions = null)
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (15)
38internal static Action<QuickInfoItem> SymbolGlyph(Glyph expectedGlyph) 41internal static Action<QuickInfoItem> WarningGlyph(Glyph expectedGlyph) 66protected static Action<QuickInfoItem> MainDescription( 73protected static Action<QuickInfoItem> Documentation( 80protected static Action<QuickInfoItem> Remarks( 87protected static Action<QuickInfoItem> Returns( 94protected static Action<QuickInfoItem> Value( 101protected static Action<QuickInfoItem> TypeParameterMap( 108protected static Action<QuickInfoItem> AnonymousTypes( 115protected static Action<QuickInfoItem> NullabilityAnalysis( 122protected static Action<QuickInfoItem> NoTypeParameterMap 125protected static Action<QuickInfoItem> Usage(string expectedText, bool expectsWarningGlyph = false) 142protected static Action<QuickInfoItem> Exceptions(string expectedText) 145protected static Action<QuickInfoItem> Captures(string capturesText) 156protected abstract Task TestAsync(string markup, params Action<QuickInfoItem>[] expectedResults);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
FrameDecoder.cs (2)
89Action<TMethodSymbol> onSuccess, 90Action<Exception> onFailure)
Microsoft.CodeAnalysis.Extensions.Package (15)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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)
SemanticSearch\CopilotSemanticSearchUtilities.cs (2)
45public static Task FindReferencesAsync(Solution solution, ISymbol symbol, Action<ReferenceLocation> callback, CancellationToken cancellationToken) 52private sealed class Progress(Action<ReferenceLocation> callback) : IStreamingFindReferencesProgress
Microsoft.CodeAnalysis.Features (24)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (2)
113Action<(Diagnostic diagnostic, CodeAction action)> onItemFound, 177Action<(Diagnostic diagnostic, CodeAction action)> onItemFound)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaWarningBatchFixAllProvider.cs (1)
28Action<(Diagnostic diagnostic, CodeAction action)> onItemFound,
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (1)
36Action<(Diagnostic diagnostic, CodeAction action)> onItemFound,
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (1)
185Action<TextChange> callback,
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (4)
137Action<IMethodSymbol?> callback, 182Action<IMethodSymbol?> callback, 225Action<IMethodSymbol?> callback, 292Action<IMethodSymbol?> callback,
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
74private Action<SyntaxNode>? _testFaultInjector; 7124internal Action<SyntaxNode>? FaultInjector
EditAndContinue\DebuggingSession.cs (1)
119private Action<DebuggingSessionTelemetry.Data> _reportTelemetry;
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.cs (1)
155Action<ImmutableArray<CodeAction>> registerMultipleActions,
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (1)
131Action<RoslynNavigateToItem> onItemFound,
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (1)
76Project project, Action<RoslynNavigateToItem> onItemFound, VoidResult _, CancellationToken cancellationToken)
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (2)
46Action<RoslynNavigateToItem> onItemFound, 77Action<RoslynNavigateToItem> onItemFound,
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (1)
213Action<RoslynNavigateToItem> onItemFound,
RelatedDocuments\AbstractRelatedDocumentsService.cs (1)
113Action<DocumentId> callback,
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
73public void AnalyzeAssemblyOrModuleAttribute(SyntaxNode attributeSyntax, SemanticModel model, Action<Diagnostic> reportDiagnostic, CancellationToken cancellationToken)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
89Action<Diagnostic> reportDiagnostic, 612Action<Diagnostic> reportDiagnostic,
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
122Action<Diagnostic> reportDiagnostic,
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (1)
658private async Task RepeatIOAsync(Action<CancellationToken> action, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
EditAndContinue\EditAndContinueTestVerifier.cs (2)
58protected EditAndContinueTestVerifier(Action<SyntaxNode>? faultInjector) 70internal static AbstractEditAndContinueAnalyzer CreateAnalyzer(Action<SyntaxNode>? faultInjector, string languageName)
EditAndContinue\MockEditAndContinueService.cs (2)
27public Action<Document>? OnSourceFileUpdatedImpl; 29public Action<bool?>? BreakStateOrCapabilitiesChangedImpl;
Microsoft.CodeAnalysis.InteractiveHost (18)
Interactive\Core\InteractiveHost.cs (1)
100internal event Action<Process>? InteractiveHostProcessCreated;
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\LoadedProject.cs (2)
247void UpdateProjectSystemProjectCollection<T>(IEnumerable<T> loadedCollection, IEnumerable<T>? oldLoadedCollection, IEqualityComparer<T> comparer, Action<T> addItem, Action<T> removeItem, string logMessage)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\CodeActions\CodeActionResolveHelper.cs (1)
38public static async Task<LSP.WorkspaceEdit> GetCodeActionResolveEditsAsync(Solution solution, CodeActionResolveData data, ImmutableArray<CodeActionOperation> operations, ResourceOperationKind[] resourceOperations, Action<string> logFunction, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (44)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
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\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (2)
DeclarePublicAPIAnalyzerTestsBase.cs (2)
154private async Task VerifyCSharpAsync(Action<SourceFileList> addSourcesAction, string? shippedApiText, string? unshippedApiText, string editorConfigText, params DiagnosticResult[] expected) 1752var addSources = (SourceFileList sources) =>
Microsoft.CodeAnalysis.Remote.Workspaces (1)
RemoteHostAssetWriter.cs (1)
79private Task FindAssetsAsync(Action<ChecksumAndAsset> onItemFound, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.ResxSourceGenerator (44)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Microsoft.CodeAnalysis.Test.Utilities (52)
Assert\AssertEx.cs (2)
1089/// The core <see cref="Xunit.Assert.All{T}(IEnumerable{T}, Action{T})"/> is annotated to not accept null but many 1092public static void All<T>(IEnumerable<T>? collection, Action<T> action)
CommonTestBase.cs (7)
76Action<IModuleSymbol>? sourceSymbolValidator = null, 77Action<PEAssembly>? assemblyValidator = null, 78Action<IModuleSymbol>? symbolValidator = null, 148internal static void RunValidators(CompilationVerifier verifier, Action<PEAssembly>? assemblyValidator, Action<IModuleSymbol>? symbolValidator) 183Action<PEAssembly>? assemblyValidator, 184Action<IModuleSymbol>? symbolValidator,
Compilation\OperationTreeVerifier.cs (1)
335private void VisitArrayCommon<T>(ImmutableArray<T> list, string header, bool logElementCount, bool logNullForDefault, Action<T> arrayElementVisitor)
CompilationVerifier.cs (1)
304public void VerifyTypeIL(string typeName, Action<string> validateExpected)
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)
FX\DirectoryHelper.cs (1)
16public event Action<string> FileFound;
FX\EventWaiter.cs (2)
54public Action<TEventArgs> Wrap<TEventArgs>(Action<TEventArgs> input)
Metadata\MetadataReaderUtils.cs (1)
502internal static void VerifyMethodBodies(ImmutableArray<byte> peImage, Action<byte[]> ilValidator)
Mocks\TestAnalyzerAssemblyLoader.cs (2)
19private readonly Action<string>? _addDependencyLocation; 22public TestAnalyzerAssemblyLoader(Action<string>? addDependencyLocation = null, Func<string, Assembly>? loadFromPath = null)
Mocks\TestStream.cs (2)
18private readonly Action<long> _setPosition; 29Action<long> setPosition = null,
ObjectReference.cs (1)
152public void UseReference(Action<T> action)
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;
SourceGeneration\TestSourceGenerator.cs (2)
14public Action<GeneratorInitializationContext>? InitializeImpl; 15public Action<GeneratorExecutionContext>? ExecuteImpl;
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\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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)
Collections\ImmutableListTestBase.cs (1)
32private protected abstract void ForEachImpl<T>(ImmutableSegmentedList<T> list, Action<T> action);
Collections\ImmutableSegmentedListBuilderTest.cs (1)
459private protected override void ForEachImpl<T>(ImmutableSegmentedList<T> list, Action<T> action)
Collections\ImmutableSegmentedListTest.cs (1)
884private protected override void ForEachImpl<T>(ImmutableSegmentedList<T> list, Action<T> action)
Collections\List\SegmentedList.Generic.Tests.ForEach.cs (1)
28Action<T> action = delegate (T item) { visitedItems.Add(item); };
InternalUtilities\JsonWriterTests.cs (1)
92private static string WriteToString(Action<JsonWriter> action)
MetadataReferences\ModuleMetadataTests.cs (1)
394public Action<bool> OnDispose;
Microsoft.CodeAnalysis.Workspaces (85)
CodeRefactorings\CodeRefactoringContext.cs (2)
65Action<CodeAction> registerRefactoring, 76Action<CodeAction> registerRefactoring,
Diagnostics\Extensions.cs (1)
436Action<Diagnostic> reportDiagnostic,
ExternalAccess\UnitTesting\Api\UnitTestingWorkspaceExtensions.cs (3)
11public static IDisposable RegisterTextDocumentOpenedEventHandler(this Workspace workspace, Action<UnitTestingTextDocumentEventArgsWrapper> action) 14public static IDisposable RegisterTextDocumentClosedEventHandler(this Workspace workspace, Action<UnitTestingTextDocumentEventArgsWrapper> action) 21internal EventHandlerWrapper(Workspace workspace, Action<UnitTestingTextDocumentEventArgsWrapper> action, bool opened)
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\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Storage\SQLite\v2\Interop\SqlConnection.cs (1)
211public SqlException? RunInTransaction<TState>(Action<TState> action, TState state, bool throwOnSqlException)
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)
Workspace\Workspace_EventsLegacy.cs (1)
116var disposer = RegisterHandler(eventType, (Action<EventArgs>)Handler, WorkspaceEventOptions.RequiresMainThreadOptions);
Workspace\WorkspaceEventMap.cs (1)
61public readonly record struct WorkspaceEventHandlerAndOptions(Action<EventArgs> Handler, WorkspaceEventOptions Options);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (24)
src\Compilers\Core\Portable\InternalUtilities\RoslynParallel.cs (2)
17/// <inheritdoc cref="Parallel.For(int, int, ParallelOptions, Action{int})"/> 18public static ParallelLoopResult For(int fromInclusive, int toExclusive, Action<int> body, CancellationToken cancellationToken)
src\Compilers\Core\Portable\InternalUtilities\UICultureUtilities.cs (7)
16private static readonly Action<CultureInfo>? s_setCurrentUICulture; 18private static bool TryGetCurrentUICultureSetter([NotNullWhen(returnValue: true)] out Action<CultureInfo>? setter) 46setter = (Action<CultureInfo>)currentUICultureSetter.CreateDelegate(typeof(Action<CultureInfo>)); 56private static bool TryGetCurrentThreadUICultureSetter([NotNullWhen(returnValue: true)] out Action<CultureInfo>? setter) 144public static Action<T> WithCurrentUICulture<T>(Action<T> action)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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)
VisualStudioMSBuildWorkspaceTests.cs (2)
2461private static FileSet VisitProjectReferences(FileSet files, Action<XElement> visitProjectReference) 2478private static string VisitProjectReferences(string projectFileText, Action<XElement> visitProjectReference)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
TestErrorReportingService.cs (1)
23public Action<string> OnError { get; set; } = message => Assert.False(true, message);
WorkspaceExtensions.cs (1)
57internal static EventWaiter VerifyWorkspaceChangedEvent(this Workspace workspace, Action<WorkspaceChangeEventArgs> action)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
ObjectSerializationTests.cs (4)
35private static void RoundTrip(Action<ObjectWriter> writeAction, Action<ObjectReader> readAction, bool recursive) 49private static void TestRoundTrip(Action<ObjectWriter> writeAction, Action<ObjectReader> readAction)
Microsoft.CommonLanguageServerProtocol.Framework.Example (2)
ExampleLanguageServer.cs (2)
16private readonly Action<IServiceCollection>? _addExtraHandlers; 18public ExampleLanguageServer(JsonRpc jsonRpc, JsonSerializerOptions options, ILspLogger logger, Action<IServiceCollection>? addExtraHandlers) : base(jsonRpc, options, logger)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (2)
TestExampleLanguageServer.cs (2)
23public TestExampleLanguageServer(Stream clientSteam, JsonRpc jsonRpc, JsonSerializerOptions options, ILspLogger logger, Action<IServiceCollection>? addExtraHandlers) 118var extraHandlers = (IServiceCollection serviceCollection) =>
Microsoft.DotNet.Build.Tasks.Packaging (2)
ValidateFrameworkPackage.cs (2)
51var logMissingInbox = permittedInbox.Contains(name) ? 75var logMissingPackage = permittedMissingInbox.Contains(missingInboxAssembly.Key) ?
Microsoft.DotNet.Build.Tasks.Workloads (1)
CreateVisualStudioWorkload.wix.cs (1)
501static void PossiblyParallelForEach<T>(bool runInParallel, IEnumerable<T> source, Action<T> body)
Microsoft.DotNet.Helix.JobSender (18)
IJobDefinition.cs (1)
187Task<ISentJob> SendAsync(Action<string> log = null, CancellationToken cancellationToken = default);
IPayload.cs (1)
12Task<string> UploadAsync(IBlobContainer payloadContainer, Action<string> log, CancellationToken cancellationToken);
JobDefinition.cs (2)
147public async Task<ISentJob> SendAsync(Action<string> log, CancellationToken cancellationToken) 247private void WarnForImpendingRemoval(Action<string> log, QueueInfo queueInfo)
Payloads\AdhocPayload.cs (1)
30public async Task<string> UploadAsync(IBlobContainer payloadContainer, Action<string> log, CancellationToken cancellationToken)
Payloads\ArchivePayload.cs (2)
28public Task<string> UploadAsync(IBlobContainer payloadContainer, Action<string> log, CancellationToken cancellationToken) 34private async Task<string> DoUploadAsync(IBlobContainer payloadContainer, Action<string> log, CancellationToken cancellationToken)
Payloads\DirectoryPayload.cs (2)
35public Task<string> UploadAsync(IBlobContainer payloadContainer, Action<string> log, CancellationToken cancellationToken) 41private async Task<string> DoUploadAsync(IBlobContainer payloadContainer, Action<string> log, CancellationToken cancellationToken)
Payloads\EmptyPayload.cs (1)
20public Task<string> UploadAsync(IBlobContainer payloadContainer, Action<string> log, CancellationToken cancellationToken)
Payloads\SingleFilePayload.cs (1)
34public async Task<string> UploadAsync(IBlobContainer payloadContainer, Action<string> log, CancellationToken cancellationToken)
Payloads\UriPayload.cs (1)
19public Task<string> UploadAsync(IBlobContainer payloadContainer, Action<string> log, CancellationToken cancellationToken)
StorageHelpers\ContainerBase.cs (3)
18public async Task<Uri> UploadFileAsync(Stream stream, string blobName, Action<string> log, CancellationToken cancellationToken) 42public async Task<Uri> UploadTextAsync(string text, string blobName, Action<string> log, CancellationToken cancellationToken) 50private async Task<bool> CheckExistenceWithRetry(BlobClient blobClient, Action<string> log)
StorageHelpers\IBlobContainer.cs (2)
14Task<Uri> UploadFileAsync(Stream stream, string blobName, Action<string> log, CancellationToken cancellationToken); 15Task<Uri> UploadTextAsync(string text, string blobName, Action<string> log, CancellationToken cancellationToken);
WorkItemDefinition.cs (1)
116Action<string> log,
Microsoft.DotNet.Helix.JobSender.Tests (1)
Payloads\ArchivePayloadTests.cs (1)
22.Setup(bc => bc.UploadFileAsync(It.IsAny<Stream>(), It.IsAny<string>(), It.IsAny<Action<string>>(), It.IsAny<CancellationToken>()))
Microsoft.DotNet.Helix.Sdk (2)
AzureDevOpsTask.cs (2)
195public Task<T> RetryAsync<T>(Func<Task<T>> function, Action<Exception> logRetry, 201public async Task<T> RetryAsync<T>(Func<Task<T>> function, Action<Exception> logRetry,
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
DependencyInjectionValidation.cs (1)
34Action<ServiceCollection> register,
Microsoft.DotNet.Internal.SymbolHelper (3)
ScopedTracer.cs (1)
29private void LogToMethod(Action<string> logMethod, string message) => logMethod(ScopedMessage(message));
SymbolUploadHelper.cs (2)
355Action<string> logWarning = _treatPdbConversionIssuesAsInfo ? logger.Information : logger.Error; 499async Task<Task<string?>> LogFromStreamReader(Task<string?> outputTask, Func<CancellationToken, ValueTask<string?>> readLine, Action<string> logMethod, CancellationToken ct)
Microsoft.DotNet.RemoteExecutor (1)
RemoteExecutor.cs (1)
133public static RemoteInvokeHandle Invoke(Action<string> method, string arg, RemoteInvokeOptions options = null)
Microsoft.DotNet.XliffTasks (1)
Model\XlfDocument.cs (1)
294public void Validate(Action<XmlSchemaException> validationErrorHandler)
Microsoft.DotNet.XliffTasks.Tests (1)
XlfDocumentTests.cs (1)
603new Action<XmlSchemaException>[]
Microsoft.DotNet.XUnitAssert.Tests (3)
AsyncCollectionAssertsTests.cs (1)
22 Assert.Throws<ArgumentNullException>("action", () => Assert.All(new object[0].ToAsyncEnumerable(), (Action<object>)null!));
CollectionAssertsTests.cs (1)
20 Assert.Throws<ArgumentNullException>("action", () => Assert.All(new object[0], (Action<object>)null!));
EventAssertsTests.cs (1)
687 public event Action<object>? Completed;
Microsoft.Extensions.AI (22)
ChatCompletion\ConfigureOptionsChatClient.cs (2)
17private readonly Action<ChatOptions> _configureOptions; 30public ConfigureOptionsChatClient(IChatClient innerClient, Action<ChatOptions> configure)
ChatCompletion\ConfigureOptionsChatClientBuilderExtensions.cs (1)
32this ChatClientBuilder builder, Action<ChatOptions> configure)
ChatCompletion\DistributedCachingChatClientBuilderExtensions.cs (1)
35public static ChatClientBuilder UseDistributedCache(this ChatClientBuilder builder, IDistributedCache? storage = null, Action<DistributedCachingChatClient>? configure = null)
ChatCompletion\FunctionInvokingChatClientBuilderExtensions.cs (1)
28Action<FunctionInvokingChatClient>? configure = null)
ChatCompletion\LoggingChatClientBuilderExtensions.cs (1)
35Action<LoggingChatClient>? configure = null)
ChatCompletion\OpenTelemetryChatClientBuilderExtensions.cs (1)
30Action<OpenTelemetryChatClient>? configure = null) =>
ChatCompletion\ReducingChatClientBuilderExtensions.cs (1)
27Action<ReducingChatClient>? configure = null)
Embeddings\ConfigureOptionsEmbeddingGenerator.cs (2)
19private readonly Action<EmbeddingGenerationOptions> _configureOptions; 37Action<EmbeddingGenerationOptions> configure)
Embeddings\ConfigureOptionsEmbeddingGeneratorBuilderExtensions.cs (1)
35Action<EmbeddingGenerationOptions> configure)
Embeddings\DistributedCachingEmbeddingGeneratorBuilderExtensions.cs (1)
32Action<DistributedCachingEmbeddingGenerator<TInput, TEmbedding>>? configure = null)
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (1)
37Action<LoggingEmbeddingGenerator<TInput, TEmbedding>>? configure = null)
Embeddings\OpenTelemetryEmbeddingGeneratorBuilderExtensions.cs (1)
32Action<OpenTelemetryEmbeddingGenerator<TInput, TEmbedding>>? configure = null)
Image\ConfigureOptionsImageGenerator.cs (2)
17private readonly Action<ImageGenerationOptions> _configureOptions; 31public ConfigureOptionsImageGenerator(IImageGenerator innerGenerator, Action<ImageGenerationOptions> configure)
Image\ConfigureOptionsImageGeneratorBuilderExtensions.cs (1)
32this ImageGeneratorBuilder builder, Action<ImageGenerationOptions> configure)
Image\LoggingImageGeneratorBuilderExtensions.cs (1)
37Action<LoggingImageGenerator>? configure = null)
SpeechToText\ConfigureOptionsSpeechToTextClient.cs (2)
20private readonly Action<SpeechToTextOptions> _configureOptions; 33public ConfigureOptionsSpeechToTextClient(ISpeechToTextClient innerClient, Action<SpeechToTextOptions> configure)
SpeechToText\ConfigureOptionsSpeechToTextClientBuilderExtensions.cs (1)
31this SpeechToTextClientBuilder builder, Action<SpeechToTextOptions> configure)
SpeechToText\LoggingSpeechToTextClientBuilderExtensions.cs (1)
36Action<LoggingSpeechToTextClient>? configure = null)
Microsoft.Extensions.AI.Tests (1)
ChatReduction\MessageCountingChatReducerTests.cs (1)
179var expectedMessages = new Action<ChatMessage>[targetCount];
Microsoft.Extensions.AmbientMetadata.Application (1)
ApplicationMetadataServiceCollectionExtensions.cs (1)
40public static IServiceCollection AddApplicationMetadata(this IServiceCollection services, Action<ApplicationMetadata> configure)
Microsoft.Extensions.AmbientMetadata.Application.Tests (1)
ApplicationMetadataExtensionsTests.cs (1)
40Assert.Throws<ArgumentNullException>(() => serviceCollection.AddApplicationMetadata((Action<ApplicationMetadata>)null!));
Microsoft.Extensions.Caching.Hybrid (1)
HybridCacheServiceExtensions.cs (1)
21public static IHybridCacheBuilder AddHybridCache(this IServiceCollection services, Action<HybridCacheOptions> setupAction)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
BufferReleaseTests.cs (1)
24private static ServiceProvider GetDefaultCache(out DefaultHybridCache cache, Action<ServiceCollection>? config = null)
FunctionalTests.cs (1)
11private static ServiceProvider GetDefaultCache(out DefaultHybridCache cache, Action<ServiceCollection>? config = null)
LocalInvalidationTests.cs (1)
14private static ServiceProvider GetDefaultCache(out DefaultHybridCache cache, Action<ServiceCollection>? config = null)
PayloadTests.cs (1)
17private static ServiceProvider GetDefaultCache(out DefaultHybridCache cache, Action<ServiceCollection>? config = null)
Microsoft.Extensions.Caching.Memory (6)
CacheEntry.CacheEntryTokens.cs (1)
40IDisposable registration = expirationToken.RegisterChangeCallback((Action<object?>)ExpirationCallback, cacheEntry);
CacheEntry.cs (1)
17private static readonly Action<object> ExpirationCallback = ExpirationTokensExpired;
MemoryCacheServiceCollectionExtensions.cs (4)
38/// The <see cref="Action{MemoryCacheOptions}"/> to configure the provided <see cref="MemoryCacheOptions"/>. 41public static IServiceCollection AddMemoryCache(this IServiceCollection services, Action<MemoryCacheOptions> setupAction) 90/// The <see cref="Action{MemoryDistributedCacheOptions}"/> to configure the provided <see cref="MemoryDistributedCacheOptions"/>. 93public static IServiceCollection AddDistributedMemoryCache(this IServiceCollection services, Action<MemoryDistributedCacheOptions> setupAction)
Microsoft.Extensions.Caching.SqlServer (2)
SqlServerCachingServicesExtensions.cs (2)
20/// <param name="setupAction">An <see cref="Action{SqlServerCacheOptions}"/> to configure the provided <see cref="SqlServerCacheOptions"/>.</param> 22public static IServiceCollection AddDistributedSqlServerCache(this IServiceCollection services, Action<SqlServerCacheOptions> setupAction)
Microsoft.Extensions.Caching.StackExchangeRedis (2)
StackExchangeRedisCacheServiceCollectionExtensions.cs (2)
21/// <param name="setupAction">An <see cref="Action{RedisCacheOptions}"/> to configure the provided 24public static IServiceCollection AddStackExchangeRedisCache(this IServiceCollection services, Action<RedisCacheOptions> setupAction)
Microsoft.Extensions.Compliance.Redaction (2)
RedactionExtensions.cs (1)
25public static IRedactionBuilder SetHmacRedactor(this IRedactionBuilder builder, Action<HmacRedactorOptions> configure, params DataClassificationSet[] classifications)
RedactionServiceCollectionExtensions.cs (1)
33public static IServiceCollection AddRedaction(this IServiceCollection services, Action<IRedactionBuilder> configure)
Microsoft.Extensions.Compliance.Testing (2)
FakeRedactionBuilderExtensions.cs (1)
45public static IRedactionBuilder SetFakeRedactor(this IRedactionBuilder builder, Action<FakeRedactorOptions> configure, params DataClassificationSet[] classifications)
FakeRedactionServiceCollectionExtensions.cs (1)
49public static IServiceCollection AddFakeRedaction(this IServiceCollection services, Action<FakeRedactorOptions> configure)
Microsoft.Extensions.Compliance.Testing.Tests (2)
RedactionFakesAcceptanceTests.cs (2)
234Assert.Throws<ArgumentNullException>(() => new ServiceCollection().AddRedaction(x => x.SetFakeRedactor((Action<FakeRedactorOptions>)null!, dc))); 236Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddRedaction(x => x.SetFakeRedactor((Action<FakeRedactorOptions>)null!, dc)));
Microsoft.Extensions.Configuration (3)
ConfigurationReloadToken.cs (1)
37public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
src\libraries\Common\src\Extensions\ChangeCallbackRegistrar.cs (2)
22internal static IDisposable UnsafeRegisterChangeCallback<T>(Action<object?> callback, object? state, CancellationToken token, Action<T> onFailure, T onFailureState)
Microsoft.Extensions.Configuration.Abstractions (1)
ConfigurationExtensions.cs (1)
22public static IConfigurationBuilder Add<TSource>(this IConfigurationBuilder builder, Action<TSource>? configureSource) where TSource : IConfigurationSource, new()
Microsoft.Extensions.Configuration.Binder (3)
ConfigurationBinder.cs (3)
51public static T? Get<T>(this IConfiguration configuration, Action<BinderOptions>? configureOptions) 90Action<BinderOptions>? configureOptions) 134public static void Bind(this IConfiguration configuration, object? instance, Action<BinderOptions>? configureOptions)
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationExtensions.cs (1)
167public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder builder, Action<CommandLineConfigurationSource>? configureSource)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesExtensions.cs (1)
46public static IConfigurationBuilder AddEnvironmentVariables(this IConfigurationBuilder builder, Action<EnvironmentVariablesConfigurationSource>? configureSource)
Microsoft.Extensions.Configuration.FileExtensions (4)
FileConfigurationExtensions.cs (3)
69public static IConfigurationBuilder SetFileLoadExceptionHandler(this IConfigurationBuilder builder, Action<FileLoadExceptionContext> handler) 82public static Action<FileLoadExceptionContext>? GetFileLoadExceptionHandler(this IConfigurationBuilder builder) 88return handler as Action<FileLoadExceptionContext>;
FileConfigurationSource.cs (1)
51public Action<FileLoadExceptionContext>? OnLoadException { get; set; }
Microsoft.Extensions.Configuration.Ini (1)
IniConfigurationExtensions.cs (1)
90public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builder, Action<IniConfigurationSource>? configureSource)
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationExtensions.cs (1)
90public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, Action<JsonConfigurationSource>? configureSource)
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationBuilderExtensions.cs (1)
65public static IConfigurationBuilder AddKeyPerFile(this IConfigurationBuilder builder, Action<KeyPerFileConfigurationSource> configureSource)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
463public IDisposable RegisterChangeCallback(Action<object> callback, object state)
Microsoft.Extensions.Configuration.Xml (1)
XmlConfigurationExtensions.cs (1)
101public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, Action<XmlConfigurationSource>? configureSource)
Microsoft.Extensions.Diagnostics (1)
Metrics\MetricsServiceExtensions.cs (1)
48public static IServiceCollection AddMetrics(this IServiceCollection services, Action<IMetricsBuilder> configure)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Metrics\MetricsBuilderExtensions.Rules.cs (1)
103private static IMetricsBuilder ConfigureRule(this IMetricsBuilder builder, Action<MetricsOptions> configureOptions)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
ExceptionSummarizationServiceCollectionExtensions.cs (1)
38public static IServiceCollection AddExceptionSummarizer(this IServiceCollection services, Action<IExceptionSummarizationBuilder> configure)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
CommonHealthChecksExtensions.TelemetryPublisher.cs (1)
47public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services, Action<TelemetryHealthCheckPublisherOptions> configure)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (3)
DefaultHealthCheckServiceTest.cs (1)
626private static DefaultHealthCheckService CreateHealthChecksService(Action<IHealthChecksBuilder> configure)
HealthCheckPublisherHostedServiceTest.cs (2)
738Action<HealthCheckPublisherOptions>? configurePublisherOptions = null, 739Action<IHealthChecksBuilder>? configureBuilder = null,
Microsoft.Extensions.Diagnostics.Probes (3)
KubernetesProbesExtensions.cs (1)
45public static IServiceCollection AddKubernetesProbes(this IServiceCollection services, Action<KubernetesProbesOptions> configure)
TcpEndpointProbesExtensions.cs (2)
67Action<TcpEndpointProbesOptions> configure) 88Action<TcpEndpointProbesOptions> configure)
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
KubernetesProbesExtensionsTests.cs (1)
120private static IHost CreateWebHost(Action<IServiceCollection> configureServices)
KubernetesProbesOptionsValidatorTests.cs (1)
118private static IHost CreateHost(Action<IServiceCollection> configureServices)
TcpEndpointProbesExtensionsTests.cs (1)
175private static IHost CreateWebHost(Action<IServiceCollection> configureServices)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
ResourceMonitoringBuilderExtensions.cs (2)
30Action<ResourceMonitoringOptions> configure) 57Action<OptionsBuilder<ResourceMonitoringOptions>> configure)
ResourceMonitoringServiceCollectionExtensions.cs (2)
55Action<IResourceMonitorBuilder> configure) 65Action<IResourceMonitorBuilder> configure)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (7)
Linux\Resources\GenericPublisher.cs (3)
11/// A publisher that accept <see cref="Action{Utilization}"/> in its constructor. 15private readonly Action<ResourceUtilization> _publish; 16public GenericPublisher(Action<ResourceUtilization> publish)
Publishers\GenericPublisher.cs (3)
11/// A publisher that accept <see cref="Action{Utilization}"/> in its constructor. 15private readonly Action<ResourceUtilization> _publish; 16public GenericPublisher(Action<ResourceUtilization> publish)
ResourceMonitoringExtensionsTests.cs (1)
30Assert.Throws<ArgumentNullException>(() => services.AddResourceMonitoring((b) => b.ConfigureMonitor((Action<ResourceMonitoringOptions>)null!)));
Microsoft.Extensions.Diagnostics.Testing (5)
Logging\FakeLogCollectorOptions.cs (1)
71public Action<string>? OutputSink { get; set; }
Logging\FakeLogger.cs (1)
49public FakeLogger(Action<string> outputSink, string? category = null)
Logging\FakeLoggerBuilderExtensions.cs (1)
43public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder, Action<FakeLogCollectorOptions> configure)
Logging\FakeLoggerServiceCollectionExtensions.cs (1)
31public static IServiceCollection AddFakeLogging(this IServiceCollection services, Action<FakeLogCollectorOptions> configure)
Logging\FakeLoggerT.cs (1)
38public FakeLogger(Action<string> outputSink)
Microsoft.Extensions.FileProviders.Abstractions (1)
NullChangeToken.cs (1)
39public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
Microsoft.Extensions.FileProviders.Physical (3)
PhysicalFilesWatcher.cs (1)
25private static readonly Action<object?> _cancelTokenSource = state => ((CancellationTokenSource?)state)!.Cancel();
PollingFileChangeToken.cs (1)
116public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
PollingWildCardChangeToken.cs (1)
198IDisposable IChangeToken.RegisterChangeCallback(Action<object?> callback, object? state)
Microsoft.Extensions.Hosting (20)
HostApplicationBuilder.cs (6)
29private Action<object> _configureContainer = _ => { }; 215public void ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory, Action<TContainerBuilder>? configure = null) where TContainerBuilder : notnull 260private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new(); 283foreach (Action<IConfigurationBuilder> configureHostAction in _configureHostConfigActions) 319Action<object> previousConfigureContainer = _hostApplicationBuilder._configureContainer; 346public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate)
HostBuilder.cs (4)
28private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new List<Action<IConfigurationBuilder>>(); 63public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate) 213foreach (Action<IConfigurationBuilder> buildAction in _configureHostConfigActions)
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)
Internal\ConsoleLifetime.netcoreapp.cs (1)
21Action<PosixSignalContext> handler = HandlePosixSignal;
Microsoft.Extensions.Hosting.Abstractions (3)
IHostApplicationBuilder.cs (2)
66/// Multiple calls to <see cref="ConfigureContainer{TContainerBuilder}(IServiceProviderFactory{TContainerBuilder}, Action{TContainerBuilder})"/> will replace 70void ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory, Action<TContainerBuilder>? configure = null) where TContainerBuilder : notnull;
IHostBuilder.cs (1)
28IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate);
Microsoft.Extensions.Hosting.Testing (5)
FakeHost.cs (1)
42public static IHostBuilder CreateBuilder(Action<FakeHostOptions> configure)
FakeHostBuilder.cs (1)
62public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate)
FakeHostingExtensions.cs (3)
76public static IHostBuilder AddFakeLoggingOutputSink(this IHostBuilder builder, Action<string> callback) 89var currentCallback = logging.OutputSink; 108public static IHostBuilder Configure(this IHostBuilder builder, Action<IHostBuilder> configure)
Microsoft.Extensions.Hosting.Testing.Tests (3)
FakeHostBuilderTests.cs (1)
62var configurationDelegate = (IConfigurationBuilder _) => { };
HostingFakesExtensionsTests.cs (2)
345.Setup(x => x.ConfigureHostConfiguration(It.IsAny<Action<IConfigurationBuilder>>())) 347.Callback<Action<IConfigurationBuilder>>(configure => configure(hostConfigBuilder));
Microsoft.Extensions.Hosting.WindowsServices (5)
WindowsServiceLifetimeHostBuilderExtensions.cs (5)
43/// <param name="configure">An <see cref="Action{WindowsServiceLifetimeOptions}"/> to configure the provided <see cref="WindowsServiceLifetimeOptions"/>.</param> 45public static IHostBuilder UseWindowsService(this IHostBuilder hostBuilder, Action<WindowsServiceLifetimeOptions> configure) 93/// <param name="configure">An <see cref="Action{WindowsServiceLifetimeOptions}"/> to configure the provided <see cref="WindowsServiceLifetimeOptions"/>.</param> 95public static IServiceCollection AddWindowsService(this IServiceCollection services, Action<WindowsServiceLifetimeOptions> configure) 107private static void AddWindowsServiceLifetime(IServiceCollection services, Action<WindowsServiceLifetimeOptions> configure)
Microsoft.Extensions.Http (27)
DefaultHttpClientFactory.cs (2)
150Action<HttpMessageHandlerBuilder> configure = Configure; 178foreach (Action<HttpMessageHandlerBuilder> action in options.LoggingBuilderActions)
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})"/>,
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (6)
80public static IServiceCollection ConfigureHttpClientDefaults(this IServiceCollection services, Action<IHttpClientBuilder> configure) 135public static IHttpClientBuilder AddHttpClient(this IServiceCollection services, string name, Action<HttpClient> configureClient) 362this IServiceCollection services, Action<HttpClient> configureClient) 444this IServiceCollection services, Action<HttpClient> configureClient) 531this IServiceCollection services, string name, Action<HttpClient> configureClient) 619this IServiceCollection services, string name, Action<HttpClient> configureClient)
HttpClientFactoryOptions.cs (6)
28public IList<Action<HttpMessageHandlerBuilder>> HttpMessageHandlerBuilderActions { get; } = new List<Action<HttpMessageHandlerBuilder>>(); 33public IList<Action<HttpClient>> HttpClientActions { get; } = new List<Action<HttpClient>>(); 106internal List<Action<HttpMessageHandlerBuilder>> LoggingBuilderActions { get; } = new List<Action<HttpMessageHandlerBuilder>>();
IHttpMessageHandlerBuilderFilter.cs (2)
20Action<HttpMessageHandlerBuilder> Configure(Action<HttpMessageHandlerBuilder> next);
Logging\LoggingHttpMessageHandlerBuilderFilter.cs (2)
31public Action<HttpMessageHandlerBuilder> Configure(Action<HttpMessageHandlerBuilder> next)
MetricsFactoryHttpMessageHandlerFilter.cs (2)
22public Action<HttpMessageHandlerBuilder> Configure(Action<HttpMessageHandlerBuilder> next)
Microsoft.Extensions.Http.Diagnostics (4)
Latency\HttpClientLatencyTelemetryExtensions.cs (1)
78public static IServiceCollection AddHttpClientLatencyTelemetry(this IServiceCollection services, Action<HttpClientLatencyTelemetryOptions> configure)
Logging\HttpClientLoggingHttpClientBuilderExtensions.cs (2)
72public static IHttpClientBuilder AddExtendedHttpClientLogging(this IHttpClientBuilder builder, Action<LoggingOptions> configure) 80private static IHttpClientBuilder AddExtendedHttpClientLoggingInternal(IHttpClientBuilder builder, Action<OptionsBuilder<LoggingOptions>>? configureOptionsBuilder = null)
Logging\HttpClientLoggingServiceCollectionExtensions.cs (1)
83public static IServiceCollection AddExtendedHttpClientLogging(this IServiceCollection services, Action<LoggingOptions> configure)
Microsoft.Extensions.Http.Diagnostics.Tests (5)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (1)
26act = () => Mock.Of<IServiceCollection>().AddHttpClientLatencyTelemetry((Action<HttpClientLatencyTelemetryOptions>)null!);
Logging\HttpClientLoggingExtensionsTest.cs (2)
46act = () => Mock.Of<IHttpClientBuilder>().AddExtendedHttpClientLogging((Action<LoggingOptions>)null!); 65act = () => Mock.Of<IServiceCollection>().AddExtendedHttpClientLogging((Action<LoggingOptions>)null!);
Logging\HttpRequestReaderTest.cs (1)
579Action<FakeRedactorOptions>? configureRedaction = null)
Logging\Internal\LogRecordExtensions.cs (1)
33public static void Contains(this IDictionary<string, string?> logRecordState, string key, Action<string?> assertion)
Microsoft.Extensions.Http.Resilience (7)
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (1)
42public static IStandardHedgingHandlerBuilder AddStandardHedgingHandler(this IHttpClientBuilder builder, Action<IRoutingStrategyBuilder> configure)
Hedging\StandardHedgingHandlerBuilderExtensions.cs (1)
49public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, Action<HttpStandardHedgingResilienceOptions> configure)
Resilience\HttpStandardResiliencePipelineBuilderExtensions.cs (1)
50public static IHttpStandardResiliencePipelineBuilder Configure(this IHttpStandardResiliencePipelineBuilder builder, Action<HttpStandardResilienceOptions> configure)
Resilience\ResilienceHttpClientBuilderExtensions.Resilience.cs (1)
38Action<ResiliencePipelineBuilder<HttpResponseMessage>> configure)
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (1)
49public static IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler(this IHttpClientBuilder builder, Action<HttpStandardResilienceOptions> configure)
Routing\RoutingStrategyBuilderExtensions.cs (2)
47public static IRoutingStrategyBuilder ConfigureOrderedGroups(this IRoutingStrategyBuilder builder, Action<OrderedGroupsRoutingOptions> configure) 93public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, Action<WeightedGroupsRoutingOptions> configure)
Microsoft.Extensions.Http.Resilience.Tests (11)
Hedging\HedgingTests.cs (1)
339protected abstract void ConfigureHedgingOptions(Action<HttpHedgingStrategyOptions> configure);
Hedging\StandardHedgingTests.cs (2)
246out var reloadAction).GetSection("standard"); 348protected override void ConfigureHedgingOptions(Action<HttpHedgingStrategyOptions> configure) => Builder.Configure(options => configure(options.Hedging));
Helpers\ConfigurationStubFactory.cs (1)
14public static IConfiguration Create(Dictionary<string, string?> collection, out Action<Dictionary<string, string?>> reload)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
36Assert.Throws<ArgumentNullException>(() => builder.AddResilienceHandler("dummy", (Action<ResiliencePipelineBuilder<HttpResponseMessage>>)null!));
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (2)
234out var reloadAction).GetSection("standard"); 275Action<HttpStandardResilienceOptions> configureMethod)
Routing\OrderedRoutingStrategyTest.cs (1)
83protected override IEnumerable<Action<IRoutingStrategyBuilder>> ConfigureInvalidRoutes()
Routing\RoutingStrategyTest.cs (2)
79foreach (var action in ConfigureInvalidRoutes()) 175protected abstract IEnumerable<Action<IRoutingStrategyBuilder>> ConfigureInvalidRoutes();
Routing\WeightedRoutingStrategyTest.cs (1)
103protected override IEnumerable<Action<IRoutingStrategyBuilder>> ConfigureInvalidRoutes()
Microsoft.Extensions.Identity.Core (1)
IdentityServiceCollectionExtensions.cs (1)
33public static IdentityBuilder AddIdentityCore<TUser>(this IServiceCollection services, Action<IdentityOptions> setupAction)
Microsoft.Extensions.Localization (3)
LocalizationServiceCollectionExtensions.cs (3)
37/// An <see cref="Action{LocalizationOptions}"/> to configure the <see cref="LocalizationOptions"/>. 42Action<LocalizationOptions> setupAction) 63Action<LocalizationOptions> setupAction)
Microsoft.Extensions.Logging (4)
FilterLoggingBuilderExtensions.cs (1)
192private static ILoggingBuilder ConfigureFilter(this ILoggingBuilder builder, Action<LoggerFilterOptions> configureOptions)
LoggerFactory.cs (1)
112public static ILoggerFactory Create(Action<ILoggingBuilder> configure)
LoggingBuilderExtensions.cs (1)
58public static ILoggingBuilder Configure(this ILoggingBuilder builder, Action<LoggerFactoryOptions> action)
LoggingServiceCollectionExtensions.cs (1)
32public static IServiceCollection AddLogging(this IServiceCollection services, Action<ILoggingBuilder> configure)
Microsoft.Extensions.Logging.AzureAppServices (4)
AzureAppServicesLoggerFactoryExtensions.cs (2)
39public static ILoggingBuilder AddAzureWebAppDiagnostics(this ILoggingBuilder builder, Action<AzureBlobLoggerOptions> configureBlobLoggerOptions) 47internal static ILoggingBuilder AddAzureWebAppDiagnostics(this ILoggingBuilder builder, IWebAppContext context, Action<AzureBlobLoggerOptions> configureBlobLoggerOptions)
BlobLoggerConfigureOptions.cs (2)
14private readonly Action<AzureBlobLoggerOptions> _configureOptions; 16public BlobLoggerConfigureOptions(IConfiguration configuration, IWebAppContext context, Action<AzureBlobLoggerOptions> configureOptions)
Microsoft.Extensions.Logging.Console (7)
ConsoleLoggerExtensions.cs (6)
50public static ILoggingBuilder AddConsole(this ILoggingBuilder builder, Action<ConsoleLoggerOptions> configure) 72public static ILoggingBuilder AddSimpleConsole(this ILoggingBuilder builder, Action<SimpleConsoleFormatterOptions> configure) 89public static ILoggingBuilder AddJsonConsole(this ILoggingBuilder builder, Action<JsonConsoleFormatterOptions> configure) 99public static ILoggingBuilder AddSystemdConsole(this ILoggingBuilder builder, Action<ConsoleFormatterOptions> configure) 111internal static ILoggingBuilder AddConsoleWithFormatter<TOptions>(this ILoggingBuilder builder, string name, Action<TOptions> configure) 145public static ILoggingBuilder AddConsoleFormatter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFormatter, TOptions>(this ILoggingBuilder builder, Action<TOptions> configure)
ConsoleLoggerExtensions.Obsolete.cs (1)
171public IDisposable RegisterChangeCallback(Action<object?> callback, object? state) => this;
Microsoft.Extensions.Logging.EventLog (1)
EventLoggerFactoryExtensions.cs (1)
87public static ILoggingBuilder AddEventLog(this ILoggingBuilder builder, Action<EventLogSettings> configure)
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (2)
25private readonly Action<Diagnostic> _reportDiagnostic; 27public Parser(Compilation compilation, Action<Diagnostic> reportDiagnostic, CancellationToken cancellationToken)
Microsoft.Extensions.ML (1)
ModelReloadToken.cs (1)
42public IDisposable RegisterChangeCallback(Action<object> callback, object state) => _cts.Token.Register(callback, state);
Microsoft.Extensions.ObjectPool.DependencyInjection (4)
ObjectPoolServiceCollectionExtensions.cs (4)
34Action<DependencyInjectionPoolOptions>? configure = null) 55Action<DependencyInjectionPoolOptions>? configure = null) 69public static IServiceCollection ConfigurePool<TService>(this IServiceCollection services, Action<DependencyInjectionPoolOptions> configure) 98Action<DependencyInjectionPoolOptions>? configure)
Microsoft.Extensions.Options (33)
ConfigureNamedOptions.cs (2)
19public ConfigureNamedOptions(string? name, Action<TOptions>? action) 33public Action<TOptions>? Action { get; }
ConfigureOptions.cs (2)
18public ConfigureOptions(Action<TOptions>? action) 26public Action<TOptions>? Action { get; }
OptionsBuilder.cs (14)
46/// These are run before all <see cref="PostConfigure(Action{TOptions})"/>. 48public virtual OptionsBuilder<TOptions> Configure(Action<TOptions> configureOptions) 63/// These are run before all <see cref="PostConfigure(Action{TOptions})"/>. 83/// These are run before all <see cref="PostConfigure(Action{TOptions})"/>. 105/// These are run before all <see cref="PostConfigure(Action{TOptions})"/>. 134/// These are run before all <see cref="PostConfigure(Action{TOptions})"/>. 166/// These are run before all <see cref="PostConfigure(Action{TOptions})"/>. 195/// These are run after all <see cref="Configure(Action{TOptions})"/>. 197public virtual OptionsBuilder<TOptions> PostConfigure(Action<TOptions> configureOptions) 212/// These are run after all <see cref="Configure(Action{TOptions})"/>. 232/// These are run after all <see cref="Configure(Action{TOptions})"/>. 254/// These are run after all <see cref="Configure(Action{TOptions})"/>. 283/// These are run after all <see cref="Configure(Action{TOptions})"/>. 315/// These are run after all <see cref="Configure(Action{TOptions})"/>.
OptionsMonitorExtensions.cs (1)
23Action<TOptions> listener)
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<>) ?
PostConfigureOptions.cs (2)
19public PostConfigureOptions(string? name, Action<TOptions>? action) 33public Action<TOptions>? Action { get; }
Microsoft.Extensions.Options.ConfigurationExtensions (6)
NamedConfigureFromConfigurationOptions.cs (1)
37public NamedConfigureFromConfigurationOptions(string? name, IConfiguration config, Action<BinderOptions>? configureBinder)
OptionsBuilderConfigurationExtensions.cs (3)
41public static OptionsBuilder<TOptions> Bind<TOptions>(this OptionsBuilder<TOptions> optionsBuilder, IConfiguration config, Action<BinderOptions>? configureBinder) where TOptions : class 61/// <seealso cref="Bind{TOptions}(OptionsBuilder{TOptions}, IConfiguration, Action{BinderOptions})"/> 67Action<BinderOptions>? configureBinder = null)
OptionsConfigurationServiceCollectionExtensions.cs (2)
51public static IServiceCollection Configure<TOptions>(this IServiceCollection services, IConfiguration config, Action<BinderOptions>? configureBinder) 66public static IServiceCollection Configure<TOptions>(this IServiceCollection services, string? name, IConfiguration config, Action<BinderOptions>? configureBinder)
Microsoft.Extensions.Options.SourceGeneration (2)
Parser.cs (2)
26private readonly Action<Diagnostic> _reportDiagnostic; 34Action<Diagnostic> reportDiagnostic,
Microsoft.Extensions.Primitives (10)
CancellationChangeToken.cs (1)
35public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
ChangeToken.cs (3)
41public static IDisposable OnChange<TState>(Func<IChangeToken?> changeTokenProducer, Action<TState> changeTokenConsumer, TState state) 58private readonly Action<TState> _changeTokenConsumer; 64public ChangeTokenRegistration(Func<IChangeToken?> changeTokenProducer, Action<TState> changeTokenConsumer, TState state)
CompositeChangeToken.cs (2)
18private static readonly Action<object?> _onChangeDelegate = OnChange; 55public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
IChangeToken.cs (2)
28/// <param name="callback">The <see cref="Action{Object}"/> to invoke.</param> 31IDisposable RegisterChangeCallback(Action<object?> callback, object? state);
src\libraries\Common\src\Extensions\ChangeCallbackRegistrar.cs (2)
22internal static IDisposable UnsafeRegisterChangeCallback<T>(Action<object?> callback, object? state, CancellationToken token, Action<T> onFailure, T onFailureState)
Microsoft.Extensions.Resilience.PerformanceTests (1)
ResilienceEnrichmentBenchmark.cs (1)
38private static ResiliencePipeline CreateResiliencePipeline(Action<IServiceCollection> configure)
Microsoft.Extensions.Resilience.Tests (1)
Resilience\ResilienceMetricsEnricherTests.cs (1)
79private EnrichmentContext<T, object> CreateEnrichmentContext<T>(Outcome<T>? outcome = null, Action<ResilienceContext>? configure = null)
Microsoft.Extensions.ServiceDiscovery (6)
ServiceDiscoveryHttpClientBuilderExtensions.cs (2)
75public Action<HttpMessageHandlerBuilder> Configure(Action<HttpMessageHandlerBuilder> next)
ServiceDiscoveryServiceCollectionExtensions.cs (3)
37public static IServiceCollection AddServiceDiscovery(this IServiceCollection services, Action<ServiceDiscoveryOptions> configureOptions) 55public static IServiceCollection AddServiceDiscoveryCore(this IServiceCollection services, Action<ServiceDiscoveryOptions> configureOptions) 90public static IServiceCollection AddConfigurationServiceEndpointProvider(this IServiceCollection services, Action<ConfigurationServiceEndpointProviderOptions> configureOptions)
ServiceEndpointWatcher.cs (1)
45public Action<ServiceEndpointResolverResult>? OnEndpointsUpdated { get; set; }
Microsoft.Extensions.ServiceDiscovery.Dns (2)
ServiceDiscoveryDnsServiceCollectionExtensions.cs (2)
43public static IServiceCollection AddDnsSrvServiceEndpointProvider(this IServiceCollection services, Action<DnsSrvServiceEndpointProviderOptions> configureOptions) 106public static IServiceCollection AddDnsServiceEndpointProvider(this IServiceCollection services, Action<DnsServiceEndpointProviderOptions> configureOptions)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (8)
DnsServicePublicApiTests.cs (4)
27Action<DnsSrvServiceEndpointProviderOptions> configureOptions = (_) => { }; 39Action<DnsSrvServiceEndpointProviderOptions> configureOptions = null!; 62Action<DnsServiceEndpointProviderOptions> configureOptions = (_) => { }; 74Action<DnsServiceEndpointProviderOptions> configureOptions = null!;
tests\Shared\Logging\ITestSink.cs (2)
10event Action<WriteContext> MessageLogged; 12event Action<BeginScopeContext> ScopeStarted;
tests\Shared\Logging\TestSink.cs (2)
32public event Action<WriteContext>? MessageLogged; 34public event Action<BeginScopeContext>? ScopeStarted;
Microsoft.Extensions.ServiceDiscovery.Tests (6)
ExtensionsServicePublicApiTests.cs (6)
45Action<ServiceDiscoveryOptions> configureOptions = (_) => { }; 57Action<ServiceDiscoveryOptions> configureOptions = null!; 80Action<ServiceDiscoveryOptions> configureOptions = (_) => { }; 92Action<ServiceDiscoveryOptions> configureOptions = null!; 115Action<ConfigurationServiceEndpointProviderOptions> configureOptions = (_) => { }; 127Action<ConfigurationServiceEndpointProviderOptions> configureOptions = null!;
Microsoft.Extensions.Telemetry (13)
Enrichment\ApplicationEnricherServiceCollectionExtensions.cs (1)
37public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, Action<ApplicationLogEnricherOptions> configure)
Enrichment\ProcessEnricherServiceCollectionExtensions.cs (1)
37public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services, Action<ProcessLogEnricherOptions> configure)
Latency\LatencyConsoleExtensions.cs (1)
41public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services, Action<LatencyConsoleOptions> configure)
Latency\LatencyContextExtensions.cs (1)
40public static IServiceCollection AddLatencyContext(this IServiceCollection services, Action<LatencyContextOptions> configure)
Logging\ExtendedLogger.cs (2)
259foreach (var enricher in config.Enrichers) 381foreach (var enricher in config.Enrichers)
Logging\ExtendedLoggerFactory.cs (2)
29private readonly Action<IEnrichmentTagCollector>[] _enrichers; 94_enrichers = enrichers.Select<ILogEnricher, Action<IEnrichmentTagCollector>>(e => e.Enrich).ToArray();
Logging\LoggerConfig.cs (2)
20Action<IEnrichmentTagCollector>[] enrichers, 50public Action<IEnrichmentTagCollector>[] Enrichers { get; }
Logging\LoggingEnrichmentExtensions.cs (1)
32public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder, Action<LoggerEnrichmentOptions> configure)
Logging\LoggingRedactionExtensions.cs (1)
31public static ILoggingBuilder EnableRedaction(this ILoggingBuilder builder, Action<LoggerRedactionOptions> configure)
Sampling\SamplingLoggerBuilderExtensions.cs (1)
77public static ILoggingBuilder AddRandomProbabilisticSampler(this ILoggingBuilder builder, Action<RandomProbabilisticSamplerOptions> configure)
Microsoft.Extensions.Telemetry.Abstractions (1)
Latency\Registration\LatencyRegistryServiceCollectionExtensions.cs (1)
80private static void ConfigureOption(this IServiceCollection services, Action<LatencyContextRegistrationOptions> action)
Microsoft.Extensions.Telemetry.Tests (2)
Enrichment\ProcessEnricherExtensionsTests.cs (1)
33new ServiceCollection().AddProcessLogEnricher((Action<ProcessLogEnricherOptions>)null!));
Logging\Utils.cs (1)
11public static ILoggerFactory CreateLoggerFactory(Action<ILoggingBuilder>? configure = null)
Microsoft.Extensions.Validation (2)
ValidateContext.cs (1)
66public event Action<ValidationErrorContext>? OnValidationError;
ValidationServiceCollectionExtensions.cs (1)
19public static IServiceCollection AddValidation(this IServiceCollection services, Action<ValidationOptions>? configureOptions = null)
Microsoft.Extensions.Validation.GeneratorTests (6)
ValidationsGeneratorTestBase.cs (6)
274Action<object> configureHostBuilder = null, 275Action<Exception> entrypointCompleted = null) 395private readonly Action<object> _configure; 396private readonly Action<Exception> _entrypointCompleted; 399public HostingListener(string[] args, MethodInfo entryPoint, TimeSpan waitTimeout, bool stopApplication, Action<object> configure, Action<Exception> entrypointCompleted)
Microsoft.Extensions.WebEncoders (2)
EncoderServiceCollectionExtensions.cs (2)
47/// <param name="setupAction">An <see cref="Action{WebEncoderOptions}"/> to configure the provided <see cref="WebEncoderOptions"/>.</param> 49public static IServiceCollection AddWebEncoders(this IServiceCollection services, Action<WebEncoderOptions> setupAction)
Microsoft.Gen.Logging (2)
Parsing\Parser.cs (2)
21private readonly Action<Diagnostic> _reportDiagnostic; 24public Parser(Compilation compilation, Action<Diagnostic> reportDiagnostic, CancellationToken cancellationToken)
Microsoft.Gen.Logging.Unit.Tests (3)
LogParserUtilitiesTests.cs (3)
71var diagMock = new Mock<Action<Diagnostic>>(); 119var diagMock = new Mock<Action<Diagnostic>>(); 186var diagMock = new Mock<Action<Diagnostic>>();
Microsoft.Gen.MetadataExtractor (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
47private readonly Action<Diagnostic> _reportDiagnostic; 50public Parser(Compilation compilation, Action<Diagnostic> reportDiagnostic, CancellationToken cancellationToken)
Microsoft.Gen.Metrics (2)
Parser.cs (2)
47private readonly Action<Diagnostic> _reportDiagnostic; 50public Parser(Compilation compilation, Action<Diagnostic> reportDiagnostic, CancellationToken cancellationToken)
Microsoft.Gen.MetricsReports (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
47private readonly Action<Diagnostic> _reportDiagnostic; 50public Parser(Compilation compilation, Action<Diagnostic> reportDiagnostic, CancellationToken cancellationToken)
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\DiagnosticReporter.cs (1)
19public static DiagnosticReporter CreateForLocation(Location location, Action<Diagnostic> reportDiagnostic) => new((descriptor, properties, args) => reportDiagnostic(location.CreateDiagnosticInfo(descriptor, properties, args).ToDiagnostic()));
Microsoft.Maui (38)
Animations\Animation.cs (4)
25 /// <param name="callback">The <see cref="Action{T}"/> that is invoked after each tick of this animation.</param> 29 /// <param name="finished">A callback <see cref="Action{T}"/> that is invoked after the animation has finished.</param> 30 public Animation(Action<double> callback, double start = 0.0f, double duration = 1.0f, Easing? easing = null, Action? finished = null) 59 public Action<double>? Step { get; set; }
Animations\LerpingAnimation.cs (3)
21 /// <param name="callback">The <see cref="Action{T}"/> that is invoked after each tick of this animation.</param> 25 /// <param name="finished">A callback <see cref="Action{T}"/> that is invoked after the animation has finished.</param> 26 public LerpingAnimation(Action<double> callback, double start = 0, double end = 1, Easing? easing = null, Action? finished = null)
Extensions\EnumerableExtensions.cs (1)
16 public static void ForEach<T>(this IEnumerable<T> enumeration, Action<T> action)
Hosting\EssentialsMauiAppBuilderExtensions.cs (6)
18 IEssentialsBuilder OnAppAction(Action<AppAction> action); 85 public static MauiAppBuilder ConfigureEssentials(this MauiAppBuilder builder, Action<IEssentialsBuilder>? configureDelegate = null) 101 private readonly Action<IEssentialsBuilder> _registerEssentials; 103 public EssentialsRegistration(Action<IEssentialsBuilder> registerEssentials) 175 internal Action<AppAction>? AppActionHandlers; 197 public IEssentialsBuilder OnAppAction(Action<AppAction> action)
Hosting\Fonts\FontsMauiAppBuilderExtensions.cs (3)
29 public static MauiAppBuilder ConfigureFonts(this MauiAppBuilder builder, Action<IFontCollection>? configureDelegate) 45 private readonly Action<IFontCollection> _registerFonts; 47 public FontsRegistration(Action<IFontCollection> registerFonts)
Hosting\HandlerMauiAppBuilderExtensions.cs (4)
12 public static MauiAppBuilder ConfigureMauiHandlers(this MauiAppBuilder builder, Action<IMauiHandlersCollection>? configureDelegate) 18 public static IServiceCollection ConfigureMauiHandlers(this IServiceCollection services, Action<IMauiHandlersCollection>? configureDelegate) 33 private readonly Action<IMauiHandlersCollection> _registerAction; 35 public HandlerRegistration(Action<IMauiHandlersCollection> registerAction)
Hosting\ImageSources\ImageSourcesMauiAppBuilderExtensions.cs (3)
24 public static MauiAppBuilder ConfigureImageSources(this MauiAppBuilder builder, Action<IImageSourceServiceCollection>? configureDelegate) 39 private readonly Action<IImageSourceServiceCollection> _registerAction; 41 public ImageSourceRegistration(Action<IImageSourceServiceCollection> registerAction)
Hosting\LifecycleEvents\AppHostBuilderExtensions.cs (3)
10 private readonly Action<ILifecycleBuilder> _registerAction; 12 public LifecycleEventRegistration(Action<ILifecycleBuilder> registerAction) 25 public static MauiAppBuilder ConfigureLifecycleEvents(this MauiAppBuilder builder, Action<ILifecycleBuilder>? configureDelegate)
Hosting\MauiAppBuilder.cs (3)
118 /// <see cref="ConfigureContainer{TBuilder}(IServiceProviderFactory{TBuilder}, Action{TBuilder})"/> is called by <see cref="Build"/> 122 /// Multiple calls to <see cref="ConfigureContainer{TBuilder}(IServiceProviderFactory{TBuilder}, Action{TBuilder})"/> will replace 126 public void ConfigureContainer<TBuilder>(IServiceProviderFactory<TBuilder> factory, Action<TBuilder>? configure = null) where TBuilder : notnull
HotReload\HotReloadHelper.cs (1)
134 Action<MethodInfo> executeStaticMethod = (method) =>
ImageSources\ImageSourceExtensions.cs (2)
23 public static void LoadImage(this IImageSource? source, IMauiContext mauiContext, Action<IImageSourceServiceResult<PlatformImage>?>? finished = null) 29 static async Task LoadImageResult(Task<IImageSourceServiceResult<PlatformImage>?> task, Action<IImageSourceServiceResult<PlatformImage>?>? finished = null)
LifecycleEvents\LifecycleEventServiceExtensions.cs (2)
13 public static void InvokeEvents<TDelegate>(this ILifecycleEventService lifecycleService, string eventName, Action<TDelegate> action) 22 internal static void InvokeLifecycleEvents<TDelegate>(this IServiceProvider services, Action<TDelegate> action)
Platform\ImageSourcePartLoader.cs (1)
43 public ImageSourcePartLoader(IElementHandler handler, Func<IImageSourcePart?> imageSourcePart, Action<PlatformImage?> setImage)
TaskExtensions.cs (2)
13 Action<Exception>? errorCallback = null) 31 Action<Exception>? errorCallback = null
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;
Command.cs (5)
11 public Command(Action<T> execute) 27 public Command(Action<T> execute, Func<T, bool> canExecute) 67 readonly Action<object> _execute; 71 public Command(Action<object> execute) 87 public Command(Action<object> execute, Func<object, bool> canExecute) : this(execute)
Hosting\Effects\AppHostBuilderExtensions.cs (3)
43 public static MauiAppBuilder ConfigureEffects(this MauiAppBuilder builder, Action<IEffectsBuilder> configureDelegate) 57 private readonly Action<IEffectsBuilder> _registerEffects; 59 public EffectsRegistration(Action<IEffectsBuilder> registerEffects)
Internals\ResourceLoader.cs (1)
37 internal static Action<(Exception exception, string filepath)> ExceptionHandler2 { get; set; }
MessagingCenter.cs (3)
17 void Subscribe<TSender>(object subscriber, string message, Action<TSender> callback, TSender source = null) where TSender : class; 157 public static void Subscribe<TSender>(object subscriber, string message, Action<TSender> callback, TSender source = null) where TSender : class 162 void IMessagingCenter.Subscribe<TSender>(object subscriber, string message, Action<TSender> callback, TSender source)
PointerGestureRecognizer.cs (1)
253 Action<bool> updatePointerState,
Registrar.cs (1)
446 Action<(Type handler, Type target)> viewRegistered,
Shell\IShellSectionController.cs (1)
19 void AddDisplayedPageObserver(object observer, Action<Page> callback);
Shell\Shell.cs (1)
1793 Action<Element> observer,
Shell\ShellSection.cs (3)
40 readonly List<(object Observer, Action<Page> Callback)> _displayedPageObservers = 41 new List<(object Observer, Action<Page> Callback)>(); 81 void IShellSectionController.AddDisplayedPageObserver(object observer, Action<Page> callback)
Shell\ShellTemplatedViewManager.cs (6)
14 Action<Element> OnChildRemoved, 15 Action<Element> OnChildAdded) 32 Action<Element> OnChildRemoved, 33 Action<Element> OnChildAdded) 48 Action<Element> OnChildRemoved, 49 Action<Element> OnChildAdded,
ViewExtensions.cs (2)
270 Action<double> translateX = f => 275 Action<double> translateY = f =>
VisualStateManager.cs (2)
727 readonly Action<List<T>> _onAdd; 730 public WatchAddList(Action<List<T>> onAdd)
Microsoft.Maui.Controls.Xaml (5)
ExpandMarkupsVisitor.cs (1)
118 internal Action<Exception> ExceptionHandler { get; set; }
HydrationContext.cs (1)
18 public Action<Exception> ExceptionHandler { get; set; }
XamlLoader.cs (3)
86 ExceptionHandler = doNotThrow ? ehandler : (Action<Exception>)null 126 ExceptionHandler = doNotThrow ? ehandler : (Action<Exception>)null, 170 ExceptionHandler = ResourceLoader.ExceptionHandler2 != null ? ehandler : (Action<Exception>)null,
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (3)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (3)
730 private void Draw(Action<CanvasDrawingSession> drawingAction) 801 private void DrawShadow(Action<CanvasDrawingSession> drawingAction) 826 private void DrawBlurred(Action<CanvasDrawingSession> drawingAction)
Microsoft.Maui.Maps (2)
src\Core\src\TaskExtensions.cs (2)
13 Action<Exception>? errorCallback = null) 31 Action<Exception>? errorCallback = null
Microsoft.Maui.Resizetizer (2)
AsyncTask.cs (1)
247 private void LogInternal<T>(Queue queue, Action<T> action, ManualResetEvent resetEvent)
AsyncTaskExtensions.cs (1)
14 public static ParallelLoopResult ParallelForEach<TSource>(this MauiAsyncTask asyncTask, IEnumerable<TSource> source, Action<TSource> body)
Microsoft.ML.Core (24)
Data\IProgressChannel.cs (1)
51void SetHeader(ProgressHeader header, Action<IProgressEntry> fillAction);
Data\ModelLoading.cs (3)
302public bool TryProcessSubModel(string dir, Action<ModelLoadContext> action) 326public bool TryLoadBinaryStream(string name, Action<BinaryReader> action) 347public bool TryLoadTextStream(string name, Action<TextReader> action)
Data\ModelSaveContext.cs (2)
155internal void SaveTextStream(string name, Action<TextWriter> action) 171internal void SaveBinaryStream(string name, Action<BinaryWriter> action)
Data\ModelSaving.cs (2)
61internal static void Save(BinaryWriter writer, Action<ModelSaveContext> fn) 78internal void SaveSubModel(string dir, Action<ModelSaveContext> fn)
Data\ProgressReporter.cs (8)
31private Tuple<ProgressHeader, Action<IProgressEntry>> _headerAndAction; 62_headerAndAction = Tuple.Create<ProgressHeader, Action<IProgressEntry>>(new ProgressHeader(null), null); 66public void SetHeader(ProgressHeader header, Action<IProgressEntry> fillAction) 129var fillAction = cache.Item2; 218private Tuple<ProgressHeader, Action<IProgressEntry>> _headerAndAction; 229var fillAction = cache.Item2; 246_headerAndAction = Tuple.Create<ProgressHeader, Action<IProgressEntry>>(new ProgressHeader(null), null); 260public void SetHeader(ProgressHeader header, Action<IProgressEntry> fillAction)
Data\ServerChannel.cs (3)
30private Action<Bundle> _onPublish; 129public void Acknowledge(Action<Bundle> toDo) 213void Acknowledge(Action<Bundle> toDo);
Utilities\ThreadUtils.cs (4)
18public static Task RunOnBackgroundThreadAsync(Action<object> start, object obj) => 48/// Queues an <see cref="Action{Object}"/> delegate and associated state to be executed immediately on another thread, 53public static Task QueueAsync(Action<object> threadStart, object state) => QueueAsync((Delegate)threadStart, state); 80if (item.action is Action<object> pts)
Utilities\Utils.cs (1)
1213public static void MarshalActionInvoke<TArg1>(Action<TArg1> act, Type genArg, TArg1 arg1)
Microsoft.ML.Core.Tests (2)
UnitTests\TestEntryPoints.cs (2)
3884Action<IDataView> validateAuc = (metricsIdv) => 4075Action<IDataView> aucValidate = (metricsIdv) =>
Microsoft.ML.Data (47)
Commands\TrainCommand.cs (1)
397Action<ModelSaveContext> saveAction;
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)
DataLoadSave\EstimatorExtensions.cs (3)
102private readonly Action<TTransformer> _onFit; 104public DelegateEstimator(IEstimator<TTransformer> estimator, Action<TTransformer> onFit) 145public static IEstimator<TTransformer> WithOnFitDelegate<TTransformer>(this IEstimator<TTransformer> estimator, Action<TTransformer> onFit)
DataLoadSave\LegacyCompositeDataLoader.cs (2)
520public static void SavePipe(IHostEnvironment env, ModelSaveContext ctx, Action<ModelSaveContext> loaderSaveAction, IList<IDataTransform> transforms) 538private static void SaveCore(ModelSaveContext ctx, Action<ModelSaveContext> loaderSaveAction, TransformEx[] transforms)
DataLoadSave\Transpose\TransposeLoader.cs (1)
800Action<int> func = InitOne<int>;
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)
Prediction\Calibrator.cs (1)
1760ctx.SaveTextStream("Calibrator.txt", (Action<TextWriter>)(writer =>
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)
Transforms\ValueMapping.cs (1)
735Action<BinaryReader> fn = r => rgb = ReadAllBytes(env, r);
Microsoft.ML.DataView (1)
Utils.cs (1)
13public static void MarshalActionInvoke<TArg1>(Action<TArg1> act, Type genArg, TArg1 arg1)
Microsoft.ML.FastTree (5)
Dataset\DenseIntArray.cs (4)
137public abstract void Callback(Action<IntPtr> callback); 430public override unsafe void Callback(Action<IntPtr> callback) 616public override unsafe void Callback(Action<IntPtr> callback) 705public override unsafe void Callback(Action<IntPtr> callback)
Utils\ThreadTaskManager.cs (1)
79public static IThreadTask MakeTask(Action<int> subTaskAction, int maxArgument)
Microsoft.ML.GenAI.Core (4)
Module\DynamicLoadingModule.cs (2)
33public Action<nn.Module>? LoadToDeviceFunc { get; set; } 34public Action<nn.Module>? UnloadFromDeviceFunc { get; set; }
Module\IDynamicLoadModule.cs (2)
16public Action<nn.Module>? LoadToDeviceFunc { get; set; } 18public Action<nn.Module>? UnloadFromDeviceFunc { get; set; }
Microsoft.ML.GenAI.LLaMA (2)
Module\LlamaDecoderLayer.cs (2)
77public Action<nn.Module>? LoadToDeviceFunc { get; set; } 78public Action<nn.Module>? UnloadFromDeviceFunc { get; set; }
Microsoft.ML.GenAI.Mistral (2)
MistralDecoderLayer.cs (2)
71public Action<nn.Module>? LoadToDeviceFunc { get; set; } 72public Action<nn.Module>? UnloadFromDeviceFunc { get; set; }
Microsoft.ML.GenAI.Phi (2)
Module\Phi3DecoderLayer.cs (2)
100public Action<nn.Module>? LoadToDeviceFunc { get; set; } 102public Action<nn.Module>? UnloadFromDeviceFunc { get; set; }
Microsoft.ML.Predictor.Tests (2)
CmdLine\CmdLine.cs (2)
85Action<IndentedTextWriter> init = null; 340private void Run(string dir, string name, Action<IndentedTextWriter> init,
Microsoft.ML.Samples (1)
Dynamic\Transforms\StatefulCustomMapping.cs (1)
42Action<State> init =
Microsoft.ML.StandardTrainers (2)
Optimizer\Optimizer.cs (1)
616(Action<IProgressEntry>)(e =>
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
231Action<TOptions> advancedSettings = null)
Microsoft.ML.TestFramework (4)
DataPipe\TestDataPipe.cs (1)
910Action<ILegacyDataLoader> action
DataPipe\TestDataPipeBase.cs (3)
40Action<Action> mustFail = (Action action) => 92Action<IDataView> checkOnData = (IDataView data) => 180Action<ILegacyDataLoader> actLoader = null, string suffix = "", string suffixBase = null, bool checkBaseline = true,
Microsoft.ML.Tests (8)
ExpressionLanguageTests\ExpressionLanguageTests.cs (2)
252Action<object> printer = GetPrinter(typeRes, sb); 347private Action<object> GetPrinter(DataViewType dst, StringBuilder sb)
Scenarios\GetColumnTests.cs (3)
43var mustFail = GetMustFail(); 85var mustFail = GetMustFail(); 93private static Action<Action> GetMustFail()
TrainerEstimators\LbfgsTests.cs (2)
94Action<LinearBinaryModelParameters> validateStats = (modelParameters) => 196Action<MaximumEntropyModelParameters> validateStats = (modelParams) =>
Transformers\CustomMappingTests.cs (1)
148public override Action<MyState> GetStateInitAction()
Microsoft.ML.TimeSeries (29)
PredictionEngine.cs (5)
37public abstract Action<PingerArgument> GetPinger(); 44Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer); 67private Action<PingerArgument> _pinger; 207internal Action<PingerArgument> CreatePinger(List<StatefulRow> rows) 211Action<PingerArgument> pinger = null;
SequentialAnomalyDetectionTransformBase.cs (4)
380public Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 383Action<PingerArgument> pinger = null; 390private Action<PingerArgument> MakePinger(DataViewRow input, AnomalyDetectionStateBase state) 394Action<PingerArgument> pinger = (PingerArgument args) =>
SequentialForecastingTransformBase.cs (4)
221public Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 224Action<PingerArgument> pinger = null; 231private Action<PingerArgument> MakePinger(DataViewRow input, ForecastingStateBase state) 235Action<PingerArgument> pinger = (PingerArgument args) =>
SequentialTransformBase.cs (1)
237Action<TState> initFunction, bool hasBuffer, DataViewType outputColTypeOverride)
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));
SrCnnTransformBase.cs (4)
223public Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 226Action<PingerArgument> pinger = null; 233private Action<PingerArgument> MakePinger(DataViewRow input, SrCnnStateBase state) 237Action<PingerArgument> pinger = (PingerArgument args) =>
Microsoft.ML.Transforms (20)
CustomMappingCatalog.cs (2)
68Action<TState> stateInitAction, string contractName) 96Action<TState> stateInitAction)
CustomMappingFactory.cs (2)
67public abstract Action<TState> GetStateInitAction(); 72Action<TState> stateInitAction = GetStateInitAction();
CustomMappingFilter.cs (2)
134private readonly Action<TState> _stateInitAction; 138public StatefulCustomMappingFilter(IHostEnvironment env, IDataView input, Func<TSrc, TState, bool> predicate, Action<TState> stateInitAction)
Expression\BuiltinFunctions.cs (1)
133Action<T> fn = Id<T>;
Expression\LambdaBinder.cs (4)
32private readonly Action<string> _printError; 34private LambdaBinder(IHostEnvironment env, Action<string> printError) 51public static void Run(IHostEnvironment env, ref List<Error> errors, LambdaNode node, Action<string> printError) 1153public static bool TryGetCandidate(CallNode node, IFunctionProvider provider, MethodInfo meth, Action<string> printError, out Candidate cand)
LambdaTransform.cs (2)
99Action<TSrc, TDst, TState> mapAction, Action<TState> initStateAction, 140Func<TSrc, TState, bool> filterFunc, Action<TState> initStateAction, SchemaDefinition inputSchemaDefinition = null)
OneHotEncoding.cs (1)
342internal void WrapTermWithDelegate(Action<ValueToKeyMappingTransformer> onFit)
StatefulCustomMappingTransformer.cs (4)
28private readonly Action<TState> _stateInitAction; 48Action<TState> stateInitAction) 362/// <seealso cref="CustomMappingCatalog.StatefulCustomMapping{TSrc, TDst, TState}(TransformsCatalog, Action{TSrc, TDst, TState}, Action{TState}, string)"/> 376Action<TState> stateInitAction)
StatefulFilterTransform.cs (2)
34private readonly Action<TState> _initStateAction; 55Action<TState> initStateAction,
Microsoft.ML.Vision (3)
ImageClassificationTrainer.cs (3)
400public Action<ImageClassificationMetrics> MetricsCallback = null; 801ImageClassificationMetrics.Dataset dataset, Action<ImageClassificationMetrics> metricsCallback, 925Action<ImageClassificationMetrics> statisticsCallback = _options.MetricsCallback;
Microsoft.Net.Http.Headers (4)
CacheControlHeaderValue.cs (1)
85private static readonly Action<StringSegment> CheckIsValidTokenAction = CheckIsValidToken;
ObjectCollection.cs (3)
14internal static readonly Action<T> DefaultValidator = CheckNotNull; 18private readonly Action<T> _validator; 40public ObjectCollection(Action<T> validator, bool isReadOnly = false)
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (1)
46private Task WaitForClientConnectionsAsync(NamedPipeServerStream pipeServer, Action<string[]> callback, CancellationToken cancellationToken = default)
Microsoft.VisualStudio.LanguageServices (9)
Interactive\VsInteractiveWindowPackage.cs (4)
57Action<Exception> fatalHandler = e => FaultReporter.ReportFault(e, VisualStudio.Telemetry.FaultSeverity.Critical, forceDump: false); 58Action<Exception> nonFatalHandler = e => FaultReporter.ReportFault(e, VisualStudio.Telemetry.FaultSeverity.General, forceDump: false); 68private static void SetErrorHandlers(Assembly assembly, Action<Exception> fatalHandler, Action<Exception> nonFatalHandler)
LanguageService\AbstractPackage.cs (1)
39private Task RegisterAndProcessTasksAsync(Action<PackageLoadTasks> registerTasks, CancellationToken cancellationToken)
ProjectSystem\OpenTextBufferProvider.cs (1)
82private void RaiseEventForEachListener(Action<IOpenTextBufferEventListener> action)
Utilities\DelegateCommand.cs (3)
15private readonly Action<object> _action; 19public DelegateCommand(Action<object> action) 24public DelegateCommand(Action<object> action, Func<object, bool> canExecute)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
SemanticSearch\SemanticSearchQueryExecutor.cs (2)
27Action<string> logMessage, 30private sealed class ResultsObserver(IFindUsagesContext presenterContext, IOptionsReader options, Action<string> logMessage, Document? queryDocument) : ISemanticSearchResultsDefinitionObserver
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
PersistentStorage\SQLiteV2PersistentStorageTests.cs (2)
65private readonly Action<Exception>? _onFatalError; 69Action<Exception>? onFatalError = null)
ProjectSystemShim\EntryPointFinderTests.cs (1)
33private static void Validate(string signature, Action<IEnumerable<INamedTypeSymbol>> validate)
Microsoft.VisualStudio.LanguageServices.Implementation (3)
CodeModel\ProjectCodeModelFactory.cs (1)
278public void ScheduleDeferredCleanupTask(Action<CancellationToken> a)
SolutionExplorer\Search\RoslynSolutionExplorerSearchProvider.cs (2)
43public void Search(IRelationshipSearchParameters parameters, Action<ISearchResult> resultAccumulator) 77Action<ISearchResult> resultAccumulator) : INavigateToSearchCallback
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\IXamlEditAndContinueSolutionProvider.cs (1)
16event Action<Solution>? SolutionCommitted;
Implementation\XamlEditAndContinueSolutionProvider.cs (1)
34public event Action<Solution>? SolutionCommitted;
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
30[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Action<>))]
Mvc.RoutingWebSite (2)
Infrastructure\ManualControllerFeatureProvider.cs (2)
12private readonly Action<ControllerFeature> _action; 13public ManualControllerFeatureProvider(Action<ControllerFeature> action)
netstandard (1)
netstandard.cs (1)
18[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Action<>))]
PresentationCore (1)
MS\Internal\Interop\TipTsfHelper.cs (1)
54private static bool CheckAndDispatchKbOperation(Action<DependencyObject> kbCall, DependencyObject focusedObject)
PresentationFramework (16)
MS\Internal\Data\LiveShapingList.cs (1)
648private void ForEach(Action<LiveShapingItem> action)
MS\Internal\Data\RBTree.cs (1)
435internal void ForEach(Action<T> action)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
41public static void MarshalDelegateInvoke<T>(IntPtr thisPtr, Action<T> invoke)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (7)
414public static readonly Action<object> DisposeMarshaler; 415private static Action<object> BindDisposeMarshaler() 418return Expression.Lambda<Action<object>>( 1109public static readonly Action<object> DisposeMarshaler; 1110public static readonly Action<object> DisposeAbi; 1116public static readonly Action<object> DisposeMarshalerArray; 1117public static readonly Action<object> DisposeAbiArray;
System\Windows\Controls\DataGridCellsPanel.cs (2)
2137Dispatcher.BeginInvoke(DispatcherPriority.Render, (Action<int>)RetryBringIndexIntoView, index); 2183Dispatcher.BeginInvoke(priority, (Action<int>)RetryBringIndexIntoView, index);
System\Windows\Controls\VirtualizingStackPanel.cs (2)
1122Action<DependencyObject> action, 1136Action<DependencyObject> action,
System\Windows\Documents\WinRTSpellerInterop.cs (2)
117if (BeginInvokeOnUIThread((Action<bool>)Dispose, DispatcherPriority.Normal, disposing) == null) 652if (BeginInvokeOnUIThread((Action<bool>)ClearDictionaries, DispatcherPriority.Normal, disposing) == null)
ReachFramework (4)
MS\Internal\Printing\Configuration\DevMode.cs (1)
567private static void Copy<T>(DevModeFields mask, DevModeFields field, T value, Action<T> setter)
PrintConfig\FallbackPTProvider.cs (1)
614private bool GetPrinterW(uint dwLevel, Action<HGlobalBuffer> action)
PrintConfig\PrintSchemaShim.cs (2)
1145private static bool TrySet<TKey, TValue>(IDictionary<TKey, TValue> dictionary, TKey key, Action<TValue> setter) 1157private static bool TrySet<TKey, TValue>(IDictionary<TKey, TValue> dictionary, TValue value, Action<TKey> setter)
Roslyn.Diagnostics.Analyzers (46)
SpecializedEnumerableCreationAnalyzer.cs (2)
142protected void AnalyzeMemberAccessName(SyntaxNode name, SemanticModel semanticModel, Action<Diagnostic> addDiagnostic, CancellationToken cancellationToken) 151protected static void AnalyzeArrayLength(int length, SyntaxNode arrayCreationExpression, Action<Diagnostic> addDiagnostic)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Roslyn.Diagnostics.CSharp.Analyzers (6)
CSharpAvoidOptSuffixForNullableEnableCode.cs (1)
67private static void ReportOnInvalidIdentifier(SyntaxToken identifier, SemanticModel semanticModel, Action<Diagnostic> reportAction, CancellationToken cancellationToken)
CSharpSpecializedEnumerableCreationAnalyzer.cs (2)
78private static void AnalyzeArrayCreationExpression(ArrayCreationExpressionSyntax arrayCreationExpression, Action<Diagnostic> addDiagnostic) 96private static void AnalyzeInitializerExpression(InitializerExpressionSyntax initializer, Action<Diagnostic> addDiagnostic)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
320Name: nameof(Func<>) or nameof(Action<>),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (2)
213private void ProduceConflicts(SimpleNameSyntax node, Action<INamespaceSymbol> addConflict, CancellationToken cancellationToken) 223private void ProduceConflicts(MemberAccessExpressionSyntax node, bool containsAnonymousMethods, Action<INamespaceSymbol> addConflict, CancellationToken cancellationToken)
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)
EditAndContinue\EditAndContinueTest.GenerationInfo.cs (2)
20public readonly Action<GenerationVerifier> Verifier; 32public GenerationInfo(Compilation compilation, MetadataReader reader, CompilationDifference? diff, CompilationVerifier? compilationVerifier, EmitBaseline baseline, Action<GenerationVerifier> verifier)
Roslyn.VisualStudio.Next.UnitTests (5)
Services\SolutionServiceTests.cs (5)
1260Action<Solution>? oldSolutionValidator = null, 1261Action<Solution>? newSolutionValidator = null) 1267Action<Solution>? oldSolutionValidator, 1268Action<Solution>? oldRecoveredSolutionValidator, 1269Action<Solution>? newRecoveredSolutionValidator)
RoutingSandbox (5)
Framework\FrameworkEndpointDataSource.cs (4)
13private readonly List<Action<EndpointBuilder>> _conventions; 23_conventions = new List<Action<EndpointBuilder>>(); 65foreach (var convention in _conventions) 82public void Add(Action<EndpointBuilder> convention)
Framework\FrameworkEndpointRouteBuilderExtensions.cs (1)
8public static IEndpointConventionBuilder MapFramework(this IEndpointRouteBuilder endpoints, Action<FrameworkConfigurationBuilder> configure)
RunTests (4)
ProcessRunner.cs (4)
65Action<Process>? onProcessStartHandler = null, 66Action<DataReceivedEventArgs>? onOutputDataReceived = null, 78Action<Process>? onProcessStartHandler = null, 79Action<DataReceivedEventArgs>? onOutputDataReceived = null,
ScenarioTests.Common.Tests (2)
ScenarioTestHelpers.cs (2)
59public static bool RunBasicEchoTest(Binding binding, string address, string variation, Action<ChannelFactory> factorySettings = null) 96public static bool RunComplexEchoTest(Binding binding, string address, string variation, StringBuilder errorBuilder, Action<ChannelFactory> factorySettings = null)
Security.TransportSecurity.IntegrationTests (1)
Https\ClientCredentialTypeTests.4.1.0.cs (1)
221Action<ChannelFactory> credentials = (factory) =>
Sockets.BindTests (6)
SocketTransportOptionsTests.cs (1)
111private IHost CreateWebHost(EndPoint endpoint, Action<SocketTransportOptions> configureSocketOptions) =>
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (5)
44public TestServer(RequestDelegate app, TestServiceContext context, Action<ListenOptions> configureListenOptions, Action<IServiceCollection> configureServices = null) 60public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel) 65public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel, Action<IServiceCollection> configureServices)
Sockets.FunctionalTests (5)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (5)
44public TestServer(RequestDelegate app, TestServiceContext context, Action<ListenOptions> configureListenOptions, Action<IServiceCollection> configureServices = null) 60public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel) 65public TestServer(RequestDelegate app, TestServiceContext context, Action<KestrelServerOptions> configureKestrel, Action<IServiceCollection> configureServices)
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\Collections\Immutable\ImmutableDictionary_2.cs (1)
30private static readonly Action<KeyValuePair<int, HashBucket>> s_FreezeBucketAction = (kv) => kv.Value.Freeze();
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
32private static readonly Action<KeyValuePair<int, HashBucket>> s_FreezeBucketAction = (kv) => kv.Value.Freeze();
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
254public void ForEach(Action<T> action)
System\Collections\Immutable\ImmutableList_1.cs (1)
488public void ForEach(Action<T> action)
System\Collections\Immutable\SortedInt32KeyNode.cs (1)
244internal void Freeze(Action<KeyValuePair<int, TValue>>? freezeAction = null)
System.ComponentModel.Composition (7)
Microsoft\Internal\Collections\CollectionServices.cs (1)
157public static void ForEach<T>(this IEnumerable<T> source, Action<T> action)
System\ComponentModel\Composition\CompositionException.cs (1)
325public Action<Stack<CompositionError>> LeafVisitor;
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (4)
23private readonly Action<ComposablePartCatalogChangeEventArgs>? _onChanged; 24private readonly Action<ComposablePartCatalogChangeEventArgs>? _onChanging; 32Action<ComposablePartCatalogChangeEventArgs>? onChanged, 33Action<ComposablePartCatalogChangeEventArgs>? onChanging)
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (1)
54private static void TraverseGenericType(Type type, Action<Type> onType)
System.ComponentModel.Composition.Registration (15)
System\ComponentModel\Composition\Registration\ParameterImportBuilder.cs (1)
14public T Import<T>(Action<ImportBuilder> configure)
System\ComponentModel\Composition\Registration\PartBuilder.cs (2)
50public PartBuilder Export(Action<ExportBuilder> exportConfiguration) 64public PartBuilder Export<T>(Action<ExportBuilder> exportConfiguration)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (12)
15private readonly Action<ImportBuilder> _configureImport; 16private readonly Action<ExportBuilder> _configureExport; 19Action<ImportBuilder> configureImport = null, 20Action<ExportBuilder> configureExport = null) 73private Dictionary<ParameterInfo, Action<ImportBuilder>> _importBuilders; 88_importBuilders.TryGetValue(parameterInfo, out Action<ImportBuilder> parameterImportBuilder)) 123_importBuilders ??= new Dictionary<ParameterInfo, Action<ImportBuilder>>(); 125_importBuilders.Add(parameterInfos[index], (Action<ImportBuilder>)importDelegate); 166Action<ExportBuilder> exportConfiguration) 182Action<ExportBuilder> exportConfiguration) 198Action<ImportBuilder> importConfiguration) 214Action<ImportBuilder> importConfiguration)
System.Composition.Convention (21)
System\Composition\Convention\ParameterImportConventionBuilder.cs (1)
30public T Import<T>(Action<ImportConventionBuilder> configure)
System\Composition\Convention\PartConventionBuilder.cs (2)
66public PartConventionBuilder Export(Action<ExportConventionBuilder> exportConfiguration) 92public PartConventionBuilder Export<T>(Action<ExportConventionBuilder> exportConfiguration)
System\Composition\Convention\PartConventionBuilderOfT.cs (18)
20public MethodExpressionAdapter(Expression<Action<T>> methodSelector) 30private static MethodInfo SelectMethods(Expression<Action<T>> methodSelector) 57private static Expression<Action<T>> Reduce(Expression<Action<T>> expr) 61expr = (Expression<Action<T>>)expr.Reduce(); 70private readonly Action<ImportConventionBuilder> _configureImport; 71private readonly Action<ExportConventionBuilder> _configureExport; 75Action<ImportConventionBuilder> configureImport = null, 76Action<ExportConventionBuilder> configureExport = null) 129private Dictionary<ParameterInfo, Action<ImportConventionBuilder>> _importBuilders; 145if (_importBuilders.TryGetValue(parameterInfo, out Action<ImportConventionBuilder> parameterImportBuilder)) 181_importBuilders ??= new Dictionary<ParameterInfo, Action<ImportConventionBuilder>>(); 182_importBuilders.Add(parameterInfos[index], (Action<ImportConventionBuilder>)importDelegate); 236Action<ExportConventionBuilder> exportConfiguration) 266Action<ExportConventionBuilder> exportConfiguration) 293Action<ImportConventionBuilder> importConfiguration) 322Action<ImportConventionBuilder> importConfiguration) 335public PartConventionBuilder<T> NotifyImportsSatisfied(Expression<Action<T>> methodSelector)
System.Composition.TypedParts (2)
System\Composition\TypedParts\ActivationFeatures\OnImportsSatisfiedFeature.cs (2)
51var call = Expression.Lambda<Action<object>>(
System.Console (1)
System\Console.cs (1)
580Action<PosixSignalContext> handler = HandlePosixSignal;
System.Diagnostics.DiagnosticSource (13)
System\Diagnostics\ActivityListener.cs (2)
33public Action<Activity>? ActivityStarted { get; set; } 38public Action<Activity>? ActivityStopped { get; set; }
System\Diagnostics\DsesFilterAndTransform.cs (2)
991public CallbackObserver(Action<T> callback) { _callback = callback; } 998private readonly Action<T> _callback;
System\Diagnostics\Metrics\AggregationManager.cs (4)
44private readonly Action<Exception> _collectionError; 47private readonly Action<Exception> _observableInstrumentCallbackError; 63Action<Exception> collectionError, 66Action<Exception> observableInstrumentCallbackError)
System\Diagnostics\Metrics\AggregatorStore.cs (3)
92public void Collect(Action<LabeledAggregationStatistics> visitFunc) 298public void Collect(Action<LabeledAggregationStatistics> visitFunc) 486public void Collect(Action<LabeledAggregationStatistics> visitFunc)
System\Diagnostics\Metrics\InstrumentState.cs (2)
17public abstract void Collect(Instrument instrument, Action<LabeledAggregationStatistics> aggregationVisitFunc); 34public override void Collect(Instrument instrument, Action<LabeledAggregationStatistics> aggregationVisitFunc)
System.Diagnostics.Process (2)
System\Diagnostics\AsyncStreamReader.cs (2)
33private readonly Action<string?> _userCallBack; 48internal AsyncStreamReader(Stream stream, Action<string?> callback, Encoding encoding)
System.IO.Compression (3)
System\IO\Compression\ZipCustomStreams.cs (3)
17private readonly Action<ZipArchiveEntry?>? _onClosed; 26private WrappedStream(Stream baseStream, bool closeBaseStream, ZipArchiveEntry? entry, Action<ZipArchiveEntry?>? onClosed) 35internal WrappedStream(Stream baseStream, ZipArchiveEntry entry, Action<ZipArchiveEntry?>? onClosed)
System.IO.Pipelines (21)
System\IO\Pipelines\CompletionData.cs (2)
10public Action<object?> Completion { get; } 15public CompletionData(Action<object?> completion, object? completionState, ExecutionContext? executionContext, SynchronizationContext? synchronizationContext)
System\IO\Pipelines\InlineScheduler.cs (2)
8public override void Schedule(Action<object?> action, object? state) 13internal override void UnsafeSchedule(Action<object?> action, object? state)
System\IO\Pipelines\Pipe.cs (7)
17private static readonly Action<object?> s_signalReaderAwaitable = state => ((Pipe)state!).ReaderCancellationRequested(); 18private static readonly Action<object?> s_signalWriterAwaitable = state => ((Pipe)state!).WriterCancellationRequested(); 19private static readonly Action<object?> s_invokeCompletionCallbacks = state => ((PipeCompletionCallbacks)state!).Execute(); 25private static readonly Action<object?> s_scheduleWithExecutionContextCallback = ExecuteWithExecutionContext!; 810Action<object?> completion = completionData.Completion; 916internal void OnReadAsyncCompleted(Action<object?> continuation, object? state, ValueTaskSourceOnCompletedFlags flags) 1129internal void OnFlushAsyncCompleted(Action<object?> continuation, object? state, ValueTaskSourceOnCompletedFlags flags)
System\IO\Pipelines\Pipe.DefaultPipeReader.cs (1)
44public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _pipe.OnReadAsyncCompleted(continuation, state, flags);
System\IO\Pipelines\Pipe.DefaultPipeWriter.cs (1)
44public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _pipe.OnFlushAsyncCompleted(continuation, state, flags);
System\IO\Pipelines\PipeAwaitable.cs (4)
15private Action<object?>? _completion; 46public void BeginOperation(CancellationToken cancellationToken, Action<object?> callback, object? state) 88Action<object?>? currentCompletion = _completion; 113public void OnCompleted(Action<object?> continuation, object? state, ValueTaskSourceOnCompletedFlags flags, out CompletionData completionData, out bool doubleCompletion)
System\IO\Pipelines\PipeScheduler.cs (2)
25public abstract void Schedule(Action<object?> action, object? state); 27internal virtual void UnsafeSchedule(Action<object?> action, object? state)
System\IO\Pipelines\ThreadPoolScheduler.netcoreapp.cs (2)
11public override void Schedule(Action<object?> action, object? state) 16internal override void UnsafeSchedule(Action<object?> action, object? state)
System.Linq.Expressions (5)
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
241return typeof(Action<>).MakeGenericType(types);
System\Linq\Expressions\DebugViewWriter.cs (1)
250private void VisitExpressions<T>(char open, char separator, IReadOnlyList<T> expressions, Action<T> visit)
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
242private readonly Action<T0> _target; 249_target = (Action<T0>)target.CreateDelegate(typeof(Action<T0>));
System.Linq.Parallel (7)
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (4)
26private readonly Action<TInput> _elementAction; 32internal ForAllOperator(IEnumerable<TInput> child, Action<TInput> elementAction) 127private readonly Action<TInput> _elementAction; // Forall operator being executed. 134internal ForAllEnumerator(QueryOperatorEnumerator<TInput, TKey> source, Action<TInput> elementAction, CancellationToken cancellationToken)
System\Linq\Parallel\Scheduling\QueryTask.cs (2)
54private static readonly Action<object?> s_runTaskSynchronouslyDelegate = RunTaskSynchronously; 73private static readonly Action<object?> s_baseWorkDelegate = delegate (object? o)
System\Linq\ParallelEnumerable.cs (1)
495public static void ForAll<TSource>(this ParallelQuery<TSource> source, Action<TSource> action)
System.Net.Http (11)
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (8)
14/// Enrichment is done on per-request basis by callbacks registered with <see cref="AddCallback(HttpRequestMessage, Action{HttpMetricsEnrichmentContext})"/>. 23private static readonly HttpRequestOptionsKey<List<Action<HttpMetricsEnrichmentContext>>> s_optionsKeyForCallbacks = new(nameof(HttpMetricsEnrichmentContext)); 71public static void AddCallback(HttpRequestMessage request, Action<HttpMetricsEnrichmentContext> callback) 78if (options.TryGetValue(s_optionsKeyForCallbacks, out List<Action<HttpMetricsEnrichmentContext>>? callbacks)) 88internal static List<Action<HttpMetricsEnrichmentContext>>? GetEnrichmentCallbacksForRequest(HttpRequestMessage request) 93return (List<Action<HttpMetricsEnrichmentContext>>)callbacks!; 100List<Action<HttpMetricsEnrichmentContext>> callbacks, 116foreach (Action<HttpMetricsEnrichmentContext> callback in callbacks)
System\Net\Http\Metrics\MetricsHandler.cs (1)
131List<Action<HttpMetricsEnrichmentContext>>? callbacks = HttpMetricsEnrichmentContext.GetEnrichmentCallbacksForRequest(request);
System\Net\Http\SocketsHttpHandler\CreditWaiter.cs (1)
101void IValueTaskSource<int>.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) =>
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
1418void IValueTaskSource.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _waitSource.OnCompleted(continuation, state, token, flags);
System.Net.Quic (9)
src\libraries\Common\src\System\Net\StreamBuffer.cs (1)
299void IValueTaskSource.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _waitSource.OnCompleted(continuation, state, token, flags);
System\Net\Quic\Internal\ResettableValueTaskSource.cs (3)
33private Action<object?>? _cancellationAction; 52public Action<object?> CancellationAction { init { _cancellationAction = value; } } 243void IValueTaskSource.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags)
System\Net\Quic\Internal\ValueTaskSource.cs (1)
172void IValueTaskSource.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags)
System\Net\Quic\QuicConnection.cs (1)
196private Action<QuicStreamType> _decrementStreamCapacity;
System\Net\Quic\QuicStream.cs (3)
125/// Provided via <see cref="StartAsync(Action{QuicStreamType}, CancellationToken)" /> from <see cref="QuicConnection" /> so that <see cref="QuicStream"/> can decrement its available stream count field. 128private Action<QuicStreamType>? _decrementStreamCapacity; 251internal ValueTask StartAsync(Action<QuicStreamType> decrementStreamCapacity, CancellationToken cancellationToken = default)
System.Net.Sockets (2)
System\Net\Sockets\Socket.Tasks.cs (1)
1234public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) =>
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
889public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _mrvtsc.OnCompleted(continuation, state, token, flags);
System.Private.CoreLib (125)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.ThreadPoolValueTaskSource.cs (1)
62public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) =>
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1701public static void ForEach<T>(T[] array, Action<T> action)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
638public void ForEach(Action<T> action)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (1)
113internal static Action<string>? s_WriteCore;
src\libraries\System.Private.CoreLib\src\System\Progress.cs (4)
25private readonly Action<T>? _handler; 48public Progress(Action<T> handler) : this() 69Action<T>? handler = _handler; 89Action<T>? handler = _handler;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs (1)
260public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) =>
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ValueTaskAwaiter.cs (2)
14/// <summary>Shim used to invoke an <see cref="Action"/> passed as the state argument to a <see cref="Action{Object}"/>.</summary> 15internal static readonly Action<object?> s_invokeActionDelegate = static state =>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.cs (4)
38public static PosixSignalRegistration Create(PosixSignal signal, Action<PosixSignalContext> handler) 61public Token(PosixSignal signal, Action<PosixSignalContext> handler) 67public Token(PosixSignal signal, int sigNo, Action<PosixSignalContext> handler) 75public Action<PosixSignalContext> Handler { get; }
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
26private static PosixSignalRegistration Register(PosixSignal signal, Action<PosixSignalContext> handler)
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (2)
58private event Action<AssemblyLoadContext>? _unloading; 225public event Action<AssemblyLoadContext>? Unloading
src\libraries\System.Private.CoreLib\src\System\Threading\AsyncLocal.cs (2)
14private readonly Action<AsyncLocalValueChangedArgs<T>>? _valueChangedHandler; 23public AsyncLocal(Action<AsyncLocalValueChangedArgs<T>>? valueChangedHandler)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (4)
161(Action<object?>)(static obj => ((Action)obj!)()), 187public CancellationTokenRegistration Register(Action<object?> callback, object? state) => 228public CancellationTokenRegistration Register(Action<object?> callback, object? state, bool useSynchronizationContext) => 250public CancellationTokenRegistration UnsafeRegister(Action<object?> callback, object? state) =>
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (4)
590Debug.Assert(callback is Action<object?> || callback is Action<object?, CancellationToken>); 945internal static readonly Action<object?> s_linkedTokenCancelDelegate = static s => 991Debug.Assert(d is Action<object?> || d is Action<object?, CancellationToken>); 993if (d is Action<object?> actionWithState)
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (1)
292internal static void RunForThreadPoolUnsafe<TState>(ExecutionContext executionContext, Action<TState> callback, in TState state)
src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (1)
656private static readonly Action<object?> s_cancellationTokenCallback = new Action<object?>(CancellationTokenCallback);
src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (1)
305void IValueTaskSource<bool>.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) =>
src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
970private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = new Action<object?>(CancellationTokenCanceledEventHandler);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (6)
627public Task ContinueWith(Action<Task<TResult>> continuationAction) 650public Task ContinueWith(Action<Task<TResult>> continuationAction, CancellationToken cancellationToken) 678public Task ContinueWith(Action<Task<TResult>> continuationAction, TaskScheduler scheduler) 711public Task ContinueWith(Action<Task<TResult>> continuationAction, TaskContinuationOptions continuationOptions) 751public Task ContinueWith(Action<Task<TResult>> continuationAction, CancellationToken cancellationToken, 758internal Task ContinueWith(Action<Task<TResult>> continuationAction, TaskScheduler scheduler, CancellationToken cancellationToken,
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\IValueTaskSource.cs (2)
55void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags); 75void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags);
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\TaskContinuation.cs (6)
18Debug.Assert(action is Action<Task> || action is Action<Task, object?>, 40if (m_action is Action<Task> action) 110Debug.Assert(action is Action<Task<TAntecedentResult>> || action is Action<Task<TAntecedentResult>, object?>, 132if (m_action is Action<Task<TAntecedentResult>> action) 547protected Task CreateTask(Action<object?> action, object? state, TaskScheduler scheduler) 672private static readonly Action<Action> s_invokeAction = (action) => action();
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,
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
234private static readonly Action<object?> s_completionAction = static state => 642private static readonly Action<object?> s_completionAction = static state =>
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (10)
1496private static readonly Action<QueueUserWorkItemCallback> s_executionContextShim = quwi => 1524private Action<TState>? _callback; // SOS's ThreadPool command depends on this name 1528internal QueueUserWorkItemCallback(Action<TState> callback, TState state, ExecutionContext context) 1542Action<TState> callback = _callback; 1579private Action<TState>? _callback; // SOS's ThreadPool command depends on this name 1582internal QueueUserWorkItemCallbackDefaultContext(Action<TState> callback, TState state) 1596Action<TState> callback = _callback; 1662internal static readonly Action<object?> s_invokeAsyncStateMachineBox = static state => 1852public static bool QueueUserWorkItem<TState>(Action<TState> callBack, TState state, bool preferLocal) 1870public static bool UnsafeQueueUserWorkItem<TState>(Action<TState> callBack, TState state, bool preferLocal)
System.Private.Windows.Core (11)
System\Private\Windows\BinaryFormat\Deserializer\Deserializer.cs (2)
95private event Action<object?>? OnDeserialization; 96private event Action<StreamingContext>? OnDeserialized;
System\Private\Windows\BinaryFormat\SerializationEvents.cs (8)
75internal static Action<StreamingContext>? GetOnDeserializingForType( 80internal static Action<StreamingContext>? GetOnDeserializedForType( 85private Action<StreamingContext>? GetOnDeserialized(object obj) => 88private Action<StreamingContext>? GetOnDeserializing(object obj) => 92private static Action<StreamingContext>? AddOnDelegate(object obj, List<MethodInfo>? methods) 94Action<StreamingContext>? handler = null; 100Action<StreamingContext> onDeserialized = 102method.CreateDelegate<Action<StreamingContext>>(obj);
Windows\Win32\System\Com\WinFormsComWrappers.cs (1)
96internal static HRESULT UnwrapAndInvoke<TThis, TInterface>(TThis* @this, Action<TInterface> action)
System.Private.Xml (10)
System\Xml\AsyncHelper.cs (2)
21public static Task CallVoidFuncWhenFinishAsync<TArg>(this Task task, Action<TArg> func, TArg arg) 34private static async Task CallVoidFuncWhenFinishCoreAsync<TArg>(this Task task, Action<TArg> func, TArg arg)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (8)
147Action<object?> source = (o) => p[index] = o; 1448Action<object?> setSource = (value) => setterDelegate(o, value); 1452private object? WriteAddCollectionFixup(Func<object?> getSource, Action<object?> setSource, object memberValue, TypeDesc typeDesc, bool readOnly) 2080public Action<object?>? Source; 2082public Action<object>? ArraySource; 2083public Action<object?>? CheckSpecifiedSource; 2084public Action<object>? ChoiceSource; 2086public Action<object>? EnsureCollection;
System.Reflection.Metadata (13)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (13)
129public void CustomAttributeSignature(Action<FixedArgumentsEncoder> fixedArguments, Action<CustomAttributeNamedArgumentsEncoder> namedArguments) 249public void Parameters(int parameterCount, Action<ReturnTypeEncoder> returnType, Action<ParametersEncoder> parameters) 499public void TaggedVector(Action<CustomAttributeArrayTypeEncoder> arrayType, Action<VectorEncoder> vector) 544public void TaggedScalar(Action<CustomAttributeElementTypeEncoder> type, Action<ScalarEncoder> scalar) 747public void AddArgument(bool isField, Action<NamedArgumentTypeEncoder> type, Action<NameEncoder> name, Action<LiteralEncoder> literal) 1045public void Array(Action<SignatureTypeEncoder> elementType, Action<ArrayShapeEncoder> arrayShape)
System.Resources.Extensions (10)
System\Resources\Extensions\BinaryFormat\Deserializer\Deserializer.cs (2)
98private event Action<object?>? OnDeserialization; 99private event Action<StreamingContext>? OnDeserialized;
System\Resources\Extensions\BinaryFormat\SerializationEvents.cs (8)
77internal static Action<StreamingContext>? GetOnDeserializingForType( 82internal static Action<StreamingContext>? GetOnDeserializedForType( 87private Action<StreamingContext>? GetOnDeserialized(object obj) => 90private Action<StreamingContext>? GetOnDeserializing(object obj) => 94private static Action<StreamingContext>? AddOnDelegate(object obj, List<MethodInfo>? methods) 96Action<StreamingContext>? handler = null; 102Action<StreamingContext> onDeserialized = 104method.CreateDelegate<Action<StreamingContext>>(obj);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
11[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Action<>))]
System.Runtime.InteropServices.JavaScript (2)
artifacts\obj\System.Runtime.InteropServices.JavaScript\Debug\net10.0\System.Runtime.InteropServices.JavaScript.notsupported.cs (2)
284public void ToManaged<T>(out Action<T>? value, ArgumentToJSCallback<T> arg1Marshaler) { throw new System.PlatformNotSupportedException(System.SR.SystemRuntimeInteropServicesJavaScript_PlatformNotSupported); } 285public void ToJS<T>(Action<T>? value, ArgumentToManagedCallback<T> arg1Marshaler) { throw new System.PlatformNotSupportedException(System.SR.SystemRuntimeInteropServicesJavaScript_PlatformNotSupported); }
System.ServiceModel.Federation (3)
System\Runtime\OperationWithTimeoutAsyncResult.cs (3)
16private static readonly Action<object> s_scheduledCallback = new Action<object>(OnScheduled); 18private Action<TimeSpan> _operationWithTimeout; 20public OperationWithTimeoutAsyncResult(Action<TimeSpan> operationWithTimeout, TimeSpan timeout, AsyncCallback callback, object state)
System.ServiceModel.Http (12)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
960private static readonly Action<object> s_cancelCts = state =>
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\Channels\IdlingCommunicationPool.cs (1)
90private static Action<object> s_onIdle;
System.ServiceModel.NetTcp (5)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (5)
21private static readonly Action<object> _continuationCompleted = _ => { }; 27private volatile Action<object> _continuation; 67var c = _continuation; 113public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags) 116var prevContinuation = Interlocked.CompareExchange(ref _continuation, continuation, null);
System.ServiceModel.Primitives (63)
Internals\System\Runtime\ActionItem.cs (7)
20public static void Schedule(Action<object> callback, object state) 74private static void ScheduleCallback(Action<object> callback, object state) 89private void ScheduleCallback(Action<object> callback) 101private static Action<object> s_invokeCallback; 104public static Action<object> InvokeCallbackAction 143private Action<object> _callback; 151public DefaultActionItem(Action<object> callback, object state)
Internals\System\Runtime\Fx.cs (5)
292public static Action<T1> ThunkCallback<T1>(Action<T1> callback) 923internal sealed class ActionThunk<T1> : Thunk<Action<T1>> 925public ActionThunk(Action<T1> callback) : base(callback) 929public Action<T1> ThunkFrame
Internals\System\Runtime\InputQueue.cs (9)
14private static Action<object> s_completeOutstandingReadersCallback; 15private static Action<object> s_completeWaitersFalseCallback; 16private static Action<object> s_completeWaitersTrueCallback; 17private static Action<object> s_onDispatchCallback; 18private static Action<object> s_onInvokeDequeuedCallback; 53public Action<T> DisposeItemCallback 589Action<T> disposeItemCallback = DisposeItemCallback; 893private static Action<object> s_timerCallback = new Action<object>(AsyncQueueReader.TimerCallback); 953private static Action<object> s_timerCallback = new Action<object>(AsyncQueueWaiter.TimerCallback);
Internals\System\Runtime\IOThreadScheduler.cs (9)
104public static void ScheduleCallbackNoFlow(Action<object> callback, object state) 124public static void ScheduleCallbackLowPriNoFlow(Action<object> callback, object state) 135private bool ScheduleCallbackHelper(Action<object> callback, object state) 177private void CompletionCallback(out Action<object> callback, out object state) 203private bool TryCoalesce(out Action<object> callback, out object state) 318private Action<object> _callback; 321public bool TryEnqueueWorkItem(Action<object> callback, object state, out bool wrapped) 369public void DequeueWorkItem(out Action<object> callback, out object state) 493Action<object> callback;
Internals\System\Runtime\IOThreadTimer.cs (5)
35private Action<object> callback; 50public IOThreadTimer(Action<object> callback, object callbackState, bool isTypicallyCanceledShortlyAfterBeingSet) 55public IOThreadTimer(Action<object> callback, Func<object, Task> asyncCallback, object callbackState, bool isTypicallyCanceledShortlyAfterBeingSet, int maxSkewInMilliseconds) 88protected void Reinitialize(Action<object> callback, object callbackState) 104private Action<object> onWaitCallback;
Internals\System\Runtime\ScheduleActionItemAsyncResult.cs (1)
11private static Action<object> s_doWork = new Action<object>(DoWork);
Internals\System\Runtime\TaskHelpers.cs (2)
359public static Action<object> OnAsyncCompletionCallback = OnAsyncCompletion; 383public static async Task CallActionAsync<TArg>(Action<TArg> action, TArg argument)
Internals\System\Runtime\TimeoutHelper.cs (1)
261private static readonly Action<object> s_deregisterToken = (object state) =>
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (1)
25private static Action<object> s_processMessageStatic = new Action<object>(ProcessMessageStatic);
System\ServiceModel\Channels\DeliveryStrategy.cs (2)
51private Action<object> onDispatchCallback; 73private Action<object> OnDispatchCallback
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
114private static Action<object> s_onTimerElapsed = new Action<object>(OnTimerElapsed);
System\ServiceModel\Channels\ServiceChannel.cs (3)
2034private static Action<object> s_signalWaiter = new Action<object>(SignalWaiter); 2401private static Action<object> s_timerCallback; 2460private static Action<object> GetTimerCallback()
System\ServiceModel\Channels\ServiceChannelProxy.cs (2)
176Action<IAsyncResult> endCallDelegate = (asyncResult) => 216Action<IAsyncResult> endCallDelegate = (asyncResult) =>
System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (1)
14private static Action<object> s_tryReceive = new Action<object>(BufferedReceiveBinder.TryReceive);
System\ServiceModel\Dispatcher\ChannelHandler.cs (4)
30private static Action<object> s_onContinueAsyncReceive = new Action<object>(ChannelHandler.OnContinueAsyncReceive); 31private static Action<object> s_onStartSyncMessagePump = new Action<object>(ChannelHandler.OnStartSyncMessagePump); 32private static Action<object> s_onStartAsyncMessagePump = new Action<object>(ChannelHandler.OnStartAsyncMessagePump); 33private static Action<object> s_openAndEnsurePump = new Action<object>(ChannelHandler.OpenAndEnsurePump);
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
802private static Action<object> s_timerCallback = new Action<object>(AsyncDuplexRequest.TimerCallback); 1054private static Action<object> s_receiveThreadSchedulerCallback;
System\ServiceModel\Dispatcher\ListenerHandler.cs (1)
15private static Action<object> s_initiateChannelPump = new Action<object>(ListenerHandler.InitiateChannelPump);
System\ServiceModel\Dispatcher\ThreadBehavior.cs (2)
15private static Action<object> s_cleanThreadCallback; 46private static Action<object> CleanThreadCallbackDelegate
System\ServiceModel\Security\SecurityUtils.cs (3)
1091private static readonly Action<object> s_scheduledCallback = new Action<object>(OnScheduled); 1093private Action<TimeSpan> _operationWithTimeout; 1095public OperationWithTimeoutAsyncResult(Action<TimeSpan> operationWithTimeout, TimeSpan timeout, AsyncCallback callback, object state)
System\ServiceModel\Security\TimeBoundedCache.cs (2)
16private static Action<object> s_purgeCallback; 46private static Action<object> PurgeCallback
System.ServiceModel.UnixDomainSocket (5)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (5)
21private static readonly Action<object> _continuationCompleted = _ => { }; 27private volatile Action<object> _continuation; 67var c = _continuation; 113public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags) 116var prevContinuation = Interlocked.CompareExchange(ref _continuation, continuation, null);
System.Text.Json (17)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.cs (3)
68foreach (Action<JsonTypeInfo> modifier in _modifiers) 93public IList<Action<JsonTypeInfo>> Modifiers => _modifiers ??= new ModifierCollection(this); 96private sealed class ModifierCollection : ConfigurationList<Action<JsonTypeInfo>>
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (8)
39private Action<object>? _onSerializing; 40private Action<object>? _onSerialized; 41private Action<object>? _onDeserializing; 42private Action<object>? _onDeserialized; 121public Action<object>? OnSerializing 151public Action<object>? OnSerialized 181public Action<object>? OnDeserializing 217public Action<object>? OnDeserialized
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolver.cs (1)
68public static IJsonTypeInfoResolver WithAddedModifier(this IJsonTypeInfoResolver resolver, Action<JsonTypeInfo> modifier)
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolverWithAddedModifiers.cs (5)
11private readonly Action<JsonTypeInfo>[] _modifiers; 13public JsonTypeInfoResolverWithAddedModifiers(IJsonTypeInfoResolver source, Action<JsonTypeInfo>[] modifiers) 20public JsonTypeInfoResolverWithAddedModifiers WithAddedModifier(Action<JsonTypeInfo> modifier) 22var newModifiers = new Action<JsonTypeInfo>[_modifiers.Length + 1]; 35foreach (Action<JsonTypeInfo> modifier in _modifiers)
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Roslyn4.0.cs (1)
79public Action<ImmutableArray<ContextGenerationSpec>>? OnSourceEmitting { get; init; }
System.Text.RegularExpressions (1)
System\Threading\StackHelper.cs (1)
38public static void CallOnEmptyStack<TArg1>(Action<TArg1> action, TArg1 arg1) =>
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Threading\StackHelper.cs (1)
38public static void CallOnEmptyStack<TArg1>(Action<TArg1> action, TArg1 arg1) =>
System.Threading (3)
System\Threading\Barrier.cs (3)
142private readonly Action<Barrier>? _postPhaseAction; 209/// <param name="postPhaseAction">The <see cref="System.Action{Barrier}"/> to be executed after each 219public Barrier(int participantCount, Action<Barrier>? postPhaseAction)
System.Threading.Channels (16)
System\Threading\Channels\AsyncOperation.cs (9)
16protected static readonly Action<object?> s_availableSentinel = AvailableSentinel; // named method to help with debugging 20protected static readonly Action<object?> s_completedSentinel = CompletedSentinel; // named method to help with debugging 74private protected Action<object?>? _continuation; 272Action<object?> c = _continuation!; 281Action<object?> c = thisRef._continuation!; 293public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) 351Action<object?>? prevContinuation = Interlocked.CompareExchange(ref _continuation, continuation, null); 375var t = (KeyValuePair<Action<object?>, object?>)s!; 377}, new KeyValuePair<Action<object?>, object?>(continuation, state));
System\Threading\Channels\BoundedChannel.cs (2)
20private readonly Action<T>? _itemDropped; 54internal BoundedChannel(int bufferedCapacity, BoundedChannelFullMode mode, bool runContinuationsAsynchronously, Action<T>? itemDropped)
System\Threading\Channels\Channel.cs (1)
59public static Channel<T> CreateBounded<T>(BoundedChannelOptions options, Action<T>? itemDropped)
System\Threading\Channels\ChannelUtilities.netcoreapp.cs (2)
8internal static void UnsafeQueueUserWorkItem<TState>(Action<TState> action, TState state) => 11internal static void QueueUserWorkItem(Action<object?> action, object? state) =>
System\Threading\Channels\RendezvousChannel.cs (2)
20private readonly Action<T>? _itemDropped; 47internal RendezvousChannel(BoundedChannelFullMode mode, bool runContinuationsAsynchronously, Action<T>? itemDropped)
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!;
Blocks\ActionBlock.cs (8)
21/// <summary>Provides a dataflow block that invokes a provided <see cref="System.Action{T}"/> delegate for every data element received.</summary> 32/// <summary>Initializes the <see cref="ActionBlock{T}"/> with the specified <see cref="System.Action{T}"/>.</summary> 35public ActionBlock(Action<TInput> action) : 39/// <summary>Initializes the <see cref="ActionBlock{T}"/> with the specified <see cref="System.Action{T}"/> and <see cref="ExecutionDataflowBlockOptions"/>.</summary> 44public ActionBlock(Action<TInput> action, ExecutionDataflowBlockOptions dataflowBlockOptions) : 79var syncAction = action as Action<TInput>; 128private void ProcessMessage(Action<TInput> action, KeyValuePair<TInput, long> messageWithId)
Blocks\BatchBlock.cs (2)
259private readonly Action<T[]> _batchCompletedAction; 304internal BatchBlockTargetCore(BatchBlock<T> owningBatch, int batchSize, Action<T[]> batchCompletedAction, GroupingDataflowBlockOptions dataflowBlockOptions)
Blocks\BatchedJoinBlock.cs (2)
674Action<Exception> exceptionAction, Action completionAction) 730internal readonly Action<Exception> _exceptionAction;
Blocks\BroadcastBlock.cs (3)
73Action<int>? onItemsRemoved = null; 503private readonly Action<int>? _itemsRemovedAction; 545Action<int>? itemsRemovedAction)
Blocks\JoinBlock.cs (2)
1025Action joinFilledAction, Action<Exception> exceptionAction, 1050internal readonly Action<Exception> _exceptionAction;
Blocks\TransformManyBlock.cs (1)
99Action<KeyValuePair<TInput, long>> processMessageAction,
Internal\Common.cs (2)
538internal static readonly Action<Exception> AsyncExceptionHandler = ThrowAsync; 546internal static void PropagateCompletion(Task sourceCompletionTask, IDataflowBlock target, Action<Exception>? exceptionHandler)
Internal\SourceCore.cs (2)
67private readonly Action<ISourceBlock<TOutput>> _completeAction; 104Action<ISourceBlock<TOutput>> completeAction,
Internal\SpscTargetCore.cs (2)
53private readonly Action<TInput> _action; 75ITargetBlock<TInput> owningTarget, Action<TInput> action, ExecutionDataflowBlockOptions dataflowBlockOptions)
Internal\TargetCore.cs (2)
70private readonly Action<KeyValuePair<TInput, long>> _callAction; 108Action<KeyValuePair<TInput, long>> callAction,
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\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeRendererBase.cs (1)
40Action<Rectangle> paintImage,
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\IButtonRenderer.cs (1)
51Action<Rectangle> paintImage,
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
95internal Graphics GetOrCreateGraphicsInternal(Action<Graphics>? creationAction = null)
System\Windows\Forms\ToolTip\KeyboardToolTipStateMachine.cs (1)
238private EventHandler GetOneRunTickHandler(Action<Timer> handler)
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesignerAccessibleObjectTests.cs (1)
30private ControlDesigner.ControlDesignerAccessibleObject CreateAccessibleObject(Action<Mock<AccessibleObject>>? configureMock = null)
System.Windows.Forms.Primitives.Tests (1)
Interop\Oleaut32\VARIANTTests.cs (1)
5777private static void AssertToObject(VARIANT variant, Action<object> action)
System.Windows.Forms.Tests (10)
System\Windows\Forms\ControlTests.Methods.cs (4)
3982Action<int> method = (i) => 4008Action<int> method = (i) => 4070Action<int> method = (param) => 4143Action<int> method = (i) => { };
System\Windows\Forms\ListControlTests.cs (1)
3021public Action<IList> SetItemsCoreHandler { get; set; }
System\Windows\Forms\Mocks\DataBinding\RelayCommand.cs (3)
14private readonly Action<object?> _execute; 21public RelayCommand(Action<object?> execute) : this(execute, null) 33public RelayCommand(Action<object?> execute, Func<object?, bool>? canExecute)
System\Windows\Forms\MonthCalendarTests.cs (2)
4576private void TestResetColorProperty(Func<MonthCalendar, Color> getColor, Action<MonthCalendar, Color> setColor, Action<dynamic> resetColor) 4625private void TestResetProperty<T>(MonthCalendar calendar, Action<MonthCalendar, T> setProperty, Func<MonthCalendar, T> getProperty, T testValue, T expectedValue, Action<dynamic> resetProperty)
System.Windows.Forms.UI.IntegrationTests (4)
Infra\DataCollectionService.cs (2)
80public static void RegisterCustomLogger(Action<string> callback, string logId, string extension) 266internal record struct CustomLoggerData(Action<string> Callback, string LogId, string Extension);
Infra\SendInput.cs (1)
70internal async Task SendAsync(Form window, Action<InputSimulator> actions)
RichTextBoxTests.cs (1)
211private unsafe string? GetTextFromRange(RichTextBox control, int start, int length, Action<Pointer<ITextRange>>? transform)
System.Xaml (5)
System\Xaml\Schema\XamlTypeInvoker.cs (5)
21private Action<object> _constructorDelegate; 259typeof(Action<object>).GetConstructor(new Type[] { typeof(object), typeof(IntPtr) }); 279private static void InvokeDelegate(Action<object> action, object argument) 329Action<object> ctorDelegate = ctorDelegate = 330(Action<object>)s_actionCtor.Invoke(new object[] { null, constPtr });
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)
src\Shared\E2ETesting\WaitAssert.cs (1)
52public static void Collection<T>(this IWebDriver driver, Func<IEnumerable<T>> actualValues, params Action<T>[] elementInspectors)
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)
src\Shared\E2ETesting\WaitAssert.cs (1)
52public static void Collection<T>(this IWebDriver driver, Func<IEnumerable<T>> actualValues, params Action<T>[] elementInspectors)
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)
src\Shared\E2ETesting\WaitAssert.cs (1)
52public static void Collection<T>(this IWebDriver driver, Func<IEnumerable<T>> actualValues, params Action<T>[] elementInspectors)
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)
src\Shared\E2ETesting\WaitAssert.cs (1)
52public static void Collection<T>(this IWebDriver driver, Func<IEnumerable<T>> actualValues, params Action<T>[] elementInspectors)
Test.Utilities (45)
CodeMetricsTestsBase.cs (1)
83Assert.Collection(diagnostics, Array.Empty<Action<Diagnostic>>());
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
Text.Analyzers (45)
IdentifiersShouldBeSpelledCorrectly.cs (1)
369void ReportDiagnosticsForSymbol(ISymbol symbol, string symbolName, Action<Diagnostic> reportDiagnostic, bool checkForUnmeaningful = true)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
29public static IEnumerable<T> Do<T>(this IEnumerable<T> source, Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 285public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 135public void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
185public readonly void ForEach(Action<T> action)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
707public void ForEach(Action<T> action)
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\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
178Action<Diagnostic> addDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (1)
20/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{SyntaxNodeAnalysisContext}, TLanguageKindEnum[])"/> and then ends
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\IPragmaSuppressionsAnalyzer.cs (1)
27Action<Diagnostic> reportDiagnostic,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
178Action<BasicBlockAnalysisData> trackAllocatedData)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
52Action<string>? triviaWriter,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (7)
57private readonly Action<ISymbol> _writeSymbolKey; 58private readonly Action<string?> _writeString; 59private readonly Action<Location?> _writeLocation; 60private readonly Action<bool> _writeBoolean; 61private readonly Action<IParameterSymbol> _writeParameterType; 62private readonly Action<IParameterSymbol> _writeRefKind; 303private void WriteArray<T, U>(ImmutableArray<T> array, Action<U> writeValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
563public void RegisterForCancellation(Action<object?> callback, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
219private static readonly Action<object?> s_cancellationTokenCanceledEventHandler = CancellationTokenCanceledEventHandler;
UnitTests.Common (20)
IMockCommunicationObject.cs (4)
20Action<TimeSpan> OnOpenOverride { get; set; } 21Action<TimeSpan> OnCloseOverride { get; set; } 22Action<IAsyncResult> OnEndCloseOverride { get; set; } 23Action<IAsyncResult> OnEndOpenOverride { get; set; }
MockChannelBase.cs (4)
60public Action<TimeSpan> OnOpenOverride { get; set; } 61public Action<TimeSpan> OnCloseOverride { get; set; } 62public Action<IAsyncResult> OnEndCloseOverride { get; set; } 63public Action<IAsyncResult> OnEndOpenOverride { get; set; }
MockChannelFactory.cs (4)
59public Action<TimeSpan> OnOpenOverride { get; set; } 60public Action<TimeSpan> OnCloseOverride { get; set; } 61public Action<IAsyncResult> OnEndCloseOverride { get; set; } 62public Action<IAsyncResult> OnEndOpenOverride { get; set; }
MockChannelInitializer.cs (1)
18public Action<IClientChannel> InitializeOverride { get; set; }
MockClientMessageInspector.cs (1)
27public Action<ServiceEndpoint> ValidateOverride { get; set; }
MockCommunicationObject.cs (4)
55public Action<TimeSpan> OnOpenOverride { get; set; } 56public Action<TimeSpan> OnCloseOverride { get; set; } 57public Action<IAsyncResult> OnEndCloseOverride { get; set; } 58public Action<IAsyncResult> OnEndOpenOverride { get; set; }
MockEndpointBehavior.cs (1)
20public Action<ServiceEndpoint> ValidateOverride { get; set; }
MockInteractiveChannelInitializer.cs (1)
20public Action<IAsyncResult> EndDisplayInitializationUIOverride { get; set; }
Wasm.Performance.ConsoleHost (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)
WindowsBase.Tests (6)
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (1)
343public Action<Uri>? DeletePartCoreAction { get; set; }
System\Windows\DependencyObjectTests.cs (1)
3001public Action<DependencyPropertyChangedEventArgs>? OnPropertyChangedAction { get; set; }
System\Windows\FreezableTests.cs (1)
7314public Action<DependencyPropertyChangedEventArgs>? OnPropertyChangedAction { get; set; }
System\Windows\Threading\DispatcherTests.cs (1)
145Assert.Throws<InvalidEnumArgumentException>("priority", () => dispatcher.BeginInvoke(priority, (Action<object>)((arg) => { }), new object()));
System\Windows\WeakEventManagerTests.cs (2)
6133public Action<object>? StartListeningAction { get; set; } 6145public Action<object>? StopListeningAction { get; set; }
xunit.assert (60)
AsyncCollectionAsserts.cs (2)
37 Action<T> action) => 89 params Action<T>[] elementInspectors) =>
CollectionAsserts.cs (2)
50 Action<T> action) 158 params Action<T>[] elementInspectors)
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
Sdk\Exceptions\AllException.cs (1)
33 /// more items failed during <see cref="Assert.All{T}(IEnumerable{T}, Action{T})"/>
xunit.console (2)
common\ConsoleHelper.cs (1)
11internal static Action<ConsoleColor> SetForegroundColor;
Utility\TransformFactory.cs (1)
59public static List<Action<XElement>> GetXmlTransformers(XunitProject project)