1386 references to Action
aspire (18)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
52private event Action? ConnectionsChanged;
Interaction\ConsoleInteractionService.cs (1)
181public void ShowStatus(string statusText, Action action, KnownEmoji? emoji = null, bool allowMarkup = false)
Interaction\ExtensionInteractionService.cs (1)
128public void ShowStatus(string statusText, Action action, KnownEmoji? emoji = null, bool allowMarkup = false)
Interaction\IInteractionService.cs (1)
14void ShowStatus(string statusText, Action action, KnownEmoji? emoji = null, bool allowMarkup = false);
Packaging\PackageChannel.cs (3)
16internal class PackageChannel(string name, PackageChannelQuality quality, PackageMapping[]? mappings, INuGetPackageCache nuGetPackageCache, IFeatures features, ILogger logger, bool configureGlobalPackagesFolder = false, string? cliDownloadBaseUrl = null, string? pinnedVersion = null, string? currentCliVersion = null, Action? validateTemplatePackageMetadataPrefetching = null) 819public static PackageChannel CreateExplicitChannel(string name, PackageChannelQuality quality, PackageMapping[]? mappings, INuGetPackageCache nuGetPackageCache, IFeatures features, ILogger logger, bool configureGlobalPackagesFolder = false, string? cliDownloadBaseUrl = null, string? pinnedVersion = null, string? currentCliVersion = null, Action? validateTemplatePackageMetadataPrefetching = null) 824public static PackageChannel CreateImplicitChannel(INuGetPackageCache nuGetPackageCache, IFeatures features, ILogger logger, string? currentCliVersion = null, Action? validateTemplatePackageMetadataPrefetching = null)
Packaging\PackagingService.cs (1)
251private Action TemplatePackageMetadataPrefetchingValidation => () => ValidateTemplatePackageMetadataPrefetching();
Program.cs (1)
1322internal static void WaitForDebuggerIfRequested(ParseResult parseResult, IServiceProvider services, Action waitAction)
Utils\TransactionalAction.cs (9)
22private class EnlistmentNotification(Action? commit, Action? rollback) : IEnlistmentNotification 24private Action? _commit = commit; 25private Action? _rollback = rollback; 71Action? commit = null, 72Action? rollback = null) 138Action action, 139Action? commit = null, 140Action? rollback = null)
Aspire.Azure.Data.Tables.Tests (4)
DataTablesPublicApiTests.cs (4)
17var action = () => builder.AddAzureTableServiceClient(connectionName); 31var action = () => builder.AddAzureTableServiceClient(connectionName); 45var action = () => builder.AddKeyedAzureTableServiceClient(name); 59var action = () => builder.AddKeyedAzureTableServiceClient(name);
Aspire.Azure.Messaging.EventHubs.Tests (20)
MessagingEventHubsPublicApiTests.cs (20)
17var action = () => builder.AddAzureEventProcessorClient(connectionName); 31var action = () => builder.AddAzureEventProcessorClient(connectionName); 45var action = () => builder.AddKeyedAzureEventProcessorClient(name); 59var action = () => builder.AddKeyedAzureEventProcessorClient(name); 73var action = () => builder.AddAzurePartitionReceiverClient(connectionName); 87var action = () => builder.AddAzurePartitionReceiverClient(connectionName); 101var action = () => builder.AddKeyedAzurePartitionReceiverClient(name); 115var action = () => builder.AddKeyedAzurePartitionReceiverClient(name); 129var action = () => builder.AddAzureEventHubProducerClient(connectionName); 143var action = () => builder.AddAzureEventHubProducerClient(connectionName); 157var action = () => builder.AddKeyedAzureEventHubProducerClient(name); 171var action = () => builder.AddKeyedAzureEventHubProducerClient(name); 185var action = () => builder.AddAzureEventHubBufferedProducerClient(connectionName); 199var action = () => builder.AddAzureEventHubBufferedProducerClient(connectionName); 213var action = () => builder.AddKeyedAzureEventHubBufferedProducerClient(name); 227var action = () => builder.AddKeyedAzureEventHubBufferedProducerClient(name); 241var action = () => builder.AddAzureEventHubConsumerClient(connectionName); 255var action = () => builder.AddAzureEventHubConsumerClient(connectionName); 269var action = () => builder.AddKeyedAzureEventHubConsumerClient(name); 283var action = () => builder.AddKeyedAzureEventHubConsumerClient(name);
Aspire.Azure.Messaging.ServiceBus.Tests (4)
MessagingServiceBusPublicApiTests.cs (4)
17var action = () => builder.AddAzureServiceBusClient(connectionName); 31var action = () => builder.AddAzureServiceBusClient(connectionName); 45var action = () => builder.AddKeyedAzureServiceBusClient(name); 59var action = () => builder.AddKeyedAzureServiceBusClient(name);
Aspire.Azure.Messaging.WebPubSub.Tests (5)
MessagingWebPubSubPublicApiTests.cs (5)
17var action = () => builder.AddAzureWebPubSubServiceClient(connectionName); 31var action = () => builder.AddAzureWebPubSubServiceClient(connectionName); 46var action = () => builder.AddKeyedAzureWebPubSubServiceClient(connectionName, serviceKey); 61var action = () => builder.AddKeyedAzureWebPubSubServiceClient(connectionName, serviceKey); 78var action = () => builder.AddKeyedAzureWebPubSubServiceClient(connectionName, serviceKey);
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
AzureNpgsqlEntityFrameworkCorePostgreSQLPublicApiTests.cs (3)
18var action = () => builder.AddAzureNpgsqlDbContext<DbContext>(connectionName); 32var action = () => builder.AddAzureNpgsqlDbContext<DbContext>(connectionName); 45var action = () => builder.EnrichAzureNpgsqlDbContext<DbContext>();
Aspire.Azure.Npgsql.Tests (4)
NpgsqlPublicApiTests.cs (4)
17var action = () => builder.AddAzureNpgsqlDataSource(connectionName, configureSettings: ConfigureTokenCredentials); 31var action = () => builder.AddAzureNpgsqlDataSource(connectionName, configureSettings: ConfigureTokenCredentials); 45var action = () => builder.AddKeyedAzureNpgsqlDataSource(name, configureSettings: ConfigureTokenCredentials); 59var action = () => builder.AddKeyedAzureNpgsqlDataSource(name, configureSettings: ConfigureTokenCredentials);
Aspire.Azure.Search.Documents.Tests (4)
SearchDocumentsPublicApiTests.cs (4)
17var action = () => builder.AddAzureSearchClient(connectionName); 31var action = () => builder.AddAzureSearchClient(connectionName); 45var action = () => builder.AddKeyedAzureSearchClient(name); 59var action = () => builder.AddKeyedAzureSearchClient(name);
Aspire.Azure.Security.KeyVault.Tests (9)
AspireKeyVaultExtensionsTests.cs (3)
282var action = () => builder.AddKeyedAzureKeyVaultClient(name); 300var action = () => builder.AddKeyedAzureKeyVaultKeyClient(name); 318var action = () => builder.AddKeyedAzureKeyVaultCertificateClient(name);
SecurityKeyVaultPublicApiTests.cs (6)
18var action = () => builder.AddAzureKeyVaultClient(connectionName); 32var action = () => builder.AddAzureKeyVaultClient(connectionName); 46var action = () => builder.AddKeyedAzureKeyVaultClient(name); 60var action = () => builder.AddKeyedAzureKeyVaultClient(name); 74var action = () => configurationManager.AddAzureKeyVaultSecrets(connectionName); 88var action = () => configurationManager.AddAzureKeyVaultSecrets(connectionName);
Aspire.Azure.Storage.Blobs.Tests (4)
StorageBlobsPublicApiTests.cs (4)
17var action = () => builder.AddAzureBlobServiceClient(connectionName); 31var action = () => builder.AddAzureBlobServiceClient(connectionName); 45var action = () => builder.AddKeyedAzureBlobServiceClient(name); 59var action = () => builder.AddKeyedAzureBlobServiceClient(name);
Aspire.Azure.Storage.Files.DataLake.Tests (8)
AzureDataLakePublicApiTests.cs (8)
17var action = () => builder.AddAzureDataLakeServiceClient(connectionName); 31var action = () => builder.AddAzureDataLakeServiceClient(connectionName); 45var action = () => builder.AddKeyedAzureDataLakeServiceClient(name); 59var action = () => builder.AddKeyedAzureDataLakeServiceClient(name); 73var action = () => builder.AddAzureDataLakeFileSystemClient(connectionName); 87var action = () => builder.AddAzureDataLakeFileSystemClient(connectionName); 101var action = () => builder.AddKeyedAzureDataLakeFileSystemClient(name); 115var action = () => builder.AddKeyedAzureDataLakeFileSystemClient(name);
Aspire.Azure.Storage.Queues.Tests (8)
StorageQueuesPublicApiTests.cs (8)
17var action = () => builder.AddAzureQueueServiceClient(connectionName); 31var action = () => builder.AddAzureQueueServiceClient(connectionName); 45var action = () => builder.AddKeyedAzureQueueServiceClient(name); 59var action = () => builder.AddKeyedAzureQueueServiceClient(name); 74var action = () => builder.AddAzureQueueServiceClient(connectionName); 90var action = () => builder.AddAzureQueueServiceClient(connectionName); 106var action = () => builder.AddKeyedAzureQueueServiceClient(name); 122var action = () => builder.AddKeyedAzureQueueServiceClient(name);
Aspire.Cli.EndToEnd.Tests (1)
tests\Shared\Hex1bTestHelpers.cs (1)
251Action callback)
Aspire.Cli.Tests (15)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1239public void ShowStatus(string statusText, Action action, KnownEmoji? emoji = null, bool allowMarkup = false) => action();
Commands\StartCommandTests.cs (2)
716private sealed class TestDetachedProcessFactory(Action onStart) : IProcessExecutionFactory 737private sealed class TestDetachedProcessExecution(Action onStart) : IProcessExecution
Commands\UpdateCommandTests.cs (2)
3515public Action? OnCancellationMessageDisplayed { get; set; } 3524public void ShowStatus(string statusText, Action action, KnownEmoji? emoji = null, bool allowMarkup = false) => _innerService.ShowStatus(statusText, action, emoji, allowMarkup);
Projects\ExtensionGuestLauncherTests.cs (1)
229public void ShowStatus(string statusText, Action action, KnownEmoji? emoji = null, bool allowMarkup = false) => throw new NotImplementedException();
Templating\DotNetTemplateFactoryTests.cs (1)
400public void ShowStatus(string message, Action work, KnownEmoji? emoji = null, bool allowMarkup = false)
TestServices\SignalingFakeTimeProvider.cs (1)
11public Action? TimerCreatedCallback { get; set; }
TestServices\TestCliUpdateNotifier.cs (1)
18public Action? NotifyIfUpdateAvailableCallback { get; set; }
TestServices\TestExtensionBackchannel.cs (1)
14public Action? ConnectAsyncCallback { get; set; }
TestServices\TestExtensionInteractionService.cs (3)
23public Action? LaunchAppHostCallback { get; set; } 25public Action? NotifyAppHostStartupCompletedCallback { get; set; } 61public void ShowStatus(string statusText, Action action, KnownEmoji? emoji = null, bool allowMarkup = false)
TestServices\TestInteractionService.cs (1)
107public void ShowStatus(string statusText, Action action, KnownEmoji? emoji = null, bool allowMarkup = false)
TestServices\TestProcessExecutionFactory.cs (1)
202public Action? DisposeCallback { get; init; }
Aspire.Components.Common.TestUtilities (1)
ConformanceTests.cs (1)
632protected static void RemoteInvokeWithLogging(Action action, ITestOutputHelper? testOutput, RemoteInvokeOptions? options = null)
Aspire.Confluent.Kafka.Tests (10)
ConfluentKafkaPublicApiTests.cs (8)
27Action action = overrideIndex switch 63Action action = overrideIndex switch 95Action action = overrideIndex switch 131Action action = overrideIndex switch 163Action action = overrideIndex switch 199Action action = overrideIndex switch 231Action action = overrideIndex switch 267Action action = overrideIndex switch
ConsumerConfigurationTests.cs (1)
139Action act =
ProducerConfigurationTests.cs (1)
128Action act =
Aspire.Dashboard (11)
Components\Layout\MobileNavMenu.razor.cs (1)
27public required Action CloseNavMenu { get; set; }
Model\DimensionFilterViewModel.cs (1)
25public Action? NotifyStateChanged { get; set; }
Model\INotificationService.cs (1)
54event Action? OnChange;
Model\NotificationService.cs (1)
28public event Action? OnChange;
Otlp\Storage\Subscription.cs (2)
18private readonly Action _unsubscribe; 27public Subscription(string name, ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback, Action unsubscribe, ExecutionContext? executionContext, ILogger logger, TimeSpan minExecuteInterval)
ServiceClient\DashboardDataSourcePool.cs (2)
221private readonly Action _release; 228Action release)
ServiceClient\TracingSqliteConnection.cs (1)
187private void ExecuteWithActivity(string query, Action execute)
Utils\DashboardUIHelpers.cs (1)
73public static Task<DashboardMessageBarReference> DisplayMaxLimitMessageAsync(DashboardMessageBarService messageService, string title, string message, Action onClose)
Utils\FilterHelpers.cs (1)
24Action clearFilters,
Aspire.Dashboard.Components.Tests (5)
Layout\MainLayoutTests.cs (2)
395bodyBuilder.AddComponentParameter(1, nameof(LifecycleTestComponent.Initialized), (Action)(() => initializedCount++)); 396bodyBuilder.AddComponentParameter(2, nameof(LifecycleTestComponent.Disposed), (Action)(() => disposedCount++));
Layout\MobileNavMenuTests.cs (1)
106private IRenderedComponent<MobileNavMenu> RenderMobileNavMenu(string currentUrl, Action? closeNavMenu = null, bool isNavMenuOpen = true)
Shared\LifecycleTestComponent.cs (2)
11public required Action Initialized { get; init; } 14public required Action Disposed { get; init; }
Aspire.Deployment.EndToEnd.Tests (1)
tests\Shared\Hex1bTestHelpers.cs (1)
251Action callback)
Aspire.Hosting (9)
ApplicationModel\ResourceLoggerService.cs (1)
403internal Action? SynchronousSubscribeRegistered { get; set; }
Dashboard\DashboardServiceData.cs (1)
237public record InputFileDto(string Id, string Name, string FilePath, Action? Delete = null);
Dcp\DcpResourceWatcher.cs (1)
1089public bool TryDeliver(Action deliver)
Dcp\KubernetesService.cs (1)
523Action recordRetry)
IInteractionService.cs (3)
480private Action? _dispose; 482internal InteractionFileCollection(IReadOnlyList<InteractionFile> files, Action? dispose = null) 515var dispose = Interlocked.Exchange(ref _dispose, null);
Utils\ConcurrencyUtils.cs (2)
11public static Action Once(Action action)
Aspire.Hosting.Azure.Tests (22)
AzureRunAsEmulatorModeTests.cs (3)
14public static TheoryData<string, Func<IDistributedApplicationBuilder, Action, IResource>> RunAsEmulatorResources => new() 28public void RunAsEmulator_InRunMode_ConfiguresLocalContainer(string resourceType, Func<IDistributedApplicationBuilder, Action, IResource> addResource) 42public void RunAsEmulator_InPublishMode_DoesNotConfigureLocalContainer(string resourceType, Func<IDistributedApplicationBuilder, Action, IResource> addResource)
PublicApiTests\AppContainersPublicApiTests.cs (4)
78var action = () => 122var action = () => app.ConfigureCustomDomain(customDomain, certificateName); 136var action = () => app.ConfigureCustomDomain(customDomain, certificateName); 150var action = () => app.ConfigureCustomDomain(customDomain, certificateName);
PublicApiTests\ApplicationInsightsPublicApiTests.cs (2)
20Action action = overrideIndex switch 42Action action = overrideIndex switch
PublicApiTests\CosmosDBPublicApiTests.cs (1)
529var action = () =>
PublicApiTests\FunctionsPublicApiTests.cs (1)
72var action = () =>
PublicApiTests\PostgreSQLPublicApiTests.cs (2)
18var action = () => 33var action = () =>
PublicApiTests\RedisPublicApiTests.cs (3)
47var action = () => 62var action = () => 115var action = () =>
PublicApiTests\SignalRPublicApiTests.cs (2)
31Action action = overrideIndex switch 53Action action = overrideIndex switch
PublicApiTests\SqlPublicApiTests.cs (2)
64var action = () => 79var action = () =>
PublicApiTests\WebPubSubPublicApiTests.cs (2)
78Action action = overrideIndex switch 101Action action = overrideIndex switch
Aspire.Hosting.Blazor (1)
BrowserDebuggerHelper.cs (1)
294Action onStopped)
Aspire.Hosting.Browsers.Tests (2)
BrowserLogsBuilderExtensionsTests.cs (1)
1766private static Task<IReadOnlyList<LogLine>> CaptureLogsAsync(ResourceLoggerService resourceLoggerService, string resourceName, Action writeLogs) =>
ConsoleLoggingTestHelpers.cs (1)
13public static async Task<IReadOnlyList<LogLine>> CaptureLogsAsync(ResourceLoggerService service, string resourceName, int targetLogCount, Action writeLogs)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
406Action callback)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
406Action callback)
Aspire.Hosting.CodeGeneration.Python.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
406Action callback)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
406Action callback)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
TestTypes\TestExtensions.cs (1)
406Action callback)
Aspire.Hosting.Dotnet (11)
DotnetProjectBuildCoordinator.cs (11)
117private static Action? AddBuildDependency( 150private static Action? AddBuildDependency( 227private readonly Dictionary<DotnetProjectResource, Action> _eagerDependencyRollbacks = 396var rollbackActions = new Stack<Action>(); 528while (rollbackActions.TryPop(out var rollback)) 557if (_eagerDependencyRollbacks.Remove(resource, out var rollback)) 656private static Action ApplyBuildEnvironment(IResource target, SharedBuildEnvironment sharedBuildEnvironment) 663private static Action EnsureBuildEnvironmentBeforeResourceLaunch( 675private static Action BeginBuildEnvironmentAttemptOnResourceStart( 689private static Action ApplyBuildProperties(IResource target, SharedBuildEnvironment sharedBuildEnvironment) 703private static Action ValidateMaterializedBuildCallbacks(
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
1110private static void AddOriginalStopCommand(IResource resource, Action? onExecute = null)
Aspire.Hosting.RemoteHost.Tests (4)
CallbackProxyTests.cs (2)
29var result = factory.CreateProxy("callback1", typeof(Action)); 32Assert.IsAssignableFrom<Action>(result);
CapabilityDispatcherTests.cs (1)
2365public static string WithCallback(string value, Action callback)
OrphanDetectorTests.cs (1)
156private sealed class HostLifetimeStub(Action stopImplementation) : IHostApplicationLifetime
Aspire.Hosting.Testing.Tests (1)
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (1)
10public static async Task<IReadOnlyList<LogLine>> CaptureLogsAsync(ResourceLoggerService service, string resourceName, int targetLogCount, Action writeLogs)
Aspire.Hosting.Tests (6)
Cli\CliOrphanDetectorTests.cs (1)
306file sealed class HostLifetimeStub(Action stopImplementation) : IHostApplicationLifetime
EndpointReferenceTests.cs (1)
501public void OnCompleted(Action continuation)
Publishing\PipelineExecutorTests.cs (1)
98private sealed class CallbackLifecycleHook(Action callback) : IDistributedApplicationLifecycleHook
ResourceBuilderLifetimeTests.cs (2)
36var exception = Assert.Throws<InvalidOperationException>((Action)ConfigureLifetime); 139var exception = Assert.Throws<InvalidOperationException>((Action)ConfigureLifetime);
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (1)
10public static async Task<IReadOnlyList<LogLine>> CaptureLogsAsync(ResourceLoggerService service, string resourceName, int targetLogCount, Action writeLogs)
Aspire.Microsoft.Azure.Cosmos.Tests (4)
MicrosoftAzureCosmosPublicApiTests.cs (4)
17var action = () => builder.AddAzureCosmosClient(connectionName); 31var action = () => builder.AddAzureCosmosClient(connectionName); 45var action = () => builder.AddKeyedAzureCosmosClient(name); 59var action = () => builder.AddKeyedAzureCosmosClient(name);
Aspire.Microsoft.Data.SqlClient.Tests (4)
MicrosoftDataSqlClientPublicApiTests.cs (4)
17var action = () => builder.AddSqlServerClient(connectionName); 31var action = () => builder.AddSqlServerClient(connectionName); 45var action = () => builder.AddKeyedSqlServerClient(name); 59var action = () => builder.AddKeyedSqlServerClient(name);
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (4)
MicrosoftEntityFrameworkCoreCosmosPublicApiTests.cs (4)
19var action = () => builder.AddCosmosDbContext<DbContext>(connectionName, databaseName); 34var action = () => builder.AddCosmosDbContext<DbContext>(connectionName, databaseName); 51var action = () => builder.AddCosmosDbContext<DbContext>(connectionName, databaseName); 64var action = () => builder.EnrichCosmosDbContext<DbContext>();
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (3)
MicrosoftEntityFrameworkCoreSqlServerPublicApiTests.cs (3)
18var action = () => builder.AddSqlServerDbContext<DbContext>(connectionName); 32var action = () => builder.AddSqlServerDbContext<DbContext>(connectionName); 45var action = () => builder.EnrichSqlServerDbContext<DbContext>();
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (2)
AppConfiguratinPublicApiTests.cs (2)
18var action = () => builder.AddAzureAppConfiguration(connectionName); 32var action = () => builder.AddAzureAppConfiguration(connectionName);
Aspire.Milvus.Client.Tests (4)
MilvusClientPublicApiTests.cs (4)
17var action = () => builder.AddMilvusClient(connectionName); 31var action = () => builder.AddMilvusClient(connectionName); 45var action = () => builder.AddKeyedMilvusClient(connectionName); 59var action = () => builder.AddKeyedMilvusClient(name);
Aspire.MongoDB.Driver.Tests (4)
MongoDBDriverPublicApiTests.cs (4)
17var action = () => builder.AddMongoDBClient(connectionName); 31var action = () => builder.AddMongoDBClient(connectionName); 45var action = () => builder.AddKeyedMongoDBClient(connectionName); 59var action = () => builder.AddKeyedMongoDBClient(name);
Aspire.MongoDB.Driver.v2.Tests (4)
tests\Aspire.MongoDB.Driver.Tests\MongoDBDriverPublicApiTests.cs (4)
17var action = () => builder.AddMongoDBClient(connectionName); 31var action = () => builder.AddMongoDBClient(connectionName); 45var action = () => builder.AddKeyedMongoDBClient(connectionName); 59var action = () => builder.AddKeyedMongoDBClient(name);
Aspire.MongoDB.EntityFrameworkCore.Tests (3)
MongoDBEntityFrameworkCorePublicApiTests.cs (3)
20var action = () => builder.AddMongoDbContext<DbContext>(connectionName, databaseName); 35var action = () => builder.AddMongoDbContext<DbContext>(connectionName, databaseName); 63var action = () => builder.EnrichMongoDbContext<DbContext>();
Aspire.MySqlConnector.Tests (4)
MySqlConnectorPublicApiTests.cs (4)
17var action = () => builder.AddMySqlDataSource(connectionName); 31var action = () => builder.AddMySqlDataSource(connectionName); 45var action = () => builder.AddKeyedMySqlDataSource(name); 59var action = () => builder.AddKeyedMySqlDataSource(name);
Aspire.NATS.Net.Tests (6)
NatsClientPublicApiTests.cs (6)
29Action action = overrideIndex switch 65Action action = overrideIndex switch 97Action action = overrideIndex switch 133Action action = overrideIndex switch 155var action = builder.AddNatsJetStream; 183Action action = (useKeyed, useConfigureSettings, useConfigureOptions, useConfigureOptionsWithServiceProvider) switch
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
NpgsqlEntityFrameworkCorePostgreSQLPublicApiTests.cs (3)
18var action = () => builder.AddNpgsqlDbContext<DbContext>(connectionName); 32var action = () => builder.AddNpgsqlDbContext<DbContext>(connectionName); 45var action = () => builder.EnrichNpgsqlDbContext<DbContext>();
Aspire.Npgsql.Tests (4)
NpgsqlPublicApiTests.cs (4)
17var action = () => builder.AddNpgsqlDataSource(connectionName); 31var action = () => builder.AddNpgsqlDataSource(connectionName); 45var action = () => builder.AddKeyedNpgsqlDataSource(name); 59var action = () => builder.AddKeyedNpgsqlDataSource(name);
Aspire.Oracle.EntityFrameworkCore.Tests (3)
OracleEntityFrameworkCorePublicApiTests.cs (3)
18var action = () => builder.AddOracleDatabaseDbContext<DbContext>(connectionName); 32var action = () => builder.AddOracleDatabaseDbContext<DbContext>(connectionName); 45var action = () => builder.EnrichOracleDatabaseDbContext<DbContext>();
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (3)
PomeloEntityFrameworkCoreMySqlPublicApiTests.cs (3)
18var action = () => builder.AddMySqlDbContext<DbContext>(connectionName); 32var action = () => builder.AddMySqlDbContext<DbContext>(connectionName); 45var action = () => builder.EnrichMySqlDbContext<DbContext>();
Aspire.Qdrant.Client.Tests (4)
QdrantClientPublicApiTests.cs (4)
17var action = () => builder.AddQdrantClient(connectionName); 31var action = () => builder.AddQdrantClient(connectionName); 45var action = () => builder.AddKeyedQdrantClient(name); 59var action = () => builder.AddKeyedQdrantClient(name);
Aspire.RabbitMQ.Client.Tests (5)
AspireRabbitMQLoggingTests.cs (1)
272public Action? LoggedMessage { get; set; }
RabbitMQClientPublicApiTests.cs (4)
17var action = () => builder.AddRabbitMQClient(connectionName); 31var action = () => builder.AddRabbitMQClient(connectionName); 45var action = () => builder.AddKeyedRabbitMQClient(name); 59var action = () => builder.AddKeyedRabbitMQClient(name);
Aspire.RabbitMQ.Client.v6.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
272public Action? LoggedMessage { get; set; }
Aspire.Seq.Tests (2)
SeqPublicApiTests.cs (2)
17var action = () => builder.AddSeqEndpoint(connectionName); 31var action = () => builder.AddSeqEndpoint(connectionName);
Aspire.StackExchange.Redis (2)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentation.cs (2)
81private readonly Action disposalAction; 84Action disposalAction)
Aspire.StackExchange.Redis.DistributedCaching.Tests (4)
StackExchangeRedisDistributedCachingPublicApiTests.cs (4)
17var action = () => builder.AddRedisDistributedCache(connectionName); 31var action = () => builder.AddRedisDistributedCache(connectionName); 45var action = () => builder.AddKeyedRedisDistributedCache(name); 59var action = () => builder.AddKeyedRedisDistributedCache(name);
Aspire.StackExchange.Redis.OutputCaching.Tests (4)
StackExchangeRedisOutputCachingPublicApiTests.cs (4)
17var action = () => builder.AddRedisOutputCache(connectionName); 31var action = () => builder.AddRedisOutputCache(connectionName); 45var action = () => builder.AddKeyedRedisOutputCache(name); 59var action = () => builder.AddKeyedRedisOutputCache(name);
Aspire.StackExchange.Redis.Tests (4)
StackExchangeRedisPublicApiTests.cs (4)
17var action = () => builder.AddRedisClient(connectionName); 31var action = () => builder.AddRedisClient(connectionName); 45var action = () => builder.AddKeyedRedisClient(name); 59var action = () => builder.AddKeyedRedisClient(name);
Aspire.TerminalHost (1)
DcpUpstreamAdapter.cs (1)
78public event Action? Disconnected;
ConfigurationSchemaGenerator.Tests (2)
VariousTypes.cs (2)
71/// A value of type <see cref="Action"/> (ignored). 73public Action? PropertyOfAction { get; set; }
dotnet-aot (2)
parent\dotnet\Commands\Test\MTP\CtrlCCancellationManager.cs (2)
32private readonly Action _onFirstCtrlC; 39public CtrlCCancellationManager(Action onFirstCtrlC, Action<int>? exitAction = null, bool subscribeToConsole = true)
dotnet-dev-certs (1)
src\aspnetcore\src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
18public static void OnExecute(this CommandLineApplication app, Action action)
dotnet-getdocument (1)
src\aspnetcore\src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
18public static void OnExecute(this CommandLineApplication app, Action action)
dotnet-openapi (1)
src\aspnetcore\src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
18public static void OnExecute(this CommandLineApplication app, Action action)
dotnet-sql-cache (1)
src\aspnetcore\src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
18public static void OnExecute(this CommandLineApplication app, Action action)
dotnet-svcutil-lib (25)
CommandProcessorOptions.cs (1)
1012private static void ProcessToolArg(Action action)
FrameworkFork\Microsoft.Xml\Xml\AsyncHelper.cs (2)
30public static Task CallVoidFuncWhenFinish(this Task task, Action func) 43private static async Task _CallVoidFuncWhenFinish(this Task task, Action func)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (2)
24private Action _beforePrepareAsyncCompletionAction; 244protected void SetBeforePrepareAsyncCompletionAction(Action beforePrepareAsyncCompletionAction)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (14)
319public void EnqueueAndDispatch(T item, Action dequeuedCallback) 324public void EnqueueAndDispatch(Exception exception, Action dequeuedCallback, bool canDispatchOnThisThread) 330public void EnqueueAndDispatch(T item, Action dequeuedCallback, bool canDispatchOnThisThread) 336public bool EnqueueWithoutDispatch(T item, Action dequeuedCallback) 342public bool EnqueueWithoutDispatch(Exception exception, Action dequeuedCallback) 543private static void InvokeDequeuedCallback(Action dequeuedCallback) 551private static void InvokeDequeuedCallbackLater(Action dequeuedCallback) 573Action dequeuedCallback = (Action)state; 747private Action _dequeuedCallback; 751public Item(T value, Action dequeuedCallback) 756public Item(Exception exception, Action dequeuedCallback) 761private Item(T value, Exception exception, Action dequeuedCallback) 768public Action DequeuedCallback
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (1)
289public void OnCompleted(Action continuation)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
1039private Action _messageDequeuedCallback;
Shared\Utilities\AsyncHelper.cs (4)
16public static async Task RunAsync(Action action, CancellationToken cancellationToken) 21public static async Task RunAsync(Action action, Action onCancellation, CancellationToken cancellationToken) 43public static async Task<T> RunAsync<T>(Func<T> func, Action onCancellation, CancellationToken cancellationToken)
dotnet-user-jwts (1)
src\aspnetcore\src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
18public static void OnExecute(this CommandLineApplication app, Action action)
dotnet-user-secrets (1)
src\aspnetcore\src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
18public static void OnExecute(this CommandLineApplication app, Action action)
GenerateDocumentationAndConfigFiles (17)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (3)
36static continuation => ((Action)continuation!)(); 52public void OnCompleted(Action continuation) 66public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
104public void OnCompleted(Action continuation) 114public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (4)
135public void OnCompleted(Action continuation) 145public void UnsafeOnCompleted(Action continuation) 235public void OnCompleted(Action continuation) 245public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (2)
70private sealed class Registration(Action unregister) : IDisposable 72private Action? _unregister = unregister;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
139=> compilation.GetTypeByMetadataName(typeof(Action).FullName!);
GetDocument.Insider (1)
src\aspnetcore\src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
18public static void OnExecute(this CommandLineApplication app, Action action)
ILCompiler.DependencyAnalysisFramework (4)
DgmlWriter.cs (2)
34public void WriteNodesAndEdges(Action nodeWriter, Action edgeWriter)
PerfEventSource.cs (2)
19private Action _stopAction; 21private StartStopEvents(Action stopAction)
ILCompiler.ReadyToRun (3)
Compiler\PerfEventSource.cs (2)
19private Action _stopAction; 21private StartStopEvents(Action stopAction)
IBC\IBCDataReader.cs (1)
639private void IfPresent(Dictionary<SectionFormat, SectionInfo> sectionTable, SectionFormat section, Action f)
Microsoft.AspNetCore.Components (17)
CompilerServices\RuntimeHelpers.cs (2)
114public static void InvokeSynchronousDelegate(Action callback) 133public static Task InvokeAsynchronousDelegate(Action callback)
ComponentBase.cs (1)
205protected Task InvokeAsync(Action workItem)
Dispatcher.cs (2)
47/// Invokes the given <see cref="Action"/> in the context of the associated <see cref="Renderer"/>. 51public abstract Task InvokeAsync(Action workItem);
EventCallback.cs (1)
21public static readonly EventCallback Empty = new EventCallback(null, (Action)(() => { }));
EventCallbackFactory.cs (2)
35public EventCallback Create(object receiver, Action callback) 119public EventCallback<TValue> Create<TValue>(object receiver, Action callback)
EventCallbackOfT.cs (1)
16public static readonly EventCallback<TValue> Empty = new EventCallback<TValue>(null, (Action)(() => { }));
EventCallbackWorkItem.cs (1)
46case Action action:
PersistentComponentState.cs (1)
84public RestoringComponentStateSubscription RegisterOnRestoring(Action callback, RestoreOptions options)
PersistentState\RestoreComponentStateRegistration.cs (2)
6internal readonly struct RestoreComponentStateRegistration(Action callback) 8public Action Callback { get; } = callback;
Rendering\RendererSynchronizationContext.cs (2)
41public Task InvokeAsync(Action action) 60static void Execute((AsyncTaskMethodBuilder Completion, Action Action, RendererSynchronizationContext Context) state)
Rendering\RendererSynchronizationContextDispatcher.cs (1)
21public override Task InvokeAsync(Action workItem)
src\aspnetcore\src\Components\Shared\src\HotReloadManager.cs (1)
27public event Action? OnDeltaApplied;
Microsoft.AspNetCore.Components.AI (20)
Blocks\ContentBlock.cs (3)
20private readonly List<Action> _callbacks = new(); 47public ContentBlockChangedSubscription OnChanged(Action callback) 69internal void RemoveCallback(Action callback)
Blocks\ContentBlockChangedSubscription.cs (3)
7/// Represents a subscription to <see cref="ContentBlock.OnChanged(Action)"/>. 13private readonly Action _callback; 15internal ContentBlockChangedSubscription(ContentBlock owner, Action callback)
Components\BlockContainer.cs (1)
13internal BlockContainer(ContentBlock block, MessageListContext listContext, Action requestRender)
Components\ConversationTurnRenderer.cs (2)
13private readonly Action _requestRender; 21Action requestRender)
Components\MessageListContext.cs (3)
83internal Action? OnRegistrationsChanged { get; set; } 422builder.AddAttribute(16, "onclick", (Action)block.Approve); 429builder.AddAttribute(21, "onclick", (Action)(() => block.Reject()));
Engine\AgentState.cs (7)
12private readonly List<Action> _callbacks = new(); 75public IDisposable OnChanged(Action callback) 93foreach (var callback in snapshot) 101private List<Action>? _callbacks; 102private Action? _callback; 104internal CallbackRegistration(List<Action> callbacks, Action callback)
Engine\UIAgent.cs (1)
108/// they are created; a block keeps changing (raising <see cref="ContentBlock.OnChanged(Action)"/>)
Microsoft.AspNetCore.Components.Authorization (1)
src\aspnetcore\src\Components\Shared\src\HotReloadManager.cs (1)
27public event Action? OnDeltaApplied;
Microsoft.AspNetCore.Components.Endpoints (1)
src\aspnetcore\src\Components\Shared\src\HotReloadManager.cs (1)
27public event Action? OnDeltaApplied;
Microsoft.AspNetCore.Components.Forms (2)
EditContextDataAnnotationsExtensions.cs (1)
35private static event Action? OnClearCache;
src\aspnetcore\src\Components\Shared\src\HotReloadManager.cs (1)
27public event Action? OnDeltaApplied;
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\Components\Shared\src\HotReloadManager.cs (1)
27public event Action? OnDeltaApplied;
Microsoft.AspNetCore.Components.WebAssembly (6)
Hosting\WebAssemblyCallQueue.cs (2)
21private static readonly Queue<Action> _pendingWork = new(); 58while (_pendingWork.TryDequeue(out var nextWorkItem))
Rendering\NullDispatcher.cs (1)
16public override Task InvokeAsync(Action workItem)
Rendering\WebAssemblyDispatcher.cs (2)
18public override Task InvokeAsync(Action workItem) 36var state = ((TaskCompletionSource tcs, Action workItem))o!;
src\aspnetcore\src\Components\Shared\src\HotReloadManager.cs (1)
27public event Action? OnDeltaApplied;
Microsoft.AspNetCore.Components.WebView.Maui (1)
MauiDispatcher.cs (1)
21 public override Task InvokeAsync(Action workItem)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
WindowsFormsDispatcher.cs (3)
41 public override async Task InvokeAsync(Action workItem) 82 Action action = async () => 150 Action action = async () =>
Microsoft.AspNetCore.Components.WebView.Wpf (1)
WpfDispatcher.cs (1)
26 public override async Task InvokeAsync(Action workItem)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Latency\CapturePipelineEntryStartupFilter.cs (1)
20/// <returns>A modified <see cref="Action"/>.</returns>
Microsoft.AspNetCore.Hosting (2)
Startup\DelegateStartup.cs (2)
22/// <param name="configureApp">An <see cref="Action"/> for configuring the application.</param> 29/// Configures the <see cref="IApplicationBuilder"/> with the initialized <see cref="Action"/>.
Microsoft.AspNetCore.Hosting.Abstractions (6)
IStartupConfigureContainerFilter.cs (2)
14/// Extends the provided <paramref name="container"/> and returns a modified <see cref="Action"/> action of the same type. 17/// <returns>A modified <see cref="Action"/>.</returns>
IStartupConfigureServicesFilter.cs (2)
16/// Extends the provided <paramref name="next"/> and returns a modified <see cref="Action"/> action of the same type. 19/// <returns>A modified <see cref="Action"/>.</returns>
IStartupFilter.cs (2)
17/// Extends the provided <paramref name="next"/> and returns an <see cref="Action"/> of the same type. 20/// <returns>A modified <see cref="Action"/>.</returns>
Microsoft.AspNetCore.Http.Connections (2)
src\aspnetcore\src\SignalR\common\Shared\AwaitableThreadPool.cs (2)
27public void OnCompleted(Action continuation) 32public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.Http.Extensions (20)
src\aspnetcore\src\Shared\ObjectMethodExecutor\AwaitableInfo.cs (2)
17private static readonly MethodInfo INotifyCompletion_OnCompleted = typeof(INotifyCompletion).GetMethod(nameof(INotifyCompletion.OnCompleted), Everything, new[] { typeof(Action) })!; 18private static readonly MethodInfo ICriticalNotifyCompletion_UnsafeOnCompleted = typeof(ICriticalNotifyCompletion).GetMethod(nameof(ICriticalNotifyCompletion.UnsafeOnCompleted), Everything, new[] { typeof(Action) })!;
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (8)
26typeof(Action<object, Action>), // onCompletedMethod 27typeof(Action<object, Action>) // unsafeOnCompletedMethod 334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 335var onCompletedFunc = Expression.Lambda<Action<object, Action>>( 343Action<object, Action>? unsafeOnCompletedFunc = null; 350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>( 380Expression.Constant(unsafeOnCompletedFunc, typeof(Action<object, Action>)));
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (10)
22private readonly Action<object, Action> _onCompletedMethod; 23private readonly Action<object, Action> _unsafeOnCompletedMethod; 48Action<object, Action> onCompletedMethod, 49Action<object, Action> unsafeOnCompletedMethod) 70private readonly Action<object, Action> _onCompletedMethod; 71private readonly Action<object, Action> _unsafeOnCompletedMethod; 77Action<object, Action> onCompletedMethod, 78Action<object, Action> unsafeOnCompletedMethod) 91public void OnCompleted(Action continuation) 96public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.InternalTesting (11)
AssemblyTestLog.cs (2)
343private readonly Action _action; 345public Disposable(Action action)
ExceptionAssertions.cs (9)
20public static TException Throws<TException>(Action testCode) 34public static TException Throws<TException>(Action testCode, string exceptionMessage) 82public static ArgumentException ThrowsArgument(Action testCode, string paramName, string exceptionMessage) 88Action testCode, 135public static ArgumentNullException ThrowsArgumentNull(Action testCode, string paramName) 152public static ArgumentException ThrowsArgumentNullOrEmpty(Action testCode, string paramName) 176public static ArgumentException ThrowsArgumentNullOrEmptyString(Action testCode, string paramName) 201public static ArgumentOutOfRangeException ThrowsArgumentOutOfRange(Action testCode, string paramName, string exceptionMessage, object actualValue = null) 223private static Exception RecordException(Action testCode)
Microsoft.AspNetCore.JsonPatch (2)
Adapters\ObjectAdapter.cs (2)
19/// <param name="logErrorAction">The <see cref="Action"/> for logging <see cref="JsonPatchError"/>.</param> 31/// <param name="logErrorAction">The <see cref="Action"/> for logging <see cref="JsonPatchError"/>.</param>
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Adapters\ObjectAdapter.cs (2)
20/// <param name="logErrorAction">The <see cref="Action"/> for logging <see cref="JsonPatchError"/>.</param> 32/// <param name="logErrorAction">The <see cref="Action"/> for logging <see cref="JsonPatchError"/>.</param>
Microsoft.AspNetCore.Mvc.Core (28)
Controllers\IControllerActivatorProvider.cs (2)
19/// Creates an <see cref="Action"/> that releases a controller. 26/// Creates an <see cref="Action"/> that releases a controller.
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (2)
41/// <param name="configure">An <see cref="Action"/> to configure the <see cref="JsonOptions"/>.</param> 58/// <param name="setupAction">An <see cref="Action"/> to configure the <see cref="FormatterMappings"/>.</param>
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (3)
42/// <param name="configure">An <see cref="Action"/> to configure the <see cref="JsonOptions"/>.</param> 70/// <param name="setupAction">An <see cref="Action"/> to configure the <see cref="FormatterMappings"/>.</param> 107/// <param name="setupAction">An <see cref="Action"/> to configure the <see cref="AuthorizationOptions"/>.</param>
Infrastructure\IActionDescriptorCollectionProvider.cs (1)
22/// using <see cref="ChangeToken.OnChange(System.Func{IChangeToken}, System.Action)"/>.
src\aspnetcore\src\Shared\ObjectMethodExecutor\AwaitableInfo.cs (2)
17private static readonly MethodInfo INotifyCompletion_OnCompleted = typeof(INotifyCompletion).GetMethod(nameof(INotifyCompletion.OnCompleted), Everything, new[] { typeof(Action) })!; 18private static readonly MethodInfo ICriticalNotifyCompletion_UnsafeOnCompleted = typeof(ICriticalNotifyCompletion).GetMethod(nameof(ICriticalNotifyCompletion.UnsafeOnCompleted), Everything, new[] { typeof(Action) })!;
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (8)
26typeof(Action<object, Action>), // onCompletedMethod 27typeof(Action<object, Action>) // unsafeOnCompletedMethod 334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 335var onCompletedFunc = Expression.Lambda<Action<object, Action>>( 343Action<object, Action>? unsafeOnCompletedFunc = null; 350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>( 380Expression.Constant(unsafeOnCompletedFunc, typeof(Action<object, Action>)));
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (10)
22private readonly Action<object, Action> _onCompletedMethod; 23private readonly Action<object, Action> _unsafeOnCompletedMethod; 48Action<object, Action> onCompletedMethod, 49Action<object, Action> unsafeOnCompletedMethod) 70private readonly Action<object, Action> _onCompletedMethod; 71private readonly Action<object, Action> _unsafeOnCompletedMethod; 77Action<object, Action> onCompletedMethod, 78Action<object, Action> unsafeOnCompletedMethod) 91public void OnCompleted(Action continuation) 96public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.Mvc.RazorPages (8)
ApplicationModels\PageConventionCollection.cs (8)
57/// <param name="action">The <see cref="Action"/>.</param> 82/// <param name="action">The <see cref="Action"/>.</param> 103/// <param name="action">The <see cref="Action"/>.</param> 126/// <param name="action">The <see cref="Action"/>.</param> 147/// <param name="action">The <see cref="Action"/>.</param> 170/// <param name="action">The <see cref="Action"/>.</param> 188/// <param name="action">The <see cref="Action"/>.</param> 211/// <param name="action">The <see cref="Action"/>.</param>
Microsoft.AspNetCore.OpenApi (20)
src\aspnetcore\src\Shared\ObjectMethodExecutor\AwaitableInfo.cs (2)
17private static readonly MethodInfo INotifyCompletion_OnCompleted = typeof(INotifyCompletion).GetMethod(nameof(INotifyCompletion.OnCompleted), Everything, new[] { typeof(Action) })!; 18private static readonly MethodInfo ICriticalNotifyCompletion_UnsafeOnCompleted = typeof(ICriticalNotifyCompletion).GetMethod(nameof(ICriticalNotifyCompletion.UnsafeOnCompleted), Everything, new[] { typeof(Action) })!;
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (8)
26typeof(Action<object, Action>), // onCompletedMethod 27typeof(Action<object, Action>) // unsafeOnCompletedMethod 334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 335var onCompletedFunc = Expression.Lambda<Action<object, Action>>( 343Action<object, Action>? unsafeOnCompletedFunc = null; 350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>( 380Expression.Constant(unsafeOnCompletedFunc, typeof(Action<object, Action>)));
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (10)
22private readonly Action<object, Action> _onCompletedMethod; 23private readonly Action<object, Action> _unsafeOnCompletedMethod; 48Action<object, Action> onCompletedMethod, 49Action<object, Action> unsafeOnCompletedMethod) 70private readonly Action<object, Action> _onCompletedMethod; 71private readonly Action<object, Action> _unsafeOnCompletedMethod; 77Action<object, Action> onCompletedMethod, 78Action<object, Action> unsafeOnCompletedMethod) 91public void OnCompleted(Action continuation) 96public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.OutputCaching (2)
Streams\OutputCacheStream.cs (2)
14private readonly Action _startResponseCallback; 16internal OutputCacheStream(Stream innerStream, long maxBufferSize, int segmentSize, Action startResponseCallback)
Microsoft.AspNetCore.Razor.Utilities.Shared (5)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
Microsoft.AspNetCore.ResponseCaching (2)
Streams\ResponseCachingStream.cs (2)
14private readonly Action _startResponseCallback; 16internal ResponseCachingStream(Stream innerStream, long maxBufferSize, int segmentSize, Action startResponseCallback)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\RetryHelper.cs (1)
70Action retryBlock,
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Infrastructure\Disposable.cs (2)
11private Action? _dispose; 14public Disposable(Action dispose)
Internal\Infrastructure\StreamCloseAwaitable.cs (4)
11private static readonly Action _callbackCompleted = () => { }; 15private Action? _callback = _callbackCompleted; 27public void OnCompleted(Action continuation) 36public void UnsafeOnCompleted(Action continuation)
KestrelConfigurationLoader.cs (3)
75private IList<Action> EndpointsToAdd { get; } = new List<Action>(); 312foreach (var action in EndpointsToAdd)
Microsoft.AspNetCore.SignalR.Client.Core (8)
HubConnectionExtensions.cs (1)
32public static IDisposable On(this HubConnection hubConnection, string methodName, Action handler)
src\aspnetcore\src\SignalR\common\Shared\AwaitableThreadPool.cs (2)
27public void OnCompleted(Action continuation) 32public void UnsafeOnCompleted(Action continuation)
src\aspnetcore\src\SignalR\common\Shared\TimerAwaitable.cs (5)
16private Action? _callback; 17private static readonly Action _callbackCompleted = () => { }; 76var continuation = Interlocked.Exchange(ref _callback, _callbackCompleted); 80public void OnCompleted(Action continuation) 89public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.SignalR.Core (20)
src\aspnetcore\src\Shared\ObjectMethodExecutor\AwaitableInfo.cs (2)
17private static readonly MethodInfo INotifyCompletion_OnCompleted = typeof(INotifyCompletion).GetMethod(nameof(INotifyCompletion.OnCompleted), Everything, new[] { typeof(Action) })!; 18private static readonly MethodInfo ICriticalNotifyCompletion_UnsafeOnCompleted = typeof(ICriticalNotifyCompletion).GetMethod(nameof(ICriticalNotifyCompletion.UnsafeOnCompleted), Everything, new[] { typeof(Action) })!;
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (8)
26typeof(Action<object, Action>), // onCompletedMethod 27typeof(Action<object, Action>) // unsafeOnCompletedMethod 334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 335var onCompletedFunc = Expression.Lambda<Action<object, Action>>( 343Action<object, Action>? unsafeOnCompletedFunc = null; 350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation"); 351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>( 380Expression.Constant(unsafeOnCompletedFunc, typeof(Action<object, Action>)));
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (10)
22private readonly Action<object, Action> _onCompletedMethod; 23private readonly Action<object, Action> _unsafeOnCompletedMethod; 48Action<object, Action> onCompletedMethod, 49Action<object, Action> unsafeOnCompletedMethod) 70private readonly Action<object, Action> _onCompletedMethod; 71private readonly Action<object, Action> _unsafeOnCompletedMethod; 77Action<object, Action> onCompletedMethod, 78Action<object, Action> unsafeOnCompletedMethod) 91public void OnCompleted(Action continuation) 96public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Util\EventedStreamReader.cs (1)
41void ResolveIfStillPending(Action applyResolution)
Microsoft.AspNetCore.TestHost (8)
ApplicationWrapper.cs (2)
21private readonly Action _preProcessRequestAsync; 23public ApplicationWrapper(IHttpApplication<TContext> application, Action preProcessRequestAsync)
ResponseBodyReaderStream.cs (4)
20private readonly Action _abortRequest; 21private readonly Action _readComplete; 24internal ResponseBodyReaderStream(Pipe pipe, Action abortRequest, Action readComplete)
WebHostBuilderExtensions.cs (2)
78/// <param name="servicesConfiguration">An <see cref="Action"/> that registers services onto the <see cref="IServiceCollection"/>.</param> 106/// <param name="servicesConfiguration">An <see cref="Action"/> that registers services onto the <typeparamref name="TContainer"/>.</param>
Microsoft.Build (22)
BackEnd\BuildManager\BuildManager.cs (3)
239private ActionBlock<Action>? _workQueue; 750_workQueue = new ActionBlock<Action>(action => ProcessWorkQueue(action)); 1914private void ProcessWorkQueue(Action action)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
72private ActionBlock<Action> _workQueue; 234_workQueue = new ActionBlock<Action>(action => action.Invoke()); 1443private void QueueAction(Action action, bool isLastTask) 1445ActionBlock<Action> queue = _workQueue;
BuildCheck\Infrastructure\CheckScopeClassifier.cs (1)
15internal static event Action? NotifyOnScopingReadiness;
BuildCheck\Infrastructure\CheckWrapper.cs (1)
200internal readonly struct CleanupScope(Action disposeAction) : IDisposable
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (6)
36Action onRawReadingPossible, 37Action onStructuredReadingOnly); 311private Action? _onRawReadingPossible; 312private Action? _onStructuredReadingOnly; 315Action onRawReadingPossible, 316Action onStructuredReadingOnly)
Logging\BinaryLogger\Postprocessing\CleanupScope.cs (2)
10private readonly Action _disposeAction; 12public CleanupScope(Action disposeAction) => _disposeAction = disposeAction;
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
Microsoft.Build.Framework (1)
FileClassifier.cs (1)
44public event Action? OnImmutablePathsInitialized;
Microsoft.Build.Tasks.Core (3)
Copy.cs (3)
50private static ConcurrentQueue<Action> _copyActionQueue = new ConcurrentQueue<Action>(); 574if (_copyActionQueue.TryDequeue(out Action copyAction))
Microsoft.CodeAnalysis (15)
InternalUtilities\UICultureUtilities.cs (2)
12public static Action WithCurrentUICulture(Action action)
MetadataReference\ModuleMetadata.cs (8)
28private Action? _onDispose; 32private ModuleMetadata(PEReader peReader, Action? onDispose) 42Action? onDispose, 87Action onDispose) 98Action? onDispose) 130private static unsafe ModuleMetadata CreateFromImage(byte* peImage, int size, Action? onDispose) 232Action? onDispose = options.HasFlag(PEStreamOptions.LeaveOpen) 296var onDispose = Interlocked.Exchange(ref _onDispose, null);
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
Microsoft.CodeAnalysis.Analyzers (18)
MetaAnalyzers\RegisterActionAnalyzer.cs (1)
337if (type == null || type.Name.Equals(nameof(Action), StringComparison.Ordinal))
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (3)
36static continuation => ((Action)continuation!)(); 52public void OnCompleted(Action continuation) 66public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
104public void OnCompleted(Action continuation) 114public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (4)
135public void OnCompleted(Action continuation) 145public void UnsafeOnCompleted(Action continuation) 235public void OnCompleted(Action continuation) 245public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (2)
70private sealed class Registration(Action unregister) : IDisposable 72private Action? _unregister = unregister;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
139=> compilation.GetTypeByMetadataName(typeof(Action).FullName!);
Microsoft.CodeAnalysis.AnalyzerUtilities (17)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (3)
36static continuation => ((Action)continuation!)(); 52public void OnCompleted(Action continuation) 66public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
104public void OnCompleted(Action continuation) 114public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (4)
135public void OnCompleted(Action continuation) 145public void UnsafeOnCompleted(Action continuation) 235public void OnCompleted(Action continuation) 245public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (2)
70private sealed class Registration(Action unregister) : IDisposable 72private Action? _unregister = unregister;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
139=> compilation.GetTypeByMetadataName(typeof(Action).FullName!);
Microsoft.CodeAnalysis.CodeStyle (17)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (3)
36static continuation => ((Action)continuation!)(); 52public void OnCompleted(Action continuation) 66public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
104public void OnCompleted(Action continuation) 114public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (4)
135public void OnCompleted(Action continuation) 145public void UnsafeOnCompleted(Action continuation) 235public void OnCompleted(Action continuation) 245public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (2)
70private sealed class Registration(Action unregister) : IDisposable 72private Action? _unregister = unregister;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
139=> compilation.GetTypeByMetadataName(typeof(Action).FullName!);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
170var parameterNames = delegateInvokeMethod.ContainingType is { Name: nameof(Action) or nameof(Func<>), ContainingNamespace.Name: nameof(System) }
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (2)
152if (invocationExpression.Expression is MemberAccessExpressionSyntax { Name: IdentifierNameSyntax { Identifier.ValueText: nameof(Action.Invoke) } } memberAccessExpression && 243Name: IdentifierNameSyntax { Identifier.ValueText: nameof(Action.Invoke) },
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\roslyn\src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (4)
85invocationExpression.Expression is MemberAccessExpressionSyntax { Name: IdentifierNameSyntax { Identifier.ValueText: nameof(Action.Invoke) } } memberAccessExpression 87: (invocationExpression.Expression, IdentifierName(nameof(Action.Invoke))); 128invocationExpression.Expression is MemberAccessExpressionSyntax { Name: IdentifierNameSyntax { Identifier.ValueText: nameof(Action.Invoke) } } memberAccessExpression 130: IdentifierName(nameof(Action.Invoke));
Microsoft.CodeAnalysis.CSharp.Features (6)
src\roslyn\src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (2)
152if (invocationExpression.Expression is MemberAccessExpressionSyntax { Name: IdentifierNameSyntax { Identifier.ValueText: nameof(Action.Invoke) } } memberAccessExpression && 243Name: IdentifierNameSyntax { Identifier.ValueText: nameof(Action.Invoke) },
src\roslyn\src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (4)
85invocationExpression.Expression is MemberAccessExpressionSyntax { Name: IdentifierNameSyntax { Identifier.ValueText: nameof(Action.Invoke) } } memberAccessExpression 87: (invocationExpression.Expression, IdentifierName(nameof(Action.Invoke))); 128invocationExpression.Expression is MemberAccessExpressionSyntax { Name: IdentifierNameSyntax { Identifier.ValueText: nameof(Action.Invoke) } } memberAccessExpression 130: IdentifierName(nameof(Action.Invoke));
Microsoft.CodeAnalysis.Extensions.Package (6)
Compilation\CompilationExtensions.cs (1)
139=> compilation.GetTypeByMetadataName(typeof(Action).FullName!);
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
Microsoft.CodeAnalysis.Features (11)
Diagnostics\IDiagnosticsRefresher.cs (2)
17event Action? WorkspaceRefreshRequested; 43public event Action? WorkspaceRefreshRequested;
Diagnostics\Service\DocumentAnalysisExecutor.cs (2)
34private readonly Action? _onAnalysisException; 46Action? onAnalysisException = null)
QuickInfo\Presentation\INavigationActionFactory.cs (1)
11Action CreateNavigationAction(string navigationTarget);
QuickInfo\Presentation\QuickInfoClassifiedTextRun.cs (2)
12Action? navigationAction = null, 24public Action? NavigationAction { get; } = navigationAction;
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (2)
61var actionsToPerform = new List<(int, Action)>(); 72(int, Action) pair = (token.Parent.SpanStart,
Shared\Utilities\IUIContextActivationService.cs (1)
14IDisposable ExecuteWhenActivated(Guid uiContext, Action action);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
170var parameterNames = delegateInvokeMethod.ContainingType is { Name: nameof(Action) or nameof(Func<>), ContainingNamespace.Name: nameof(System) }
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\Legacy\DisposableAction.cs (2)
10private readonly Action _action; 13public DisposableAction(Action action)
Microsoft.CodeAnalysis.ResxSourceGenerator (17)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (3)
36static continuation => ((Action)continuation!)(); 52public void OnCompleted(Action continuation) 66public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
104public void OnCompleted(Action continuation) 114public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (4)
135public void OnCompleted(Action continuation) 145public void UnsafeOnCompleted(Action continuation) 235public void OnCompleted(Action continuation) 245public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (2)
70private sealed class Registration(Action unregister) : IDisposable 72private Action? _unregister = unregister;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
139=> compilation.GetTypeByMetadataName(typeof(Action).FullName!);
Microsoft.CodeAnalysis.Workspaces (23)
ErrorReporting\InfoBarUI.cs (2)
14public readonly Action Action; 17public InfoBarUI(string title, UIKind kind, Action action, bool closeAfterAction = true)
ExtensionManager\IExtensionManagerExtensions.cs (1)
16public static void PerformAction(this IExtensionManager extensionManager, object extension, Action action)
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
115public async Task WaitAllAsync(Workspace? workspace, string[]? featureNames = null, Action? eventProcessingAction = null, TimeSpan? timeout = null)
Shared\Utilities\IOUtilities.cs (1)
16public static void PerformIO(Action action)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (3)
36static continuation => ((Action)continuation!)(); 52public void OnCompleted(Action continuation) 66public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
104public void OnCompleted(Action continuation) 114public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (4)
135public void OnCompleted(Action continuation) 145public void UnsafeOnCompleted(Action continuation) 235public void OnCompleted(Action continuation) 245public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (2)
70private sealed class Registration(Action unregister) : IDisposable 72private Action? _unregister = unregister;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
139=> compilation.GetTypeByMetadataName(typeof(Action).FullName!);
Workspace\Workspace.cs (1)
562protected internal Task ScheduleTask(Action action, string? taskName = "Workspace.Task")
Microsoft.Data.Analysis (2)
DataFrameColumnCollection.cs (2)
16private readonly Action ColumnsChanged; 21internal DataFrameColumnCollection(IEnumerable<DataFrameColumn> columns, Action columnsChanged) : base()
Microsoft.Diagnostics.DataContractReader.Legacy (1)
SOSDacImpl.IXCLRDataProcess.cs (1)
1177Action? callback = null;
Microsoft.DotNet.Cli.Utils (3)
FileAccessRetrier.cs (2)
55internal static void RetryOnMoveAccessFailure(Action action) 81internal static void RetryOnIOException(Action action)
Reporter.cs (1)
151public static void UseSpinLock(Action action)
Microsoft.DotNet.HotReload.Watch (3)
FileWatcher\FileWatcher.cs (3)
170public async Task<ChangedFile?> WaitForFileChangeAsync(IReadOnlyDictionary<string, FileItem> fileSet, Action? startedWatching, CancellationToken cancellationToken) 180public async Task<ChangedPath?> WaitForFileChangeAsync(Predicate<ChangedPath> acceptChange, Action? startedWatching, CancellationToken cancellationToken) 209public static async ValueTask WaitForFileChangeAsync(IEnumerable<string> filePaths, ILogger logger, EnvironmentOptions environmentOptions, Action? startedWatching, CancellationToken cancellationToken)
Microsoft.DotNet.XliffTasks (1)
ExponentialRetry.cs (1)
14Action action,
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
569MethodInfo method = ((Action)MethodWithAIFunctionName).Method; 594var method = ((Action)TestMethod).Method;
Microsoft.Extensions.AI.Evaluation (1)
Utilities\TimingHelper.cs (1)
16internal static TimeSpan ExecuteWithTiming(Action operation)
Microsoft.Extensions.AI.Evaluation.Console (3)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
16internal static TimeSpan ExecuteWithTiming(Action operation)
Telemetry\TelemetryExtensions.cs (1)
31Action operation,
Utilities\LoggerExtensions.cs (1)
20Action operation,
Microsoft.Extensions.AI.Evaluation.NLP (1)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
16internal static TimeSpan ExecuteWithTiming(Action operation)
Microsoft.Extensions.AI.Evaluation.Quality (1)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
16internal static TimeSpan ExecuteWithTiming(Action operation)
Microsoft.Extensions.AI.Evaluation.Safety (1)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
16internal static TimeSpan ExecuteWithTiming(Action operation)
Microsoft.Extensions.AI.Tests (4)
Functions\AIFunctionFactoryTest.cs (4)
507Action dotnetFunc = () => { }; 1450Action lambda = () => 1464Action lambda1 = () => 1469Action lambda2 = () =>
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
28private readonly Action _deleteExpiredCachedItemsDelegate;
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
KubernetesProbesOptionsValidatorTests.cs (1)
100Action action = () =>
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLogCollectorTests.LogEnumeration.cs (1)
165Action? onMoveNextCalled = null)
Microsoft.Extensions.Http.Resilience (1)
Resilience\ResilienceHandlerContext.cs (1)
70public void OnPipelineDisposed(Action callback) => _context.OnPipelineDisposed(Throw.IfNull(callback));
Microsoft.Extensions.ML (1)
ServiceCollectionExtensions.cs (1)
59Action callback)
Microsoft.Extensions.Options (3)
StartupValidatorOptions.cs (2)
14public Dictionary<(Type, string), Action> _validators { get; } = new Dictionary<(Type, string), Action>();
ValidateOnStart.cs (1)
28foreach (Action validator in _validatorOptions._validators.Values)
Microsoft.Extensions.Primitives (2)
ChangeToken.cs (2)
25public static IDisposable OnChange(Func<IChangeToken?> changeTokenProducer, Action changeTokenConsumer) 30return new SyncChangeTokenRegistration<Action>(changeTokenProducer, static callback => callback(), changeTokenConsumer);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ExtensionsServicePublicApiTests.cs (1)
182var action = () =>
Microsoft.Gen.ComplianceReports (2)
Emitter.cs (2)
143private void OutObject(Action action) 161private void OutArray(string name, Action action)
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesExtensions.cs (1)
32public Action? ActionBase { get; set; } // Not supposed to be logged (delegate type)
Microsoft.Gen.MetadataExtractor (2)
src\Generators\Microsoft.Gen.ComplianceReports\Emitter.cs (2)
143private void OutObject(Action action) 161private void OutArray(string name, Action action)
Microsoft.Maui (28)
Animations\Animation.cs (2)
30 public Animation(Action<double> callback, double start = 0.0f, double duration = 1.0f, Easing? easing = null, Action? finished = null) 54 public Action? Finished { get; set; }
Animations\ITicker.cs (2)
27 /// The <see cref="Action"/> that is triggered when this ticker interval has been reached. 29 Action? Fire { get; set; }
Animations\LerpingAnimation.cs (2)
26 public LerpingAnimation(Action<double> callback, double start = 0, double end = 1, Easing? easing = null, Action? finished = null) 43 public Action? ValueChanged { get; set; }
Animations\Ticker.cs (1)
16 public Action? Fire { get; set; }
Dispatching\Dispatcher.cs (2)
16 public bool Dispatch(Action action) 24 public bool DispatchDelayed(TimeSpan delay, Action action)
Dispatching\Dispatcher.Standard.cs (2)
15 bool DispatchImplementation(Action action) => 18 bool DispatchDelayedImplementation(TimeSpan delay, Action action) =>
Dispatching\DispatcherExtensions.cs (1)
45 public static Task DispatchAsync(this IDispatcher dispatcher, Action action) =>
Dispatching\IDispatcher.cs (4)
13 /// <param name="action">The <see cref="Action"/> to be scheduled for processing on the UI thread.</param> 15 bool Dispatch(Action action); 21 /// <param name="action">The <see cref="Action"/> to be scheduled for processing on the UI thread.</param> 23 bool DispatchDelayed(TimeSpan delay, Action action);
ImageSources\ImageSourceServiceResult.cs (6)
19 Action? _dispose; 25 public ImageSourceServiceLoadResult(Action? dispose = null) 30 public ImageSourceServiceLoadResult(bool resolutionDependent, Action? dispose = null) 54 Action? _dispose; 56 public ImageSourceServiceResult(PlatformView image, Action? dispose = null) 61 public ImageSourceServiceResult(PlatformView image, bool resolutionDependent, Action? dispose = null)
LifecycleEvents\LifecycleBuilderExtensions.cs (1)
9 public static ILifecycleBuilder AddEvent(this ILifecycleBuilder builder, string eventName, Action action)
LifecycleEvents\LifecycleEventServiceExtensions.cs (1)
11 lifecycleService.InvokeEvents<Action>(eventName, action => action?.Invoke());
Platform\ActionDisposable.cs (2)
10 volatile Action? _action; 11 public ActionDisposable(Action action)
Platform\ViewExtensions.cs (2)
129 internal static IDisposable OnUnloaded(this IElement element, Action action) 148 internal static IDisposable OnLoaded(this IElement element, Action action)
Microsoft.Maui.Controls (32)
Animation.cs (1)
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)
AnimationExtensions.cs (6)
124 Action abort = () => 184 Action animate = () => AnimateInternal(self, animationManager, name, transform, callback, rate, length, easing, finished, repeat); 191 public static void AnimateKinetic(this IAnimatable self, string name, Func<double, double, bool> callback, double velocity, double drag, Action finished = null, IAnimationManager animationManager = null) 196 Action animate = () => AnimateKineticInternal(self, animationManager, name, callback, velocity, drag, finished); 286 static void AnimateKineticInternal(IAnimatable self, IAnimationManager animationManager, string name, Func<double, double, bool> callback, double velocity, double drag, Action finished = null) 376 static void DoAction(IAnimatable self, Action action)
CollectionSynchronizationCallback.cs (1)
7 public delegate void CollectionSynchronizationCallback(IEnumerable collection, object context, Action accessMethod, bool writeAccess);
Command.cs (2)
80 public Command(Action execute) : this(o => execute()) 96 public Command(Action execute, Func<bool> canExecute) : this(o => execute(), o => canExecute())
Device.cs (2)
90 public static void BeginInvokeOnMainThread(Action action) => 100 public static Task InvokeOnMainThreadAsync(Action action) =>
DispatcherExtensions.cs (2)
50 public static void DispatchIfRequired(this IDispatcher? dispatcher, Action action) 63 public static Task DispatchIfRequiredAsync(this IDispatcher? dispatcher, Action action)
Internals\NotifyCollectionChangedEventArgsExtensions.cs (1)
25 public static NotifyCollectionChangedAction Apply(this NotifyCollectionChangedEventArgs self, Action<object, int, bool> insert, Action<object, int> removeAt, Action reset)
Internals\ProfilePage.cs (1)
138 Action update = delegate ()
ListProxy.cs (3)
203 Action action; 258 Action getFromList = () => 324 Action move = () =>
NavigationPage\NavigationPage.cs (3)
615 Action processStackChanges, 616 Action firePostNavigatingEvents, 617 Action fireNavigatedEvents)
Page\Page.cs (4)
81 List<Action> _pendingActions = new List<Action>(); 388 foreach (var pendingAction in actionsToProcess) 643 internal void OnAppearing(Action action)
Shell\BaseShellItem.cs (1)
169 internal void OnAppearing(Action action)
Shell\ShellNavigatingDeferral.cs (3)
11 Action _completed; 13 internal ShellNavigatingDeferral(Action completed) 21 var taskToComplete = Interlocked.Exchange(ref _completed, null);
Toolbar\ToolbarItem.cs (1)
23 public ToolbarItem(string name, string icon, Action activated, ToolbarItemOrder order = ToolbarItemOrder.Default, int priority = 0)
ViewExtensions.cs (1)
474 static internal void MapFocus(this VisualElement view, FocusRequest focusRequest, Action? baseMethod = null)
Microsoft.Maui.Controls.Foldable (3)
DualScreenInfo.cs (1)
221 Action onChanged = null)
NoPlatformFoldableService.cs (1)
61 public object WatchForChangesOnLayout(VisualElement visualElement, Action action)
TwoPaneViewLayoutGuide.cs (1)
390 Action onChanged = null)
Microsoft.Maui.Essentials (3)
MainThread\MainThread.netstandard.cs (1)
7 static void PlatformBeginInvokeOnMainThread(Action action) =>
MainThread\MainThread.shared.cs (2)
22 public static void BeginInvokeOnMainThread(Action action) 39 public static Task InvokeOnMainThreadAsync(Action action)
Microsoft.Maui.Resizetizer (1)
AsyncTaskExtensions.cs (1)
40 public static Task RunTask(this MauiAsyncTask asyncTask, Action body) =>
Microsoft.ML.AutoML.Interactive (2)
ActionThrottler.cs (2)
16private readonly Action _action; 27public ActionThrottler(Action action, TimeSpan minDelay)
Microsoft.ML.Core (12)
Data\ServerChannel.cs (2)
235internal Action Done; 245public void AddDoneAction(Action onDone)
Utilities\ThreadUtils.cs (4)
15public static Task RunOnBackgroundThreadAsync(Action start) => 40/// Queues an <see cref="Action"/> delegate to be executed immediately on another thread, 45public static Task QueueAsync(Action threadStart) => QueueAsync((Delegate)threadStart, null); 86((Action)item.action)();
Utilities\Utils.cs (6)
1198/// <see cref="Action"/> instead of <see cref="Func{TRet}"/>. 1204public static void MarshalActionInvoke(Action act, Type genArg) 1211/// A one-argument version of <see cref="MarshalActionInvoke(Action, Type)"/>. 1220/// A two-argument version of <see cref="MarshalActionInvoke(Action, Type)"/>. 1229/// A three-argument version of <see cref="MarshalActionInvoke(Action, Type)"/>. 1238/// A four-argument version of <see cref="MarshalActionInvoke(Action, Type)"/>.
Microsoft.ML.Data (63)
Data\DataViewUtils.cs (6)
398Action pushBatch = () => 465Action quitAction = () => 570Action pushBatch = () => 608Action quitAction = () => 1006private readonly Action _quitAction; 1028OutPipe[] pipes, BlockingCollection<Batch> batchInputs, Action quitAction)
DataView\LambdaColumnMapper.cs (1)
154protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
DataView\RowToRowMapperTransform.cs (5)
43Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer); 264var getters = _mapper.CreateGetters(input, pred, out Action disp); 303private readonly Action _disposer; 307public RowImpl(DataViewRow input, RowToRowMapperTransform parent, DataViewSchema schema, Delegate[] getters, Action disposer) 363private readonly Action _disposer;
DataView\SimpleRow.cs (2)
23private readonly Action _disposer; 37public SimpleRow(DataViewSchema schema, DataViewRow input, Delegate[] getters, Action disposer = null)
DataView\Transposer.cs (1)
555Action copyPhase =
Evaluators\BinaryClassifierEvaluator.cs (2)
1148private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer) 1175Action updateCacheIfNeeded;
Evaluators\ClusteringEvaluator.cs (2)
649private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer) 664Action updateCacheIfNeeded =
Evaluators\EvaluatorBase.cs (2)
537Delegate[] IRowMapper.CreateGetters(DataViewRow input, Func<int, bool> activeCols, out Action disposer) 541private protected abstract Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer);
Evaluators\MulticlassClassificationEvaluator.cs (2)
709private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer) 727Action updateCacheIfNeeded =
Evaluators\MultiOutputRegressionEvaluator.cs (2)
460private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer) 478Action updateCacheIfNeeded =
Evaluators\QuantileRegressionEvaluator.cs (2)
380private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer) 399Action updateCacheIfNeeded =
Evaluators\RankingEvaluator.cs (1)
427private Action _groupSbUpdate;
Evaluators\RegressionEvaluator.cs (2)
269private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer) 287Action updateCacheIfNeeded =
Prediction\CalibratorCatalog.cs (1)
313protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Prediction\PredictionEngine.cs (2)
95private readonly Action _disposer; 124IRowToRowMapper mapper, bool ignoreMissingColumns, SchemaDefinition outputSchemaDefinition, out Action disposer, out IRowReadableAs<TDst> outputRow)
Scorers\RowToRowScorerBase.cs (1)
165protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disp)
Transforms\ColumnConcatenatingTransformer.cs (1)
875protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\ColumnCopying.cs (1)
213protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\FeatureContributionCalculationTransformer.cs (1)
203protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> active, out Action disposer)
Transforms\Hashing.cs (3)
232Action disposer = null; 261private Delegate GetGetterCore(DataViewRow input, int iinfo, out Action disposer) 1354protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) => _parent.GetGetterCore(input, iinfo, out disposer);
Transforms\KeyToValue.cs (1)
212protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\KeyToVector.cs (1)
449protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\LabelConvertTransform.cs (1)
170protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
Transforms\LabelIndicatorTransform.cs (1)
168int iinfo, out Action disposer)
Transforms\Normalizer.cs (1)
756protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\RowToRowTransformerBase.cs (4)
78public virtual Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 87var disposers = new Action[n]; 98foreach (var act in disposers) 107protected abstract Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer);
Transforms\SlotsDroppingTransformer.cs (1)
719protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\TransformBase.cs (10)
184var getters = CreateGetters(input, activeColumns, out Action disp); 189protected abstract Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disp); 197private readonly Action _disposer; 203public RowImpl(DataViewRow input, RowToRowMapperTransformBase parent, DataViewSchema schema, Delegate[] getters, Action disposer) 692protected abstract Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer); 818protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disposer) 836Action disp; 850private readonly Action _disposer; 864Action masterDisposer = null; 869_getters[iinfo] = parent.GetGetterCore(Ch, Input, iinfo, out Action disposer);
Transforms\TypeConverting.cs (1)
467protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\ValueMapping.cs (1)
1048protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\ValueToKeyMappingTransformer.cs (1)
756protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.Ensemble (7)
PipelineEnsemble.cs (7)
110var scoreGetter = CreateScoreGetter(input, out Action disposer); 114internal abstract Delegate CreateScoreGetter(DataViewRow input, out Action disposer); 130internal override Delegate CreateScoreGetter(DataViewRow input, out Action disposer) 162public ValueGetter<Single> GetLabelGetter(DataViewRow input, int i, out Action disposer) 174public ValueGetter<Single> GetWeightGetter(DataViewRow input, int i, out Action disposer) 333var scoreGetter = (ValueGetter<Single>)bound.CreateScoreGetter(curs, out Action disposer); 337var labelGetter = bound.GetLabelGetter(curs, 0, out Action disp);
Microsoft.ML.FastTree (22)
FastTreeRanking.cs (1)
124Action error =
GamClassification.cs (1)
122var actions = new Action[(int)Math.Ceiling(1.0 * targets.Length / innerLoopSize)];
Training\Applications\ObjectiveFunction.cs (1)
63var actions = new Action[(int)Math.Ceiling((double)Dataset.NumQueries / QueryThreadChunkSize)];
Training\DcgCalculator.cs (2)
371var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumQueries / chunkSize)]; 510var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumQueries / chunkSize)];
Training\DocumentPartitioning.cs (2)
71var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumDocs / innerLoopSize)]; 111actions = new Action[tree.NumLeaves];
Training\ScoreTracker.cs (2)
175var actions = new Action[(int)Math.Ceiling(1.0 * Dataset.NumDocs / innerLoopSize)]; 202var actions = new Action[tree.NumLeaves];
Training\Test.cs (3)
541var actions = new Action[(int)Math.Ceiling(1.0 * Dataset.NumDocs / chunkSize)]; 619var actions = new Action[(int)Math.Ceiling(1.0 * binaryLabels.Length / chunkSize)]; 659var actions = new Action[(int)Math.Ceiling(1.0 * Dataset.NumDocs / chunkSize)];
Training\WinLossCalculator.cs (1)
53var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumQueries / chunkSize)];
TreeEnsemble\InternalRegressionTree.cs (3)
1382var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumDocs / innerLoopSize)]; 1407var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumDocs / innerLoopSize)]; 1430var actions = new Action[(int)Math.Ceiling(1.0 * docIndices.Length / innerLoopSize)];
TreeEnsemble\InternalTreeEnsemble.cs (1)
296var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumDocs / innerLoopSize)];
Utils\ThreadTaskManager.cs (5)
37private readonly Action[] _actions; 39public ThreadTask(int num, IEnumerable<Action> actions) 68public static IThreadTask MakeTask(IEnumerable<Action> subTasks) 81IEnumerable<Action> subTasks = 83.Select<int, Action>(arg => (() => subTaskAction(arg)));
Microsoft.ML.ImageAnalytics (8)
ImageGrayscale.cs (1)
162protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
ImageLoader.cs (3)
206protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 216private Delegate MakeGetterImageDataViewType(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 263private Delegate MakeGetterVectorDataViewByteType(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
ImagePixelExtractor.cs (2)
294protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 305private ValueGetter<VBuffer<TValue>> GetGetterCore<TValue>(DataViewRow input, int iinfo, out Action disposer)
ImageResizer.cs (1)
272protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
VectorToImageTransform.cs (1)
325protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.KMeansClustering (4)
KMeansPlusPlusTrainer.cs (4)
1383Action[] ops = new Action[set.Length]; 1722Action[] workArr = new Action[numCursors];
Microsoft.ML.LightGbm (1)
LightGbmRankingTrainer.cs (1)
272Action error =
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
597protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
615protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 641public override Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
569protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (2)
653public override Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 698protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.TestFramework (2)
DataPipe\TestDataPipeBase.cs (2)
40Action<Action> mustFail = (Action action) =>
Microsoft.ML.TestFrameworkCommon (1)
parent\parent\src\Common\tests\RetryHelper.cs (1)
24public static void Execute(Action test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null)
Microsoft.ML.Tests (2)
Scenarios\GetColumnTests.cs (2)
93private static Action<Action> GetMustFail() 95return (Action action) =>
Microsoft.ML.TimeSeries (17)
PredictionEngine.cs (2)
44Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer); 218IRowToRowMapper mapper, bool ignoreMissingColumns, SchemaDefinition outputSchemaDefinition, out Action disposer, out IRowReadableAs<TDst> outputRow)
SequentialAnomalyDetectionTransformBase.cs (2)
352public Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 380public Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer)
SequentialForecastingTransformBase.cs (2)
156public Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 221public Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer)
SequentialTransformerBase.cs (9)
613var getters = _mapper.CreateGetters(input, active, out Action disposer); 614var pingers = _mapper.CreatePinger(input, active, out Action pingerDisposer); 625private readonly Action _disposer; 635public RowImpl(ColumnBindings bindings, DataViewRow input, Delegate[] getters, Action<PingerArgument> pinger, Action disposer) 938var getters = _mapper.CreateGetters(input, pred, out Action disp); 939var pingers = _mapper.CreatePinger(input, pred, out Action pingerDisp); 949private readonly Action _disposer; 960DataViewSchema schema, Delegate[] getters, Action<PingerArgument> pinger, Action disposer) 1022private readonly Action _disposer;
SrCnnTransformBase.cs (2)
195public Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 223public Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.Tokenizers.Data.Tests (1)
parent\parent\src\Common\tests\RetryHelper.cs (1)
24public static void Execute(Action test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null)
Microsoft.ML.Tokenizers.Tests (1)
parent\parent\src\Common\tests\RetryHelper.cs (1)
24public static void Execute(Action test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null)
Microsoft.ML.TorchSharp (7)
AutoFormerV2\ObjectDetectionTrainer.cs (2)
790protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 876public override Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer)
NasBert\NasBertTrainer.cs (1)
566protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Roberta\QATrainer.cs (2)
761protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 827public override Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer)
TorchSharpBaseTrainer.cs (2)
485protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 490public override Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.Transforms (32)
CountFeatureSelection.cs (1)
385private readonly Action _fillBuffer;
CustomMappingFilter.cs (2)
105Action refresh = () => 173Action refresh = () =>
CustomMappingTransformer.cs (3)
130Delegate[] IRowMapper.CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 145Action refresh = () => 166private Delegate GetDstGetter<T>(DataViewRow input, int colIndex, Action refreshAction)
Dracula\CountTableTransformer.cs (1)
672protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
ExpressionTransformer.cs (1)
966protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
GcnTransform.cs (1)
360protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
HashJoiningTransform.cs (1)
466protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
KeyToVectorMapping.cs (1)
336protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
MissingValueDroppingTransformer.cs (1)
217protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
MissingValueIndicatorTransform.cs (1)
237protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
MissingValueIndicatorTransformer.cs (1)
235protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
MissingValueReplacing.cs (1)
622protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
OptionalColumnTransform.cs (1)
375protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disposer)
RandomFourierFeaturizing.cs (1)
502protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
StatefulCustomMappingTransformer.cs (4)
158protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disp) 172Action refresh = () => 195private Delegate GetDstGetter<T>(DataViewRow input, string colName, Action refreshAction) 291Action refresh = () =>
Text\LdaTransform.cs (1)
596protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\NgramHashingTransformer.cs (2)
235Action disp; 558protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\NgramTransform.cs (1)
670protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\StopWordsRemovingTransformer.cs (2)
402protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 1096protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\TextNormalizing.cs (1)
326protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\TokenizingByCharacters.cs (1)
464protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\WordBagTransform.cs (1)
300protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\WordEmbeddingsExtractor.cs (1)
543protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\WordTokenizing.cs (1)
234protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
855protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Microsoft.NET.Build.Tasks (2)
GenerateBundle.cs (1)
150public async System.Threading.Tasks.Task DoWithRetry(Action action)
ResolvePackageAssets.cs (1)
1209private void WriteItemGroup(Action writeItems)
Microsoft.NET.HostModel (1)
AppHost\RetryUtil.cs (1)
23public static void RetryOnIOError(Action func)
Microsoft.NET.ProjectData (2)
StringPool.cs (2)
29 private readonly Action? onGetOrAdd; 36 internal StringPool(Action? onGetOrAdd)
Microsoft.TemplateEngine.Abstractions (1)
TemplatePackage\ITemplatePackageProvider.cs (1)
14event Action? TemplatePackagesChanged;
Microsoft.TemplateEngine.Edge (4)
BuiltInManagedProvider\GlobalSettings.cs (1)
34public event Action? SettingsChanged;
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (1)
50public event Action? TemplatePackagesChanged;
BuiltInManagedProvider\IGlobalSettings.cs (1)
17event Action SettingsChanged;
Settings\TemplatePackageManager.cs (1)
42public event Action? TemplatePackagesChanged;
Microsoft.TemplateEngine.Utils (3)
DefaultTemplatePackageProvider.cs (1)
26public event Action? TemplatePackagesChanged;
InMemoryFileSystem.cs (2)
883private readonly Action _onDispose; 886public DisposingStream(Stream basis, Action onDispose)
Microsoft.TestPlatform.CoreUtilities (1)
Output\OutputExtensions.cs (1)
112private static void SetColorForAction(ConsoleColor foregroundColor, Action action)
Microsoft.TestPlatform.CrossPlatEngine (11)
Client\Parallel\ParallelOperationManager.cs (1)
241private static void DoManagerAction(Action action)
DataCollection\ProxyDataCollectionManager.cs (1)
283private static void InvokeDataCollectionServiceAction(Action action, ITestMessageEventHandler? runEventsHandler)
EventHandlers\TestRequestHandler.cs (8)
39private readonly JobQueue<Action> _jobQueue; 67JobQueue<Action> jobQueue, 95_jobQueue = new JobQueue<Action>( 399Action job = () => 427Action job = () => 456Action job = () => 483Action job = () => 518Action job = () =>
Execution\BaseRunTests.cs (1)
690private bool TryToRunInStaThread(Action action, bool waitForCompletion)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
InactivityTimer.cs (1)
18public InactivityTimer(Action timerCallback)
Microsoft.TestPlatform.PlatformAbstractions (2)
Interfaces\System\IThread.cs (1)
17void Run(Action? action, PlatformApartmentState apartmentState, bool waitForCompletion);
netcore\System\PlatformThread.cs (1)
17public void Run(Action? action, PlatformApartmentState apartmentState, bool waitForCompletion)
Microsoft.VisualStudio.TestPlatform.Common (3)
Logging\InternalTestLoggerEvents.cs (3)
35private readonly JobQueue<Action> _loggerEventQueue; 58_loggerEventQueue = new JobQueue<Action>( 348private void ProcessQueuedJob(Action? action)
Mono.Cecil.Pdb (1)
Mono.Cecil.Pdb\NativePdbWriter.cs (1)
338 void Write (CustomMetadataType type, Action write)
mscorlib (1)
parent\ref\mscorlib.cs (1)
29[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Action))]
netstandard (1)
netstandard.cs (1)
17[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Action))]
NuGet.Common (3)
ConcurrencyUtilities.cs (2)
139public static void ExecuteWithFileLocked(string filePath, Action action) 144internal static void ExecuteWithFileLocked(string filePath, Action action, Func<string, FileStream> acquireFileStream, int numberOfRetries)
StaticState.cs (1)
43public static event Action? BuildEnded;
NuGet.PackageManagement (4)
Utility\FileSystemUtility.cs (2)
507private static void DoSafeAction(Action action, INuGetProjectContext nuGetProjectContext) 519private static void Attempt(Action action, int retries = 3, int delayBeforeRetry = 150)
Utility\MSBuildNuGetProjectSystemUtility.cs (2)
478private static void PerformSafeAction(Action action, INuGetProjectContext nuGetProjectContext) 490private static void Attempt(Action action, int retries = 3, int delayBeforeRetry = 150)
PresentationCore (4)
System\Windows\Input\InputManager.cs (2)
759_synchronizedInputAsyncClearOperation = Dispatcher.BeginInvoke((Action)delegate 797_synchronizedInputAsyncClearOperation = Dispatcher.BeginInvoke((Action)delegate
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (2)
459internal void ExecuteWithPotentialLock(Action action) 483internal void ExecuteWithPotentialDispatcherDisable(Action action)
PresentationFramework (36)
MS\Internal\Data\DataBindEngine.cs (2)
495(Action)ProcessCrossThreadRequests); 558(Action)ProcessCrossThreadRequests);
MS\Internal\Data\ValueTable.cs (1)
70Action FetchAndCacheValue = () =>
MS\Internal\Data\ViewManager.cs (2)
387public void AccessCollection(IEnumerable collection, Action accessMethod, bool writeAccess) 667Action accessMethod,
System\Windows\Controls\DataGrid.cs (1)
4040Dispatcher.BeginInvoke((Action)delegate ()
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
295Dispatcher.Invoke((Action)delegate(){}, System.Windows.Threading.DispatcherPriority.Background);
System\Windows\Controls\DataGridTextColumn.cs (1)
280Dispatcher.Invoke((Action)delegate(){}, System.Windows.Threading.DispatcherPriority.Background);
System\Windows\Controls\DatePicker.cs (1)
349dp.Dispatcher.BeginInvoke(DispatcherPriority.Input, (Action)delegate()
System\Windows\Controls\VirtualizingStackPanel.cs (9)
798DispatcherOperation anchorOperation = Dispatcher.BeginInvoke(DispatcherPriority.Render, (Action)OnAnchorOperation); 867DispatcherOperation anchorOperation = Dispatcher.BeginInvoke(DispatcherPriority.Background, (Action)OnAnchorOperation); 1060DispatcherOperation anchorOperation = Dispatcher.BeginInvoke(DispatcherPriority.Render, (Action)OnAnchorOperation); 1421(Action)delegate() 1711Dispatcher.BeginInvoke(DispatcherPriority.Loaded, (Action)delegate() 4348Action measureCachesAction = null; 4350measureCachesAction = (Action)delegate() 4425(Action)ClearIsScrollActive); 4444(Action)ClearIsScrollActive);
System\Windows\Data\BindingListCollectionView.cs (6)
2414Dispatcher.BeginInvoke(DispatcherPriority.DataBind, (Action)RestoreLiveShaping); 2472private void DeferAction(Action action) 2476_deferredActions = new List<Action>(); 2486List<Action> deferredActions = _deferredActions; 2489foreach(Action action in deferredActions) 2548private List<Action> _deferredActions;
System\Windows\Data\BindingOperations.cs (1)
359Action accessMethod,
System\Windows\Data\CollectionSynchronizationCallback.cs (1)
40Action accessMethod,
System\Windows\Data\ListCollectionView.cs (6)
3246Dispatcher.BeginInvoke(DispatcherPriority.DataBind, (Action)RestoreLiveShaping); 3270private void DeferAction(Action action) 3274_deferredActions = new List<Action>(); 3284List<Action> deferredActions = _deferredActions; 3287foreach(Action action in deferredActions) 3323private List<Action> _deferredActions;
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (1)
496_cleanupOperation = dispatcher.BeginInvoke(DispatcherPriority.Background, (Action)DoCleanup);
System\Windows\Documents\MsSpellCheckLib\Utils\RetryHelper.cs (3)
29internal delegate bool RetryActionPreamble(out Action action); 48Action action, 104Action action,
Roslyn.Diagnostics.Analyzers (17)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified 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); 384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action> 386protected override Action Bind()
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (3)
36static continuation => ((Action)continuation!)(); 52public void OnCompleted(Action continuation) 66public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\TaskExtensions.cs (2)
104public void OnCompleted(Action continuation) 114public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (4)
135public void OnCompleted(Action continuation) 145public void UnsafeOnCompleted(Action continuation) 235public void OnCompleted(Action continuation) 245public void UnsafeOnCompleted(Action continuation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (2)
70private sealed class Registration(Action unregister) : IDisposable 72private Action? _unregister = unregister;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
139=> compilation.GetTypeByMetadataName(typeof(Action).FullName!);
rzc (1)
ShadowCopyManager.cs (1)
78return Task.Run((Action)PurgeUnusedDirectories);
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
249public static void Run(Action asyncMethod)
System.ComponentModel.Composition (24)
System\ComponentModel\Composition\ExportFactoryOfT.cs (3)
8private readonly Func<Tuple<T, Action>> _exportLifetimeContextCreator; 10public ExportFactory(Func<Tuple<T, Action>> exportLifetimeContextCreator) 19Tuple<T, Action> untypedLifetimeContext = _exportLifetimeContextCreator.Invoke();
System\ComponentModel\Composition\ExportFactoryOfTTMetadata.cs (1)
10public ExportFactory(Func<Tuple<T, Action>> exportLifetimeContextCreator, TMetadata metadata)
System\ComponentModel\Composition\ExportLifetimeContextOfT.cs (2)
9private readonly Action _disposeAction; 11public ExportLifetimeContext(T value, Action disposeAction)
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (10)
40private List<Action>? _completeActionList; 41private List<Action>? _revertActionList; 88public void AddCompleteAction(Action completeAction) 96_completeActionList ??= new List<Action>(); 100public void AddRevertAction(Action revertAction) 108_revertActionList ??= new List<Action>(); 154Action action = _revertActionList[i]; 189foreach (Action action in _completeActionList) 230foreach (Action action in _completeActionList) 238foreach (Action action in _revertActionList)
System\ComponentModel\Composition\Hosting\AtomicCompositionExtensions.cs (2)
27internal static void AddRevertActionAllowNull(this AtomicComposition? atomicComposition, Action action) 41internal static void AddCompleteActionAllowNull(this AtomicComposition? atomicComposition, Action action)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
561internal static CompositionResult TryInvoke(Action action)
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.cs (2)
49Func<Tuple<T, Action>> exportLifetimeContextCreator = () => LifetimeContext.GetExportLifetimeContextFromExport<T>(export); 62Func<Tuple<T, Action>> exportLifetimeContextCreator = () => LifetimeContext.GetExportLifetimeContextFromExport<T>(export);
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.LifetimeContext.cs (3)
14public static Tuple<T, Action> GetExportLifetimeContextFromExport<T>(Export export) 17Action disposeAction; 57return new Tuple<T, Action>(exportedValue, disposeAction);
System.Composition.Hosting (10)
System\Composition\Hosting\Core\CompositionOperation.cs (8)
16private List<Action> _nonPrerequisiteActions; 17private List<Action> _postCompositionActions; 49public void AddNonPrerequisiteAction(Action action) 53_nonPrerequisiteActions ??= new List<Action>(); 63public void AddPostCompositionAction(Action action) 67_postCompositionActions ??= new List<Action>(); 95foreach (var action in _postCompositionActions) 107foreach (var action in currentActions)
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (1)
54return Tuple.Create<TProduct, Action>((TProduct)CompositionOperation.Run(lifetimeContext, da), lifetimeContext.Dispose);
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (1)
58return Tuple.Create<TProduct, Action>((TProduct)CompositionOperation.Run(lifetimeContext, dsc.Activator), lifetimeContext.Dispose);
System.Composition.Runtime (6)
System\Composition\ExportFactoryOfT.cs (3)
12private readonly Func<Tuple<T, Action>> _exportLifetimeContextCreator; 18public ExportFactory(Func<Tuple<T, Action>> exportCreator) 29Tuple<T, Action> untypedLifetimeContext = _exportLifetimeContextCreator.Invoke();
System\Composition\ExportFactoryOfTTMetadata.cs (1)
18public ExportFactory(Func<Tuple<T, Action>> exportCreator, TMetadata metadata)
System\Composition\ExportOfT.cs (2)
13private readonly Action _disposeAction; 20public Export(T value, Action disposeAction)
System.Core (1)
System.Core.cs (1)
11[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Action))]
System.Diagnostics.DiagnosticSource (6)
System\Diagnostics\Metrics\AggregationManager.cs (6)
43private readonly Action _initialInstrumentEnumerationComplete; 45private readonly Action _timeSeriesLimitReached; 46private readonly Action _histogramLimitReached; 62Action initialInstrumentEnumerationComplete, 64Action timeSeriesLimitReached, 65Action histogramLimitReached,
System.Linq.Expressions (4)
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
238return typeof(Action);
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
219private readonly Action _target; 226_target = (Action)target.CreateDelegate(typeof(Action));
System.Net.Http.WinHttpHandler (7)
src\runtime\src\libraries\Common\src\System\Threading\Tasks\RendezvousAwaitable.cs (7)
18private static readonly Action s_completionSentinel = static () => Debug.Fail("Completion sentinel should never be invoked"); 24private Action? _continuation; 44Action? c = Volatile.Read(ref _continuation); 106Action? c = _continuation ?? Interlocked.CompareExchange(ref _continuation, s_completionSentinel, null); 123public void OnCompleted(Action continuation) 127Action? c = _continuation ?? Interlocked.CompareExchange(ref _continuation, continuation, null); 136public void UnsafeOnCompleted(Action continuation) => OnCompleted(continuation);
System.Net.NameResolution (2)
System\Net\DnsSocket.cs (2)
63private readonly Action _dispose; 123_dispose = reflection.DisposeMethod.CreateDelegate<Action>(socket);
System.Private.CoreLib (98)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (4)
227public delegate*<Continuation, int, Action, void> AwaiterContinuation; 767private Action GetContinuationAction() 770Debug.Assert(action is Action); 771return Unsafe.As<Action>(action);
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.RuntimeAsyncYielder.cs (2)
16public void OnCompleted(Action continuation) => throw new NotSupportedException(); 18public void UnsafeOnCompleted(Action continuation)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeAsyncTaskContinuation.cs (1)
98TaskSchedulerAwaitTaskContinuation.RunOrScheduleAction((Action)RuntimeAsyncTask.m_action!, sched, capturedContext: null, allowInlining: canInline);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (2)
54Continuation headContinuation, int offset, Action continuation) 111Continuation headContinuation, int offset, Action continuation)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (11)
111internal static Action CreateContinuationWrapper(Action continuation, Action<Action, Task> invokeAction, Task innerTask) => 116internal static Action TryGetStateMachineForDebugger(Action action) // debugger depends on this exact name/signature 125internal static Task? TryGetContinuationTask(Action continuation) => 130internal static IAsyncStateMachineBox? TryGetStateMachineBox(Action continuation) 154private readonly Action<Action, Task> _invokeAction; // This wrapper is an action that wraps another action, this is that Action. 155internal readonly Action _continuation; // This is continuation which will happen after m_invokeAction (and is probably a ContinuationWrapper). SOS DumpAsync command depends on this name. 158internal ContinuationWrapper(Action continuation, Action<Action, Task> invokeAction, Task innerTask)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.cs (1)
1746if (continuationObject is Action action)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncStateMachineDispatcher.cs (2)
324public Action MoveNextAction => (Action)(m_action ??= new Action(MoveNext));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (2)
465public Action MoveNextAction => (Action)(m_action ??= new Action(MoveNext));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConfiguredValueTaskAwaitable.cs (4)
52public void OnCompleted(Action continuation) 74public void UnsafeOnCompleted(Action continuation) 165public void OnCompleted(Action continuation) 187public void UnsafeOnCompleted(Action continuation)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\IAsyncStateMachineBox.cs (1)
18Action MoveNextAction { get; }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\INotifyCompletion.cs (2)
21void OnCompleted(Action continuation); 33void UnsafeOnCompleted(Action continuation);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs (2)
249protected Action? _moveNextAction; 425public Action MoveNextAction => _moveNextAction ??= new Action(MoveNext);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (11)
46public void OnCompleted(Action continuation) 56public void UnsafeOnCompleted(Action continuation) 174internal static void OnCompletedInternal(Task task, Action continuation, bool continueOnCapturedContext, bool flowExecutionContext) 243private static Action OutputWaitEtwEvents(Task task, Action continuation) 340public void OnCompleted(Action continuation) 350public void UnsafeOnCompleted(Action continuation) 438public void OnCompleted(Action continuation) 448public void UnsafeOnCompleted(Action continuation) 520public void OnCompleted(Action continuation) 530public void UnsafeOnCompleted(Action continuation)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ValueTaskAwaiter.cs (6)
14/// <summary>Shim used to invoke an <see cref="Action"/> passed as the state argument to a <see cref="Action{Object}"/>.</summary> 17if (state is Action action) 47public void OnCompleted(Action continuation) 67public void UnsafeOnCompleted(Action continuation) 137public void OnCompleted(Action continuation) 157public void UnsafeOnCompleted(Action continuation)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (6)
56public void OnCompleted(Action continuation) 64public void UnsafeOnCompleted(Action continuation) 73private static void QueueContinuation(Action continuation, bool flowContext) 157private static Action OutputCorrelationEtwEvent(Action continuation) 197private static void RunAction(object? state) { ((Action)state!)(); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (3)
133public CancellationTokenRegistration Register(Action callback) => Register(callback, useSynchronizationContext: false); 157public CancellationTokenRegistration Register(Action callback, bool useSynchronizationContext) 161(Action<object?>)(static obj => ((Action)obj!)()),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (2)
32private readonly Action _onWait; 68public LowLevelLifoSemaphore(Action onWait)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (12)
500public Task(Action action) 515public Task(Action action, CancellationToken cancellationToken) 535public Task(Action action, TaskCreationOptions creationOptions) 559public Task(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions) 2548if (m_action is Action action) 2639Action continuationAction, bool continueOnCapturedContext, bool flowExecutionContext) 3651case Action action: 3731case Action action: 3770case Action action: 5692public static Task Run(Action action) 5710public static Task Run(Action action, CancellationToken cancellationToken) 7251if (continuationObject is Action singleAction)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskAsyncEnumerableExtensions.ToBlockingEnumerable.cs (1)
74private readonly Action _onCompleted;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (15)
369Debug.Assert(state is Action); 370((Action)state)(); 382SynchronizationContext context, Action action, bool flowExecutionContext) : 432private static Action GetActionLogDelegate(int continuationId, Action action) 463TaskScheduler scheduler, Action action, bool flowExecutionContext) : 491internal static void RunOrScheduleAction(Action action, TaskScheduler scheduler, ExecutionContext? capturedContext, bool allowInlining) 511((Action)state!)(); 538protected readonly Action m_action; 545internal AwaitTaskContinuation(Action action, bool flowExecutionContext) 683Debug.Assert(state is Action); 684((Action)state)(); 686private static readonly Action<Action> s_invokeAction = (action) => action(); 741internal static void RunOrScheduleAction(Action action, bool allowInlining) 831internal static void UnsafeScheduleAction(Action action, Task? task)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (4)
276public Task StartNew(Action action) 301public Task StartNew(Action action, CancellationToken cancellationToken) 329public Task StartNew(Action action, TaskCreationOptions creationOptions) 368public Task StartNew(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
System\GC.NativeAot.cs (3)
314public GCHandle<Action> action; 317public static unsafe void RegisterNoGCRegionCallback(long totalSize, Action callback) 326pWorkItem->action = new GCHandle<Action>(callback);
System\Runtime\ControlledExecution.NativeAot.cs (1)
11public static void Run(Action action, CancellationToken cancellationToken)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
10[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Action))]
System.Runtime.InteropServices.JavaScript (3)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Func.cs (3)
165public void ToManaged(out Action? value) 511public unsafe void ToJS(Action value) 513Action cpy = value;
System.Security.Principal.Windows (2)
System\Security\Principal\WindowsIdentity.cs (2)
692public static void RunImpersonated(SafeAccessTokenHandle safeAccessTokenHandle, Action action) 751private static void RunImpersonatedInternal(SafeAccessTokenHandle token, Action action)
System.ServiceModel.Federation (2)
System\Runtime\OperationWithTimeoutAsyncResult.cs (2)
62private Action _beforePrepareAsyncCompletionAction; 257protected void SetBeforePrepareAsyncCompletionAction(Action beforePrepareAsyncCompletionAction)
System.ServiceModel.Primitives (24)
Internals\System\Runtime\AsyncResult.cs (2)
20private Action _beforePrepareAsyncCompletionAction; 219protected void SetBeforePrepareAsyncCompletionAction(Action beforePrepareAsyncCompletionAction)
Internals\System\Runtime\InputQueue.cs (13)
374public void EnqueueAndDispatch(T item, Action dequeuedCallback) 379public void EnqueueAndDispatch(Exception exception, Action dequeuedCallback, bool canDispatchOnThisThread) 385public void EnqueueAndDispatch(T item, Action dequeuedCallback, bool canDispatchOnThisThread) 391public bool EnqueueWithoutDispatch(T item, Action dequeuedCallback) 397public bool EnqueueWithoutDispatch(Exception exception, Action dequeuedCallback) 648private static void InvokeDequeuedCallback(Action dequeuedCallback) 656private static void InvokeDequeuedCallbackLater(Action dequeuedCallback) 678Action dequeuedCallback = (Action)state; 854public Item(T value, Action dequeuedCallback) 859public Item(Exception exception, Action dequeuedCallback) 864private Item(T value, Exception exception, Action dequeuedCallback) 871public Action DequeuedCallback { get; }
Internals\System\Runtime\IOThreadScheduler.cs (1)
439private readonly Action _postDelegate;
Internals\System\Runtime\TaskHelpers.cs (1)
450public void OnCompleted(Action continuation)
System\ServiceModel\Channels\DeliveryStrategy.cs (1)
28public Action DequeueCallback { get; set; }
System\ServiceModel\Channels\InputQueueChannel.cs (5)
37public void EnqueueAndDispatch(TDisposable item, Action dequeuedCallback, bool canDispatchOnThisThread) 45public void EnqueueAndDispatch(Exception exception, Action dequeuedCallback, bool canDispatchOnThisThread) 51public void EnqueueAndDispatch(TDisposable item, Action dequeuedCallback) 59public bool EnqueueWithoutDispatch(Exception exception, Action dequeuedCallback) 65public bool EnqueueWithoutDispatch(TDisposable item, Action dequeuedCallback)
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
1058private Action _messageDequeuedCallback;
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCompiler.cs (1)
5639void EmitStackPush(Action load)
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\TimerAwaitable.cs (5)
16private Action? _callback; 17private static readonly Action _callbackCompleted = () => { }; 89Action? continuation = Interlocked.Exchange(ref _callback, _callbackCompleted); 93public void OnCompleted(Action continuation) 102public void UnsafeOnCompleted(Action continuation)
System.Threading.Tasks.Dataflow (10)
Blocks\BatchedJoinBlock.cs (8)
73Action createBatchAction = () => 321Action createBatchAction = () => 673Action batchSizeReachedAction, Action allTargetsDecliningAction, 674Action<Exception> exceptionAction, Action completionAction) 726internal readonly Action _batchSizeReachedAction; 728internal readonly Action _allTargetsDecliningPermanentlyAction; 732internal readonly Action _completionAction;
Blocks\JoinBlock.cs (2)
1025Action joinFilledAction, Action<Exception> exceptionAction, 1052internal readonly Action _joinFilledAction;
System.Threading.Tasks.Parallel (6)
System\Threading\Tasks\Parallel.cs (6)
146/// <param name="actions">An array of <see cref="System.Action">Actions</see> to execute.</param> 160public static void Invoke(params Action[] actions) 170/// <param name="actions">An array of <see cref="System.Action">Actions</see> to execute.</param> 193public static void Invoke(ParallelOptions parallelOptions, params Action[] actions) 208Action[] actionsCopy = new Action[actions.Length];
System.Transactions.Local (1)
System\Transactions\DtcProxyShim\OletxHelper.cs (1)
33internal static void Retry(Action action)
System.Windows.Controls.Ribbon (16)
Microsoft\Windows\Controls\KeyTipService.cs (3)
976(Action)delegate() 1195(Action)delegate() 1449(Action)delegate()
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
99(Action)delegate()
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
245Dispatcher.BeginInvoke((Action)delegate()
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1724(Action)delegate()
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
879Dispatcher.BeginInvoke((Action)delegate() 1228(Action)delegate()
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (2)
143(Action)delegate() 214(Action)delegate()
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (5)
1182(Action)delegate() 1290(Action)delegate() 1341(Action)delegate() 2872(Action)delegate() 2889submenuScrollViewer?.Dispatcher.BeginInvoke((Action)delegate ()
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
1002(Action)delegate()
System.Windows.Forms (11)
System\Windows\Forms\Application.MarshallingControl.cs (1)
12/// on the correct thread via <see cref="Control.Invoke(Action)"/>.
System\Windows\Forms\Control_InvokeAsync.cs (3)
50public async Task InvokeAsync(Action callback, CancellationToken cancellationToken = default) 253/// For synchronous operations, use <see cref="InvokeAsync(Action, CancellationToken)"/> or 358/// For synchronous operations, use <see cref="InvokeAsync(Action, CancellationToken)"/> or
System\Windows\Forms\Control.cs (5)
4571/// An <see cref="IAsyncResult"/> that represents the result of the <see cref="BeginInvoke(Action)"/> operation. 4574public IAsyncResult BeginInvoke(Action method) => BeginInvoke(method, null); 6257public void Invoke(Action method) 6398else if (tme._method is Action action) 8868BeginInvoke((Action)ProcessSystemVisualSettingsChange);
System\Windows\Forms\Rendering\Animation\AnimatedFocusIndicatorRenderer.cs (2)
17private readonly Action _invalidate; 23public AnimatedFocusIndicatorRenderer(Control control, Action invalidate)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\CommandSet.cs (1)
403internal static bool ExecuteSafely(Action action, bool throwOnException)
System.Windows.Forms.Primitives (3)
Windows\Win32\PInvoke.SendMessageCallback.cs (3)
14Action callback, 29Action action = (Action)gcHandle.Target!;
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\InertiaParameters2D.cs (1)
27internal void ProtectedChangeProperty(Func<bool> isEqual, Action setNewValue, string paramName)
System.Windows.Presentation (6)
System\Windows\Threading\DispatcherExtensions.cs (6)
28public static DispatcherOperation BeginInvoke(this Dispatcher dispatcher, Action action) 55public static DispatcherOperation BeginInvoke(this Dispatcher dispatcher, Action action, DispatcherPriority priority) 74public static void Invoke(this Dispatcher dispatcher, Action action) 97public static void Invoke(this Dispatcher dispatcher, Action action, DispatcherPriority priority) 119public static void Invoke(this Dispatcher dispatcher, Action action, TimeSpan timeout) 145public static void Invoke(this Dispatcher dispatcher, Action action, TimeSpan timeout, DispatcherPriority priority)
UnitTests.Common (25)
IMockCommunicationObject.cs (6)
17Action OnAbortOverride { get; set; } 25Action OnOpeningOverride { get; set; } 26Action OnOpenedOverride { get; set; } 27Action OnClosingOverride { get; set; } 28Action OnClosedOverride { get; set; } 29Action OnFaultedOverride { get; set; }
MockChannelBase.cs (6)
57public Action OnAbortOverride { get; set; } 66public Action OnOpeningOverride { get; set; } 67public Action OnOpenedOverride { get; set; } 68public Action OnClosingOverride { get; set; } 69public Action OnClosedOverride { get; set; } 70public Action OnFaultedOverride { get; set; }
MockChannelFactory.cs (6)
56public Action OnAbortOverride { get; set; } 65public Action OnOpeningOverride { get; set; } 66public Action OnOpenedOverride { get; set; } 67public Action OnClosingOverride { get; set; } 68public Action OnClosedOverride { get; set; } 69public Action OnFaultedOverride { get; set; }
MockCommunicationObject.cs (6)
52public Action OnAbortOverride { get; set; } 61public Action OnOpeningOverride { get; set; } 62public Action OnOpenedOverride { get; set; } 63public Action OnClosingOverride { get; set; } 64public Action OnClosedOverride { get; set; } 65public Action OnFaultedOverride { get; set; }
TestTypes.cs (1)
317public static void Run(Action asyncMethod)