1713 references to Action
aspire (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Cli.Tests (4)
Aspire.Components.Common.TestUtilities (1)
Aspire.Confluent.Kafka (34)
AspireKafkaConsumerExtensions.cs (17)
25/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
29/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
33/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
37/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
38public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
41/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
53public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaConsumerSettings>? configureSettings, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
56/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
64/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
72/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
80/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
81public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
88/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
104public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaConsumerSettings>? configureSettings, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
114Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder,
201private static InstrumentedConsumerBuilder<TKey, TValue> CreateConsumerBuilder<TKey, TValue>(IServiceProvider serviceProvider, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder, KafkaConsumerSettings settings)
271private static Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? Wrap<TKey, TValue>(Action<ConsumerBuilder<TKey, TValue>>? action)
AspireKafkaProducerExtensions.cs (17)
25/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
29/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
33/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
37/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
38public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
41/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
53public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaProducerSettings>? configureSettings, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
56/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
64/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
72/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
80/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
81public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
88/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
104public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaProducerSettings>? configureSettings, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
114Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder,
201private static InstrumentedProducerBuilder<TKey, TValue> CreateProducerBuilder<TKey, TValue>(IServiceProvider serviceProvider, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder, KafkaProducerSettings settings)
272private static Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? Wrap<TKey, TValue>(Action<ProducerBuilder<TKey, TValue>>? action)
Aspire.Confluent.Kafka.Tests (8)
ConfluentKafkaPublicApiTests.cs (8)
25Action<IServiceProvider, ConsumerBuilder<string, string>>? configureBuilderWithServiceProvider = null;
61Action<IServiceProvider, ConsumerBuilder<string, string>>? configureBuilderWithServiceProvider = null;
93Action<IServiceProvider, ConsumerBuilder<string, string>>? configureBuilderWithServiceProvider = null;
129Action<IServiceProvider, ConsumerBuilder<string, string>>? configureBuilderWithServiceProvider = null;
161Action<IServiceProvider, ProducerBuilder<string, string>>? configureBuilderWithServiceProvider = null;
197Action<IServiceProvider, ProducerBuilder<string, string>>? configureBuilderWithServiceProvider = null;
229Action<IServiceProvider, ProducerBuilder<string, string>>? configureBuilderWithServiceProvider = null;
265Action<IServiceProvider, ProducerBuilder<string, string>>? configureBuilderWithServiceProvider = null;
Aspire.Dashboard (5)
Aspire.Dashboard.Components.Tests (4)
Aspire.Dashboard.Tests (5)
Aspire.Hosting (3)
Aspire.Hosting.Azure.AppContainers (12)
ContainerAppExtensions.cs (5)
29/// in conjunction with the <see cref="AzureContainerAppContainerExtensions.PublishAsAzureContainerApp{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerApp})"/>
43/// method via the <see cref="AzureContainerAppContainerExtensions.PublishAsAzureContainerApp{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerApp})"/>
156public static IResourceBuilder<T> PublishAsAzureContainerAppJob<T>(this IResourceBuilder<T> resource, Action<AzureResourceInfrastructure, ContainerAppJob> configure)
215/// This method is a convenience wrapper around <see cref="PublishAsAzureContainerAppJob{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerAppJob})"/>
228public static IResourceBuilder<T> PublishAsScheduledAzureContainerAppJob<T>(this IResourceBuilder<T> resource, string cronExpression, Action<AzureResourceInfrastructure, ContainerAppJob>? configure = null)
Aspire.Hosting.Azure.AppService (6)
Aspire.Hosting.Azure.Tests (7)
PublicApiTests\AppContainersPublicApiTests.cs (7)
17Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { };
30Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
41Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
53Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { };
66Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
94Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { };
107Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (3)
Aspire.Hosting.Testing (14)
DistributedApplicationTestingBuilder.cs (7)
94public static Task<IDistributedApplicationTestingBuilder> CreateAsync<TEntryPoint>(string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder, CancellationToken cancellationToken = default)
108public static async Task<IDistributedApplicationTestingBuilder> CreateAsync(Type entryPoint, string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder, CancellationToken cancellationToken = default)
136public static IDistributedApplicationTestingBuilder Create(string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder)
155Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder,
181private sealed class SuspendingDistributedApplicationFactory(Type entryPoint, string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder)
326Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder,
335Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder,
Aspire.Hosting.Testing.Tests (14)
TestingPublicApiTests.cs (10)
291Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { };
303Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = null!;
317Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { };
336Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { };
349Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { };
362Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = null!;
377Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { };
425Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { };
437Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = null!;
451Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { };
Aspire.Hosting.Yarp.Tests (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.MongoDB.EntityFrameworkCore (1)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Oracle.EntityFrameworkCore (1)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
Aspire.StackExchange.Redis (2)
Aspire.StackExchange.Redis.DistributedCaching (1)
Aspire.StackExchange.Redis.OutputCaching (1)
csc (1)
dotnet-svcutil-lib (7)
GenerateDocumentationAndConfigFiles (21)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
illink (1)
ILLink.RoslynAnalyzer (1)
InMemory.FunctionalTests (3)
Interop.FunctionalTests (2)
Metrics (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Metrics.Legacy (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.Analyzers.Extra (21)
Microsoft.Analyzers.Local (22)
CallAnalysis\CallAnalyzer.Registrar.cs (11)
33public void RegisterMethod(IMethodSymbol method, Action<OperationAnalysisContext, IInvocationOperation> action)
50public void RegisterMethods(string typeName, string methodName, Action<OperationAnalysisContext, IInvocationOperation> action)
66public void RegisterMethods(Dictionary<string, string[]> methods, Action<OperationAnalysisContext, IInvocationOperation> action)
87public void RegisterConstructor(IMethodSymbol ctor, Action<OperationAnalysisContext, IObjectCreationOperation> action)
101public void RegisterConstructors(string typeName, Action<OperationAnalysisContext, IObjectCreationOperation> action)
109public void RegisterConstructors(string[] typeNames, Action<OperationAnalysisContext, IObjectCreationOperation> action)
127public void RegisterProperty(IPropertySymbol prop, Action<OperationAnalysisContext, IPropertyReferenceOperation> action)
144public void RegisterProperties(Dictionary<string, string[]> props, Action<OperationAnalysisContext, IPropertyReferenceOperation> action)
165public void RegisterInterfaceMethod(IMethodSymbol method, Action<OperationAnalysisContext, IInvocationOperation> action)
200public void RegisterInterfaceMethods(Dictionary<string, string[]> methods, Action<OperationAnalysisContext, IInvocationOperation> action)
221public void RegisterExceptionTypes(string[] exceptionTypes, Action<OperationAnalysisContext, IThrowOperation> action)
Microsoft.AspNetCore (16)
Microsoft.AspNetCore.Components (11)
Microsoft.AspNetCore.Components.Endpoints (9)
src\Shared\PropertyHelper\PropertyHelper.cs (7)
45private Action<object, object?>? _valueSetter;
83public Action<object, object?> ValueSetter
272public static Action<object, object?> MakeFastPropertySetter(PropertyInfo propertyInfo)
295setMethod.CreateDelegate(typeof(Action<,>).MakeGenericType(typeInput, parameterType));
300typeof(Action<object, object?>), propertySetterAsAction);
302return (Action<object, object?>)callPropertySetterDelegate;
387Action<TDeclaringType, TValue> setter,
Microsoft.AspNetCore.Components.Tests (10)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebView.Photino (1)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Grpc.Swagger (1)
Microsoft.AspNetCore.HostFiltering.Tests (2)
Microsoft.AspNetCore.Hosting (21)
Microsoft.AspNetCore.Hosting.Abstractions (2)
Microsoft.AspNetCore.Hosting.Tests (4)
Microsoft.AspNetCore.Http.Abstractions (7)
src\Shared\PropertyHelper\PropertyHelper.cs (7)
45private Action<object, object?>? _valueSetter;
83public Action<object, object?> ValueSetter
272public static Action<object, object?> MakeFastPropertySetter(PropertyInfo propertyInfo)
295setMethod.CreateDelegate(typeof(Action<,>).MakeGenericType(typeInput, parameterType));
300typeof(Action<object, object?>), propertySetterAsAction);
302return (Action<object, object?>)callPropertySetterDelegate;
387Action<TDeclaringType, TValue> setter,
Microsoft.AspNetCore.Http.Extensions (18)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (9)
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)
111var underlyingMethodToUse = _unsafeOnCompletedMethod ?? _onCompletedMethod;
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Localization (1)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (40)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (9)
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)
111var underlyingMethodToUse = _unsafeOnCompletedMethod ?? _onCompletedMethod;
src\Shared\PropertyHelper\PropertyHelper.cs (7)
45private Action<object, object?>? _valueSetter;
83public Action<object, object?> ValueSetter
272public static Action<object, object?> MakeFastPropertySetter(PropertyInfo propertyInfo)
295setMethod.CreateDelegate(typeof(Action<,>).MakeGenericType(typeInput, parameterType));
300typeof(Action<object, object?>), propertySetterAsAction);
302return (Action<object, object?>)callPropertySetterDelegate;
387Action<TDeclaringType, TValue> setter,
Microsoft.AspNetCore.Mvc.Core.Test (10)
Microsoft.AspNetCore.Mvc.Razor (5)
Microsoft.AspNetCore.Mvc.RazorPages (10)
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
Microsoft.AspNetCore.Mvc.Testing (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.OpenApi (17)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (9)
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)
111var underlyingMethodToUse = _unsafeOnCompletedMethod ?? _onCompletedMethod;
Microsoft.AspNetCore.Owin (17)
OwinEnvironment.cs (7)
262public FeatureMap(Type featureInterface, Func<object, object> getter, Action<object, object> setter)
274public FeatureMap(Type featureInterface, Func<object, object> getter, Func<object> defaultFactory, Action<object, object> setter)
287public FeatureMap(Type featureInterface, Func<object, object> getter, Func<object> defaultFactory, Action<object, object> setter, Func<object> featureFactory)
298private Action<object, object> Setter { get; set; }
375public FeatureMap(Func<TFeature, object> getter, Action<TFeature, object> setter)
386public FeatureMap(Func<TFeature, object> getter, Func<object> defaultFactory, Action<TFeature, object> setter)
398public FeatureMap(Func<TFeature, object> getter, Func<object> defaultFactory, Action<TFeature, object> setter, Func<TFeature> featureFactory)
WebSockets\WebSocketAcceptAdapter.cs (1)
11Action
Microsoft.AspNetCore.Routing (7)
src\Shared\PropertyHelper\PropertyHelper.cs (7)
45private Action<object, object?>? _valueSetter;
83public Action<object, object?> ValueSetter
272public static Action<object, object?> MakeFastPropertySetter(PropertyInfo propertyInfo)
295setMethod.CreateDelegate(typeof(Action<,>).MakeGenericType(typeInput, parameterType));
300typeof(Action<object, object?>), propertySetterAsAction);
302return (Action<object, object?>)callPropertySetterDelegate;
387Action<TDeclaringType, TValue> setter,
Microsoft.AspNetCore.Routing.Abstractions (7)
src\Shared\PropertyHelper\PropertyHelper.cs (7)
45private Action<object, object?>? _valueSetter;
83public Action<object, object?> ValueSetter
272public static Action<object, object?> MakeFastPropertySetter(PropertyInfo propertyInfo)
295setMethod.CreateDelegate(typeof(Action<,>).MakeGenericType(typeInput, parameterType));
300typeof(Action<object, object?>), propertySetterAsAction);
302return (Action<object, object?>)callPropertySetterDelegate;
387Action<TDeclaringType, TValue> setter,
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (17)
Microsoft.AspNetCore.Server.Kestrel (2)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Shared.Tests (28)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (9)
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)
111var underlyingMethodToUse = _unsafeOnCompletedMethod ?? _onCompletedMethod;
src\Shared\PropertyHelper\PropertyHelper.cs (7)
45private Action<object, object?>? _valueSetter;
83public Action<object, object?> ValueSetter
272public static Action<object, object?> MakeFastPropertySetter(PropertyInfo propertyInfo)
295setMethod.CreateDelegate(typeof(Action<,>).MakeGenericType(typeInput, parameterType));
300typeof(Action<object, object?>), propertySetterAsAction);
302return (Action<object, object?>)callPropertySetterDelegate;
387Action<TDeclaringType, TValue> setter,
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Client.Tests (2)
Microsoft.AspNetCore.SignalR.Core (19)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (9)
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)
111var underlyingMethodToUse = _unsafeOnCompletedMethod ?? _onCompletedMethod;
src\SignalR\common\Shared\ClientResultsManager.cs (3)
16private readonly ConcurrentDictionary<string, (Type Type, string ConnectionId, object Tcs, Action<object, CompletionMessage> Complete)> _pendingInvocations = new();
41public void AddInvocation(string invocationId, (Type Type, string ConnectionId, object Tcs, Action<object, CompletionMessage> Complete) invocationInfo)
75public (Type Type, string ConnectionId, object Tcs, Action<object, CompletionMessage> Completion)? RemoveInvocation(string invocationId)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
src\SignalR\common\Shared\ClientResultsManager.cs (3)
16private readonly ConcurrentDictionary<string, (Type Type, string ConnectionId, object Tcs, Action<object, CompletionMessage> Complete)> _pendingInvocations = new();
41public void AddInvocation(string invocationId, (Type Type, string ConnectionId, object Tcs, Action<object, CompletionMessage> Complete) invocationInfo)
75public (Type Type, string ConnectionId, object Tcs, Action<object, CompletionMessage> Completion)? RemoveInvocation(string invocationId)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (9)
TestConnectionMultiplexer.cs (8)
239private readonly ConcurrentDictionary<RedisChannel, List<(int, Action<RedisChannel, RedisValue>)>> _subscriptions =
240new ConcurrentDictionary<RedisChannel, List<(int, Action<RedisChannel, RedisValue>)>>();
264Action<RedisChannel, RedisValue> handler = (channel, value) =>
272_subscriptions.AddOrUpdate(messageQueue.Channel, _ => new List<(int, Action<RedisChannel, RedisValue>)> { (subscriberId, handler) }, (_, list) =>
357public void Subscribe(RedisChannel channel, Action<RedisChannel, RedisValue> handler, CommandFlags flags = CommandFlags.None)
362public Task SubscribeAsync(RedisChannel channel, Action<RedisChannel, RedisValue> handler, CommandFlags flags = CommandFlags.None)
380public void Unsubscribe(RedisChannel channel, Action<RedisChannel, RedisValue> handler = null, CommandFlags flags = CommandFlags.None)
397public Task UnsubscribeAsync(RedisChannel channel, Action<RedisChannel, RedisValue> handler = null, CommandFlags flags = CommandFlags.None)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
Microsoft.CodeAnalysis (31)
SourceGeneration\IncrementalContexts.cs (9)
101public void RegisterSourceOutput<TSource>(IncrementalValueProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action, IncrementalGeneratorOutputKind.Source, _sourceExtension);
110public void RegisterSourceOutput<TSource>(IncrementalValuesProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action, IncrementalGeneratorOutputKind.Source, _sourceExtension);
120public void RegisterImplementationSourceOutput<TSource>(IncrementalValueProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action, IncrementalGeneratorOutputKind.Implementation, _sourceExtension);
130public void RegisterImplementationSourceOutput<TSource>(IncrementalValuesProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action, IncrementalGeneratorOutputKind.Implementation, _sourceExtension);
151public void RegisterHostOutput<TSource>(IncrementalValueProvider<TSource> source, Action<HostOutputProductionContext, TSource> action) => source.Node.RegisterOutput(new HostOutputNode<TSource>(source.Node, action.WrapUserAction(CatchAnalyzerExceptions)));
164public void RegisterHostOutput<TSource>(IncrementalValuesProvider<TSource> source, Action<HostOutputProductionContext, TSource> action) => source.Node.RegisterOutput(new HostOutputNode<TSource>(source.Node, action.WrapUserAction(CatchAnalyzerExceptions)));
174private void RegisterSourceOutput<TSource>(IIncrementalGeneratorNode<TSource> node, Action<SourceProductionContext, TSource> action, IncrementalGeneratorOutputKind kind, string sourceExt)
229/// Context passed to an incremental generator when it has registered an output via <see cref="IncrementalGeneratorInitializationContext.RegisterSourceOutput{TSource}(IncrementalValueProvider{TSource}, Action{SourceProductionContext, TSource})"/>
307/// Context passed to an incremental generator when it has registered an output via <see cref="IncrementalGeneratorInitializationContext.RegisterHostOutput{TSource}(IncrementalValuesProvider{TSource}, Action{HostOutputProductionContext, TSource})"/>
SourceGeneration\Nodes\IIncrementalGeneratorOutputNode.cs (6)
37/// A regular source output, registered via <see cref="IncrementalGeneratorInitializationContext.RegisterSourceOutput{TSource}(IncrementalValueProvider{TSource}, Action{SourceProductionContext, TSource})"/>
38/// or <see cref="IncrementalGeneratorInitializationContext.RegisterSourceOutput{TSource}(IncrementalValuesProvider{TSource}, Action{SourceProductionContext, TSource})"/>
48/// An Implementation only source output, registered via <see cref="IncrementalGeneratorInitializationContext.RegisterImplementationSourceOutput{TSource}(IncrementalValueProvider{TSource}, Action{SourceProductionContext, TSource})"/>
49/// or <see cref="IncrementalGeneratorInitializationContext.RegisterImplementationSourceOutput{TSource}(IncrementalValuesProvider{TSource}, Action{SourceProductionContext, TSource})"/>
54/// A host specific output, registered via <see cref="IncrementalGeneratorInitializationContext.RegisterHostOutput{TSource}(IncrementalValueProvider{TSource}, Action{HostOutputProductionContext, TSource})"/>
55/// or <see cref="IncrementalGeneratorInitializationContext.RegisterHostOutput{TSource}(IncrementalValuesProvider{TSource}, Action{HostOutputProductionContext, TSource})"/>
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.Analyzers (21)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.AnalyzerUtilities (25)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PredicatedAnalysisData.cs (4)
222Action<DictionaryAnalysisData<TKey, TValue>, DictionaryAnalysisData<TKey, TValue>> applyPredicatedData)
278Action<DictionaryAnalysisData<TKey, TValue>, DictionaryAnalysisData<TKey, TValue>> applyPredicatedData)
327Action<DictionaryAnalysisData<TKey, TValue>, DictionaryAnalysisData<TKey, TValue>> applyPredicatedData)
349Action<DictionaryAnalysisData<TKey, TValue>, DictionaryAnalysisData<TKey, TValue>> applyPredicatedData)
Microsoft.CodeAnalysis.BannedApiAnalyzers (21)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.CodeStyle (21)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.Collections.Package (8)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.CSharp (14)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Debugging.Package (9)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Microsoft.CodeAnalysis.Extensions.Package (8)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (2)
Microsoft.CodeAnalysis.Features (16)
Microsoft.CodeAnalysis.InteractiveHost (11)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (21)
Microsoft.CodeAnalysis.PooledObjects.Package (8)
PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.PublicApiAnalyzers (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.ResxSourceGenerator (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.Threading.Package (8)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces (167)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (36)
34ISymbol symbol, HashSet<string>? globalAliases, Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, FindReferencesSearchOptions options, CancellationToken cancellationToken);
37ISymbol symbol, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData, FindReferencesSearchOptions options, CancellationToken cancellationToken);
88Action<Document, TData> processResult,
119Action<Document, TData> processResult,
140Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
150Action<Document, TData> processResult,
168Action<FinderLocation, TData> processResult,
183Action<FinderLocation, TData> processResult,
246Action<FinderLocation, TData> processResult,
258Action<FinderLocation, TData> processResult,
287Action<FinderLocation, TData> processResult,
309Action<FinderLocation, TData> processResult,
333Action<Document, TData> processResult,
348Action<Document, TData> processResult,
361protected static Task FindDocumentsWithForEachStatementsAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
364protected static Task FindDocumentsWithUsingStatementsAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
367protected static Task FindDocumentsWithCollectionExpressionsAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
374SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData);
380Action<FinderLocation, TData> processResult,
398Action<FinderLocation, TData> processResult,
406SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData)
434Action<FinderLocation, TData> processResult,
445SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData)
477Action<FinderLocation, TData> processResult,
486Action<FinderLocation, TData> processResult,
513Action<FinderLocation, TData> processResult,
524SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData)
551Action<FinderLocation, TData> processResult,
562SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData)
582Action<FinderLocation, TData> processResult,
593SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData)
699Action<Document, TData> processResult, TData processResultData,
704Action<FinderLocation, TData> processResult, TData processResultData,
723IImmutableSet<Document>? documents, Action<Document, TData> processResult,
731ISymbol symbol, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData, FindReferencesSearchOptions options, CancellationToken cancellationToken)
757TSymbol symbol, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData, CancellationToken cancellationToken)
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (11)
58Action<Document, TData> processResult,
101private static Task FindDocumentsWithImplicitObjectCreationExpressionAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
108Action<Document, TData> processResult,
125Action<FinderLocation, TData> processResult,
162IMethodSymbol methodSymbol, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData, string name, string alias, CancellationToken cancellationToken)
182Action<FinderLocation, TData> processResult,
196Action<FinderLocation, TData> processResult,
207Action<FinderLocation, TData> processResult,
228Action<FinderLocation, TData> processResult,
239Action<FinderLocation, TData> processResult,
300Action<FinderLocation, TData> processResult,
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (8)
58Action<Document, TData> processResult,
85Action<Document, TData> processResult,
111Action<FinderLocation, TData> processResult,
144Action<FinderLocation, TData> processResult,
159INamedTypeSymbol namedType, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData, string alias, CancellationToken cancellationToken)
180Action<FinderLocation, TData> processResult,
195Action<FinderLocation, TData> processResult,
232Action<FinderLocation, TData> processResult,
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (7)
72Action<Document, TData> processResult,
113private static Task FindDocumentsWithDeconstructionAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
116private static Task FindDocumentsWithAwaitExpressionAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
119private static Task FindDocumentsWithCollectionInitializersAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
165Action<FinderLocation, TData> processResult,
198Action<FinderLocation, TData> processResult,
208Action<FinderLocation, TData> processResult,
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (5)
112Action<Document, TData> processResult,
137Action<FinderLocation, TData> processResult,
175Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
182Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
191Action<FinderLocation, TData> processResult,
Log\KeyValueLogMessage.cs (6)
73private Action<Dictionary<string, object?>, TArgs> _propertySetter = null!;
94LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel)
103Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel)
112LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel)
136public static KeyValueLogMessage Create<TArgs>(Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel = LogLevel.Information)
139public static KeyValueLogMessage Create<TArgs>(LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel = LogLevel.Information)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Workspace\Workspace.cs (8)
200/// <inheritdoc cref="SetCurrentSolution(Func{Solution, Solution}, Func{Solution, Solution, ValueTuple{WorkspaceChangeKind, ProjectId?, DocumentId?}}, Action{Solution, Solution}?, Action{Solution, Solution}?)"/>
206Action<Solution, Solution>? onBeforeUpdate = null,
207Action<Solution, Solution>? onAfterUpdate = null)
233Action<Solution, Solution>? onBeforeUpdate = null,
234Action<Solution, Solution>? onAfterUpdate = null)
253Action<Solution, Solution>? onBeforeUpdate,
254Action<Solution, Solution>? onAfterUpdate,
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
ObjectSerializationTests.cs (3)
55private static T RoundTrip<T>(T value, Action<ObjectWriter, T> writeAction, Func<ObjectReader, T> readAction, bool recursive)
69private static void TestRoundTrip<T>(T value, Action<ObjectWriter, T> writeAction, Func<ObjectReader, T> readAction, bool recursive)
75private static void TestRoundTrip<T>(T value, Action<ObjectWriter, T> writeAction, Func<ObjectReader, T> readAction)
Microsoft.Data.Analysis.Tests (2)
Microsoft.DotNet.Internal.SymbolHelper (1)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (9)
HelperFactory.cs (2)
137new ProvidedParameter("template", typeof(Action<TextWriter, object>), Expression.MakeMemberAccess(optionsParameter, typeof(HelperOptions).GetProperty("Template"))),
138new ProvidedParameter("inverse", typeof(Action<TextWriter, object>), Expression.MakeMemberAccess(optionsParameter, typeof(HelperOptions).GetProperty("Inverse"))),
Languages\angular\Angular.cs (4)
107Action<TextWriter, object> template,
196Action<TextWriter, object> template,
282public static void Serialize(TextWriter output, object context, Action<TextWriter, object> template, TypeReference reference, params object[] args)
312public static void Deserialize(TextWriter output, object context, Action<TextWriter, object> template, TypeReference reference, params object[] args)
Languages\csharp\CSharp.cs (2)
165public void NullCheck(TextWriter output, object context, Action<TextWriter, object> template, TypeReference reference, bool required)
181public void NotNullCheck(TextWriter output, object context, Action<TextWriter, object> template, TypeReference reference, bool required)
Microsoft.DotNet.XUnitAssert.Tests (2)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.FileSystemGlobbing (7)
Microsoft.Extensions.Hosting (22)
Microsoft.Extensions.Hosting.Abstractions (4)
Microsoft.Extensions.Hosting.Systemd (1)
Microsoft.Extensions.Hosting.Testing (3)
Microsoft.Extensions.Hosting.Testing.Tests (5)
Microsoft.Extensions.Hosting.WindowsServices (2)
Microsoft.Extensions.Http (10)
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (5)
165public static IHttpClientBuilder AddHttpClient(this IServiceCollection services, string name, Action<IServiceProvider, HttpClient> configureClient)
401this IServiceCollection services, Action<IServiceProvider, HttpClient> configureClient)
488this IServiceCollection services, Action<IServiceProvider, HttpClient> configureClient)
573this IServiceCollection services, string name, Action<IServiceProvider, HttpClient> configureClient)
666this IServiceCollection services, string name, Action<IServiceProvider, HttpClient> configureClient)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
Microsoft.Extensions.Http.Polly (1)
Microsoft.Extensions.Http.Resilience (6)
Microsoft.Extensions.Http.Resilience.Tests (2)
Microsoft.Extensions.Logging (3)
Microsoft.Extensions.Logging.Abstractions (5)
Microsoft.Extensions.Logging.Console (2)
Microsoft.Extensions.Logging.Debug (1)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Options (11)
Microsoft.Extensions.Options.Contextual (5)
Microsoft.Extensions.Options.Contextual.Tests (2)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Telemetry.Tests (2)
Microsoft.Gen.Logging (2)
Microsoft.Interop.SourceGeneration (7)
ManualTypeMarshallingHelper.cs (7)
107Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch,
128Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch,
138Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch,
151Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch,
241public static bool TryResolveEntryPointType(INamedTypeSymbol managedType, ITypeSymbol typeInAttribute, bool isLinearCollectionMarshalling, Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch, [NotNullWhen(true)] out ITypeSymbol? entryPoint)
283public static bool TryResolveManagedType(INamedTypeSymbol entryPointType, ITypeSymbol typeInAttribute, bool isLinearCollectionMarshalling, Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch, [NotNullWhen(true)] out ITypeSymbol? managed)
326public static bool TryResolveMarshallerType(INamedTypeSymbol entryPointType, ITypeSymbol typeInAttribute, Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch, [NotNullWhen(true)] out ITypeSymbol? marshallerType)
Microsoft.Maui (33)
PropertyMapper.cs (22)
20 protected readonly Dictionary<string, Action<IElementHandler, IElement>> _mapper = new(StringComparer.Ordinal);
24 List<Action<IElementHandler, IElement>>? _updatePropertiesMappers;
25 Dictionary<string, Action<IElementHandler, IElement>?>? _cachedMappers;
28 List<Action<IElementHandler, IElement>> UpdatePropertiesMappers => _updatePropertiesMappers ?? SnapshotMappers().UpdatePropertiesMappers;
29 Dictionary<string, Action<IElementHandler, IElement>?> CachedMappers => _cachedMappers ?? SnapshotMappers().CachedMappers;
40 protected virtual void SetPropertyCore(string key, Action<IElementHandler, IElement> action)
60 if (cachedMappers.TryGetValue(key, out var action))
73 var mapper = GetProperty(key);
85 public virtual Action<IElementHandler, IElement>? GetProperty(string key)
87 if (_mapper.TryGetValue(key, out var action))
97 var returnValue = ch.GetProperty(key);
125 foreach (var mapper in UpdatePropertiesMappers)
177 private (List<string> UpdatePropertiesKeys, List<Action<IElementHandler, IElement>> UpdatePropertiesMappers, Dictionary<string, Action<IElementHandler, IElement>?> CachedMappers) SnapshotMappers()
180 var updatePropertiesMappers = new List<Action<IElementHandler, IElement>>(updatePropertiesKeys.Count);
186 var cachedMappers = new Dictionary<string, Action<IElementHandler, IElement>?>(cacheSize);
190 var mapper = GetProperty(key)!;
205 Action<IElementHandler, IElement>? GetProperty(string key);
218 void Add(string key, Action<TViewHandler, TVirtualView> action);
234 public Action<TViewHandler, TVirtualView> this[string key]
238 var action = GetProperty(key) ?? throw new IndexOutOfRangeException($"Unable to find mapping for '{nameof(key)}'.");
244 public void Add(string key, Action<TViewHandler, TVirtualView> action) =>
PropertyMapperExtensions.cs (9)
16 string key, Action<TViewHandler, TVirtualView, Action<IElementHandler, IElement>?> method)
19 var previousMethod = propertyMapper.GetProperty(key);
38 string key, Action<TViewHandler, TVirtualView, Action<IElementHandler, IElement>?> method)
41 var previousMethod = propertyMapper.GetProperty(key);
63 string key, Action<TViewHandler, TVirtualView> method)
78 string key, Action<TViewHandler, TVirtualView> method)
97 string key, Action<TViewHandler, TVirtualView> method)
118 string key, Action<TViewHandler, TVirtualView> method)
137 string key, Action<TViewHandler, TVirtualView> method)
Microsoft.Maui.Controls (30)
AnimationExtensions.cs (7)
136 public static void Animate(this IAnimatable self, string name, Animation animation, uint rate = 16, uint length = 250, Easing easing = null, Action<double, bool> finished = null,
156 Action<double, bool> finished = null, Func<bool> repeat = null)
162 public static void Animate(this IAnimatable self, string name, Action<double> callback, uint rate = 16, uint length = 250, Easing easing = null, Action<double, bool> finished = null,
172 Action<T, bool> finished = null, Func<bool> repeat = null, IAnimationManager animationManager = null)
256 uint rate, uint length, Easing easing, Action<T, bool> finished, Func<bool> repeat)
263 Action<double, bool> final = null;
389 public Action<double, bool> Finished;
MessagingCenter.cs (3)
15 void Subscribe<TSender, TArgs>(object subscriber, string message, Action<TSender, TArgs> callback, TSender source = null) where TSender : class;
134 public static void Subscribe<TSender, TArgs>(object subscriber, string message, Action<TSender, TArgs> callback, TSender source = null) where TSender : class
139 void IMessagingCenter.Subscribe<TSender, TArgs>(object subscriber, string message, Action<TSender, TArgs> callback, TSender source)
TypedBinding.cs (3)
97 Action<TSource, TProperty> setter = null,
123 readonly Action<TSource, TProperty> _setter;
126 public TypedBinding(Func<TSource, (TProperty value, bool success)> getter, Action<TSource, TProperty> setter, Tuple<Func<TSource, object>, string>[] handlers)
Microsoft.Maui.Controls.SourceGen (2)
Microsoft.Maui.Controls.Xaml (2)
Microsoft.ML.Core (20)
Environment\HostEnvironmentBase.cs (13)
161protected readonly Action<IMessageSource, TMessage> Dispatch;
168Action<IMessageSource, TMessage> dispatch)
218Action<IMessageSource, ChannelMessage> dispatch)
271Action<IMessageSource, TMessage> dispatch) :
297private volatile Action<IMessageSource, TMessage> _listenerAction;
302private readonly Action<IMessageSource, TMessage> _dispatch;
309public Action<IMessageSource, TMessage> Dispatch { get { return _dispatch; } }
316public void AddListener(Action<IMessageSource, TMessage> listenerFunc)
322public void RemoveListener(Action<IMessageSource, TMessage> listenerFunc)
452Action<IMessageSource, TMessage> listenerAction, IMessageSource channel, TMessage message)
459protected Action<IMessageSource, TMessage> GetDispatchDelegate<TMessage>()
497public void AddListener<TMessage>(Action<IMessageSource, TMessage> listenerFunc)
504public void RemoveListener<TMessage>(Action<IMessageSource, TMessage> listenerFunc)
Microsoft.ML.Core.Tests (1)
Microsoft.ML.CpuMath (4)
Microsoft.ML.Data (19)
DataDebuggerPreview.cs (5)
19private static readonly FuncInstanceMethodInfo1<DataDebuggerPreview, DataViewRow, int, Action<RowInfo, List<object>>> _makeSetterMethodInfo
20= FuncInstanceMethodInfo1<DataDebuggerPreview, DataViewRow, int, Action<RowInfo, List<object>>>.Create(target => target.MakeSetter<int>);
46var setters = new Action<RowInfo, List<object>>[n];
68private Action<RowInfo, List<object>> MakeSetter<T>(DataViewRow row, int col)
72Action<RowInfo, List<object>> result = (rowInfo, list) =>
DataLoadSave\Text\TextSaver.cs (8)
84public abstract void WriteData(Action<StringBuilder, int> appendItem, out int length);
86public abstract void WriteHeader(Action<StringBuilder, int> appendItem, out int length);
176public override void WriteData(Action<StringBuilder, int> appendItem, out int length)
200public override void WriteHeader(Action<StringBuilder, int> appendItem, out int length)
234public override void WriteData(Action<StringBuilder, int> appendItem, out int length)
242public override void WriteHeader(Action<StringBuilder, int> appendItem, out int length)
581Action<StringBuilder, int> append = (sb, index) => AppendItem(sb, index, _pipes[_col].Default);
582Action<StringBuilder, int> appendHeader = (sb, index) => AppendItem(sb, index, "");
Microsoft.ML.FastTree (1)
Microsoft.ML.IntegrationTests (3)
Microsoft.ML.OnnxTransformerTest (2)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.Samples (7)
Microsoft.ML.Samples.GPU (1)
Microsoft.ML.StandardTrainers (2)
Microsoft.ML.TestFramework (2)
Microsoft.ML.Tests (7)
Microsoft.ML.Transforms (12)
Microsoft.ML.Vision (1)
Microsoft.VisualStudio.LanguageServices (4)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.Implementation (3)
mscorlib (1)
netstandard (1)
PresentationCore (5)
PresentationFramework (12)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (10)
375public static readonly Action<object, IntPtr> CopyAbi;
376private static Action<object, IntPtr> BindCopyAbi()
381return Expression.Lambda<Action<object, IntPtr>>(
404public static readonly Action<T, IntPtr> CopyManaged;
405private static Action<T, IntPtr> BindCopyManaged()
410return Expression.Lambda<Action<T, IntPtr>>(
714public static unsafe void CopyManagedArray(T[] array, IntPtr data, Action<T, IntPtr> copyManaged)
1105public static readonly Action<object, IntPtr> CopyAbi;
1108public static readonly Action<T, IntPtr> CopyManaged;
1115public static readonly Action<T[], IntPtr> CopyManagedArray;
Replay (1)
Roslyn.Diagnostics.Analyzers (21)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Roslyn.Diagnostics.CSharp.Analyzers (1)
Roslyn.VisualStudio.Next.UnitTests (3)
Sample (3)
Shared (2)
System.ComponentModel.Composition.Registration (17)
System\ComponentModel\Composition\Registration\PartBuilder.cs (17)
25private Action<ParameterInfo, ImportBuilder> _configureConstructorImports;
28private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>> _propertyExports;
29private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>> _propertyImports;
30private readonly List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>> _interfaceExports;
40_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>>();
41_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>>();
42_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>>();
80Action<ParameterInfo, ImportBuilder> importConfiguration)
100Action<Type, ExportBuilder> exportConfiguration)
118Action<PropertyInfo, ExportBuilder> exportConfiguration)
136Action<PropertyInfo, ExportBuilder> exportConfiguration)
154Action<PropertyInfo, ImportBuilder> importConfiguration)
171Action<PropertyInfo, ImportBuilder> importConfiguration)
316foreach (Tuple<Predicate<Type>, Action<Type, ExportBuilder>> exportSpecification in _interfaceExports)
386private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo, ImportBuilder> configureConstructorImports)
430foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type> importSpecification in _propertyImports)
470foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type> exportSpecification in _propertyExports)
System.Composition.Convention (22)
System\Composition\Convention\PartConventionBuilder.cs (22)
30private Action<ParameterInfo, ImportConventionBuilder> _configureConstructorImports;
33private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>> _propertyExports;
34private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>> _propertyImports;
35private readonly List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>> _interfaceExports;
44_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>>();
45_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>>();
46_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>>();
122Action<ParameterInfo, ImportConventionBuilder> importConfiguration)
159Action<Type, ExportConventionBuilder> exportConfiguration)
168Action<Type, ExportConventionBuilder> exportConfiguration)
193Action<PropertyInfo, ExportConventionBuilder> exportConfiguration)
202Action<PropertyInfo, ExportConventionBuilder> exportConfiguration)
229Action<PropertyInfo, ExportConventionBuilder> exportConfiguration)
238Action<PropertyInfo, ExportConventionBuilder> exportConfiguration)
263Action<PropertyInfo, ImportConventionBuilder> importConfiguration)
272Action<PropertyInfo, ImportConventionBuilder> importConfiguration)
299Action<PropertyInfo, ImportConventionBuilder> importConfiguration)
308Action<PropertyInfo, ImportConventionBuilder> importConfiguration)
512foreach (Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>> exportSpecification in _interfaceExports)
577private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo, ImportConventionBuilder> configureConstructorImports)
676foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>> importSpecification in _propertyImports)
713foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type> exportSpecification in _propertyExports)
System.Core (1)
System.Diagnostics.DiagnosticSource (20)
System\Diagnostics\Metrics\AggregationManager.cs (10)
38private readonly Action<DateTime, DateTime> _beginCollection;
39private readonly Action<DateTime, DateTime> _endCollection;
40private readonly Action<Instrument, InstrumentState> _beginInstrumentMeasurements;
41private readonly Action<Instrument, InstrumentState> _endInstrumentMeasurements;
42private readonly Action<Instrument, InstrumentState?> _instrumentPublished;
57Action<DateTime, DateTime> beginCollection,
58Action<DateTime, DateTime> endCollection,
59Action<Instrument, InstrumentState> beginInstrumentMeasurements,
60Action<Instrument, InstrumentState> endInstrumentMeasurements,
61Action<Instrument, InstrumentState?> instrumentPublished,
System.Formats.Asn1 (1)
System.IO.Pipelines (9)
System.Linq.Expressions (9)
System.Net.Http (1)
System.Net.Quic (2)
System.Net.ServerSentEvents (2)
System.Net.Sockets (4)
System\Net\Sockets\SocketPal.Unix.cs (2)
2070private static SocketError SendFileAsync(SafeSocketHandle handle, SafeFileHandle fileHandle, long offset, long count, CancellationToken cancellationToken, Action<long, SocketError> callback)
2082Socket socket, TransmitFileOptions options, SendPacketsElement[] elements, SafeFileHandle[] fileHandles, CancellationToken cancellationToken, Action<long, SocketError> callback)
System.Net.WebClient (1)
System.Private.CoreLib (25)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (6)
3903public Task ContinueWith(Action<Task, object?> continuationAction, object? state)
3926public Task ContinueWith(Action<Task, object?> continuationAction, object? state, CancellationToken cancellationToken)
3954public Task ContinueWith(Action<Task, object?> continuationAction, object? state, TaskScheduler scheduler)
3988public Task ContinueWith(Action<Task, object?> continuationAction, object? state, TaskContinuationOptions continuationOptions)
4029public Task ContinueWith(Action<Task, object?> continuationAction, object? state, CancellationToken cancellationToken,
4036private Task ContinueWith(Action<Task, object?> continuationAction, object? state, TaskScheduler scheduler,
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (6)
808public Task ContinueWith(Action<Task<TResult>, object?> continuationAction, object? state)
832public Task ContinueWith(Action<Task<TResult>, object?> continuationAction, object? state, CancellationToken cancellationToken)
861public Task ContinueWith(Action<Task<TResult>, object?> continuationAction, object? state, TaskScheduler scheduler)
895public Task ContinueWith(Action<Task<TResult>, object?> continuationAction, object? state, TaskContinuationOptions continuationOptions)
936public Task ContinueWith(Action<Task<TResult>, object?> continuationAction, object? state, CancellationToken cancellationToken,
943internal Task ContinueWith(Action<Task<TResult>, object?> continuationAction, object? state, TaskScheduler scheduler, CancellationToken cancellationToken,
System.Private.DataContractSerialization (2)
System.Private.Windows.Core (1)
System.Private.Xml (4)
System.Reflection.Context (5)
System.Reflection.Metadata (1)
System.Runtime (1)
System.Runtime.InteropServices.JavaScript (2)
System.Security.Cryptography (10)
System.Security.Cryptography.Pkcs (10)
System.ServiceModel.Federation (2)
System.ServiceModel.Primitives (8)
System.Text.Json (35)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (8)
17private Action<object, T>? _typedSet;
30internal new Action<object, T>? Set
61Debug.Assert(setter is null or Action<object, object?> or Action<object, T>);
69else if (setter is Action<object, T> typedSetter)
72_untypedSet = setter is Action<object, object?> untypedSet ? untypedSet : (obj, value) => typedSetter(obj, (T)value!);
76Action<object, object?> untypedSet = (Action<object, object?>)setter;
System.Text.RegularExpressions (3)
System.Text.RegularExpressions.Generator (1)
System.Threading.Channels (12)
System\Threading\Channels\AsyncOperation.cs (7)
104Action<object?, CancellationToken>? cancellationCallback)
418protected AsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
484public AsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
565public BlockedReadAsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
576public BlockedWriteAsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
589public WaitingReadAsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
599public WaitingWriteAsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
System.Threading.Tasks.Dataflow (15)
System.Threading.Tasks.Parallel (13)
System\Threading\Tasks\Parallel.cs (13)
532public static ParallelLoopResult For(int fromInclusive, int toExclusive, Action<int, ParallelLoopState> body)
559public static ParallelLoopResult For(long fromInclusive, long toExclusive, Action<long, ParallelLoopState> body)
597public static ParallelLoopResult For(int fromInclusive, int toExclusive, ParallelOptions parallelOptions, Action<int, ParallelLoopState> body)
637Action<long, ParallelLoopState> body)
913Action<TInt, ParallelLoopState>? bodyWithState,
1247public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, Action<TSource, ParallelLoopState> body)
1288public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Action<TSource, ParallelLoopState> body)
1634Action<TSource, ParallelLoopState>? bodyWithState,
1692Action<TSource, ParallelLoopState>? bodyWithState,
1751Action<TSource, ParallelLoopState>? bodyWithState,
1885Action<TSource, ParallelLoopState> body)
2233Action<TSource, ParallelLoopState> body)
2505Action<TSource, ParallelLoopState>? bodyWithState,
System.Windows.Forms (1)
System.Windows.Forms.Design.Tests (9)
System.Windows.Forms.Tests (12)
System.Windows.Input.Manipulations (2)
Test.Utilities (19)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
Text.Analyzers (21)
src\Dependencies\PooledObjects\PooledDelegates.cs (8)
98public static Releaser GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
99=> GetPooledDelegate<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>(unboundAction, argument, out boundAction);
102/// Gets an <see cref="Action{T1, T2}"/> delegate, which calls <paramref name="unboundAction"/> with the specified
132public static Releaser GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
133=> GetPooledDelegate<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>(unboundAction, argument, out boundAction);
391: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, TArg>, TArg, Action<T1, TArg>, Action<T1>>
398: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<T1, T2, TArg>, TArg, Action<T1, T2, TArg>, Action<T1, T2>>
400protected override Action<T1, T2> Bind()
UnitTests.Common (6)
vbc (1)
VBCSCompiler (1)
WindowsBase.Tests (8)
System\Windows\Threading\DispatcherTests.cs (2)
146Assert.Throws<InvalidEnumArgumentException>("priority", () => dispatcher.BeginInvoke(priority, (Action<object, object>)((arg1, arg2) => { }), new object(), new object[] { new object() }));
147Assert.Throws<InvalidEnumArgumentException>("priority", () => dispatcher.BeginInvoke(priority, (Action<object, object>)((arg1, arg2) => { }), new object[] { new object(), new object() }));
xunit.assert (3)
xunit.console (1)