1771 references to Action
aspire (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Cli.Tests (2)
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.Components.Tests (4)
Aspire.Dashboard.Tests (1)
Aspire.Hosting (1)
Aspire.Hosting.Azure.AppContainers (7)
Aspire.Hosting.Azure.AppService (3)
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.Docker (3)
Aspire.Hosting.Testing (14)
DistributedApplicationTestingBuilder.cs (7)
88public static Task<IDistributedApplicationTestingBuilder> CreateAsync<TEntryPoint>(string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder, CancellationToken cancellationToken = default)
102public static async Task<IDistributedApplicationTestingBuilder> CreateAsync(Type entryPoint, string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder, CancellationToken cancellationToken = default)
130public static IDistributedApplicationTestingBuilder Create(string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder)
149Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder,
175private sealed class SuspendingDistributedApplicationFactory(Type entryPoint, string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder)
316Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder,
325Action<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.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)
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 (9)
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 (2)
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.Extensions.Tests (88)
RequestDelegateFactoryTests.cs (88)
310new object[] { (Action<HttpContext, string[]>)Store, new[] { "plain string" }, new[] { "plain string" } },
311new object[] { (Action<HttpContext, StringValues>)Store, new[] { "1", "2", "3" }, new StringValues(new[] { "1", "2", "3" }) },
312new object[] { (Action<HttpContext, int[]>)Store, new[] { "-1", "2", "3" }, new[] { -1,2,3 } },
313new object[] { (Action<HttpContext, uint[]>)Store, new[] { "1","42","32"}, new[] { 1U, 42U, 32U } },
314new object[] { (Action<HttpContext, bool[]>)Store, new[] { "true", "false" }, new[] { true, false } },
315new object[] { (Action<HttpContext, short[]>)Store, new[] { "-42" }, new[] { (short)-42 } },
316new object[] { (Action<HttpContext, ushort[]>)Store, new[] { "42" }, new[] { (ushort)42 } },
317new object[] { (Action<HttpContext, long[]>)Store, new[] { "-42" }, new[] { -42L } },
318new object[] { (Action<HttpContext, ulong[]>)Store, new[] { "42" }, new[] { 42UL } },
319new object[] { (Action<HttpContext, IntPtr[]>)Store, new[] { "-42" },new[] { new IntPtr(-42) } },
320new object[] { (Action<HttpContext, char[]>)Store, new[] { "A" }, new[] { 'A' } },
321new object[] { (Action<HttpContext, double[]>)Store, new[] { "0.5" },new[] { 0.5 } },
322new object[] { (Action<HttpContext, float[]>)Store, new[] { "0.5" },new[] { 0.5f } },
323new object[] { (Action<HttpContext, Half[]>)Store, new[] { "0.5" }, new[] { (Half)0.5f } },
324new object[] { (Action<HttpContext, decimal[]>)Store, new[] { "0.5" },new[] { 0.5m } },
325new object[] { (Action<HttpContext, Uri[]>)Store, new[] { "https://example.org" }, new[] { new Uri("https://example.org") } },
326new object[] { (Action<HttpContext, DateTime[]>)Store, new[] { now.ToString("o") },new[] { now.ToUniversalTime() } },
327new object[] { (Action<HttpContext, DateTimeOffset[]>)Store, new[] { "1970-01-01T00:00:00.0000000+00:00" },new[] { DateTimeOffset.UnixEpoch } },
328new object[] { (Action<HttpContext, TimeSpan[]>)Store, new[] { "00:00:42" },new[] { TimeSpan.FromSeconds(42) } },
329new object[] { (Action<HttpContext, Guid[]>)Store, new[] { "00000000-0000-0000-0000-000000000000" },new[] { Guid.Empty } },
330new object[] { (Action<HttpContext, Version[]>)Store, new[] { "6.0.0.42" }, new[] { new Version("6.0.0.42") } },
331new object[] { (Action<HttpContext, BigInteger[]>)Store, new[] { "-42" },new[]{ new BigInteger(-42) } },
332new object[] { (Action<HttpContext, IPAddress[]>)Store, new[] { "127.0.0.1" }, new[] { IPAddress.Loopback } },
333new object[] { (Action<HttpContext, IPEndPoint[]>)Store, new[] { "127.0.0.1:80" },new[] { new IPEndPoint(IPAddress.Loopback, 80) } },
334new object[] { (Action<HttpContext, AddressFamily[]>)Store, new[] { "Unix" },new[] { AddressFamily.Unix } },
335new object[] { (Action<HttpContext, ILOpCode[]>)Store, new[] { "Nop" }, new[] { ILOpCode.Nop } },
336new object[] { (Action<HttpContext, AssemblyFlags[]>)Store, new[] { "PublicKey,Retargetable" },new[] { AssemblyFlags.PublicKey | AssemblyFlags.Retargetable } },
337new object[] { (Action<HttpContext, int?[]>)Store, new[] { "42" }, new int?[] { 42 } },
338new object[] { (Action<HttpContext, MyEnum[]>)Store, new[] { "ValueB" },new[] { MyEnum.ValueB } },
339new object[] { (Action<HttpContext, MyTryParseRecord[]>)Store, new[] { "https://example.org" },new[] { new MyTryParseRecord(new Uri("https://example.org")) } },
340new object?[] { (Action<HttpContext, int[]>)Store, new string[] {}, Array.Empty<int>() },
341new object?[] { (Action<HttpContext, int?[]>)Store, new string?[] { "1", "2", null, "4" }, new int?[] { 1,2, null, 4 } },
342new object?[] { (Action<HttpContext, int?[]>)Store, new string[] { "1", "2", "", "4" }, new int?[] { 1,2, null, 4 } },
343new object[] { (Action<HttpContext, MyTryParseRecord?[]?>)Store, new[] { "" }, new MyTryParseRecord?[] { null } },
362new object[] { (Action<HttpContext, string>)Store, "plain string", "plain string" },
363new object[] { (Action<HttpContext, int>)Store, "-42", -42 },
364new object[] { (Action<HttpContext, uint>)Store, "42", 42U },
365new object[] { (Action<HttpContext, bool>)Store, "true", true },
366new object[] { (Action<HttpContext, short>)Store, "-42", (short)-42 },
367new object[] { (Action<HttpContext, ushort>)Store, "42", (ushort)42 },
368new object[] { (Action<HttpContext, long>)Store, "-42", -42L },
369new object[] { (Action<HttpContext, ulong>)Store, "42", 42UL },
370new object[] { (Action<HttpContext, IntPtr>)Store, "-42", new IntPtr(-42) },
371new object[] { (Action<HttpContext, char>)Store, "A", 'A' },
372new object[] { (Action<HttpContext, double>)Store, "0.5", 0.5 },
373new object[] { (Action<HttpContext, float>)Store, "0.5", 0.5f },
374new object[] { (Action<HttpContext, Half>)Store, "0.5", (Half)0.5f },
375new object[] { (Action<HttpContext, decimal>)Store, "0.5", 0.5m },
376new object[] { (Action<HttpContext, Uri>)Store, "https://example.org", new Uri("https://example.org") },
377new object[] { (Action<HttpContext, DateTime>)Store, now.ToString("o"), now.ToUniversalTime() },
378new object[] { (Action<HttpContext, DateTimeOffset>)Store, "1970-01-01T00:00:00.0000000+00:00", DateTimeOffset.UnixEpoch },
379new object[] { (Action<HttpContext, TimeSpan>)Store, "00:00:42", TimeSpan.FromSeconds(42) },
380new object[] { (Action<HttpContext, Guid>)Store, "00000000-0000-0000-0000-000000000000", Guid.Empty },
381new object[] { (Action<HttpContext, Version>)Store, "6.0.0.42", new Version("6.0.0.42") },
382new object[] { (Action<HttpContext, BigInteger>)Store, "-42", new BigInteger(-42) },
383new object[] { (Action<HttpContext, IPAddress>)Store, "127.0.0.1", IPAddress.Loopback },
384new object[] { (Action<HttpContext, IPEndPoint>)Store, "127.0.0.1:80", new IPEndPoint(IPAddress.Loopback, 80) },
385new object[] { (Action<HttpContext, AddressFamily>)Store, "Unix", AddressFamily.Unix },
386new object[] { (Action<HttpContext, ILOpCode>)Store, "Nop", ILOpCode.Nop },
387new object[] { (Action<HttpContext, AssemblyFlags>)Store, "PublicKey,Retargetable", AssemblyFlags.PublicKey | AssemblyFlags.Retargetable },
388new object[] { (Action<HttpContext, int?>)Store, "42", 42 },
389new object[] { (Action<HttpContext, MyEnum>)Store, "ValueB", MyEnum.ValueB },
390new object[] { (Action<HttpContext, MyTryParseRecord>)Store, "https://example.org", new MyTryParseRecord(new Uri("https://example.org")) },
391new object?[] { (Action<HttpContext, int?>)Store, null, null },
835new[] { (Action<HttpContext, Todo>)TestImpliedFromBody },
836new[] { (Action<HttpContext, ITodo>)TestImpliedFromBodyInterface },
837new object[] { (Action<HttpContext, TodoStruct>)TestImpliedFromBodyStruct },
1093new[] { (Action<HttpContext, MyService>)TestExplicitFromService },
1095new[] { (Action<HttpContext, IEnumerable<MyService>>)TestExplicitFromIEnumerableService },
1127new[] { (Action<HttpContext, IMyService>)TestImpliedFromService },
1129new[] { (Action<HttpContext, IEnumerable<MyService>>)TestImpliedIEnumerableFromService },
1130new[] { (Action<HttpContext, MyService>)TestImpliedFromServiceBasedOnContainer },
1664new object?[] { (Action<HttpContext, MyBindAsyncRecord>)requiredReferenceType, false, true, false },
1665new object?[] { (Action<HttpContext, MyBindAsyncRecord>)requiredReferenceType, true, false, false, },
1666new object?[] { (Action<HttpContext, MySimpleBindAsyncRecord>)requiredReferenceTypeSimple, true, false, false },
1668new object?[] { (Action<HttpContext, MyBindAsyncRecord?>)defaultReferenceType, false, false, false, },
1669new object?[] { (Action<HttpContext, MyBindAsyncRecord?>)defaultReferenceType, true, false, false },
1671new object?[] { (Action<HttpContext, MyBindAsyncRecord?>)nullableReferenceType, false, false, false },
1672new object?[] { (Action<HttpContext, MyBindAsyncRecord?>)nullableReferenceType, true, false, false },
1674new object?[] { (Action<HttpContext, MyNullableBindAsyncStruct>)requiredValueType, false, true, true },
1675new object?[] { (Action<HttpContext, MyNullableBindAsyncStruct>)requiredValueType, true, false, true },
1676new object?[] { (Action<HttpContext, MySimpleBindAsyncStruct>)requiredValueTypeSimple, true, false, true },
1678new object?[] { (Action<HttpContext, MyNullableBindAsyncStruct?>)defaultValueType, false, false, true },
1679new object?[] { (Action<HttpContext, MyNullableBindAsyncStruct?>)defaultValueType, true, false, true },
1681new object?[] { (Action<HttpContext, MyNullableBindAsyncStruct?>)nullableValueType, false, false, true },
1682new object?[] { (Action<HttpContext, MyNullableBindAsyncStruct?>)nullableValueType, true, false, true },
2621var @delegate = (AddsCustomParameterMetadataBindable param1, AddsCustomParameterMetadata param2) => { };
3121var @delegate = (string name, HttpContext context) => context.Items.Add("param", name);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.HttpLogging.Tests (2)
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 (16)
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.CodeAnalysis (39)
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
474Action<Diagnostic, CancellationToken>? addNotCategorizedDiagnostic = null;
1955internal static Action<Diagnostic, CancellationToken> GetDiagnosticSink(Action<Diagnostic> addDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds)
1979internal static Action<Diagnostic, DiagnosticAnalyzer, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer> addDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds)
SourceGeneration\IncrementalContexts.cs (9)
69public void RegisterSourceOutput<TSource>(IncrementalValueProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action, IncrementalGeneratorOutputKind.Source, _sourceExtension);
71public void RegisterSourceOutput<TSource>(IncrementalValuesProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action, IncrementalGeneratorOutputKind.Source, _sourceExtension);
73public void RegisterImplementationSourceOutput<TSource>(IncrementalValueProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action, IncrementalGeneratorOutputKind.Implementation, _sourceExtension);
75public void RegisterImplementationSourceOutput<TSource>(IncrementalValuesProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action, IncrementalGeneratorOutputKind.Implementation, _sourceExtension);
80public void RegisterHostOutput<TSource>(IncrementalValueProvider<TSource> source, Action<HostOutputProductionContext, TSource> action) => source.Node.RegisterOutput(new HostOutputNode<TSource>(source.Node, action.WrapUserAction(CatchAnalyzerExceptions)));
83public void RegisterHostOutput<TSource>(IncrementalValuesProvider<TSource> source, Action<HostOutputProductionContext, TSource> action) => source.Node.RegisterOutput(new HostOutputNode<TSource>(source.Node, action.WrapUserAction(CatchAnalyzerExceptions)));
93private void RegisterSourceOutput<TSource>(IIncrementalGeneratorNode<TSource> node, Action<SourceProductionContext, TSource> action, IncrementalGeneratorOutputKind kind, string sourceExt)
148/// Context passed to an incremental generator when it has registered an output via <see cref="IncrementalGeneratorInitializationContext.RegisterSourceOutput{TSource}(IncrementalValueProvider{TSource}, Action{SourceProductionContext, TSource})"/>
224/// 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 (35)
FlowAnalysis\NullableWalker.cs (26)
4090Action<int, TypeSymbol>? initializerCompletion = null;
4106Action<int, TypeSymbol>? initializerCompletion,
4135Action<int, TypeSymbol>? initializerCompletion,
4261private Action<int, TypeSymbol>? VisitObjectCreationInitializer(int containingSlot, TypeSymbol containingType, BoundObjectInitializerExpressionBase node, bool delayCompletionForType)
4264Action<int, TypeSymbol>? completion = null;
4311private Action<int, TypeSymbol>? VisitObjectElementInitializer(int containingSlot, TypeSymbol containingType, BoundAssignmentOperator node, bool delayCompletionForType)
4330Action<int, TypeSymbol>? visitMemberInitializer(int containingSlot, TypeSymbol containingType, BoundAssignmentOperator node, bool delayCompletionForType)
4349Action<int, Symbol>? initializationCompletion = null;
4369Action<int, TypeSymbol>? setAnalyzedNullability(
4373Action<int, Symbol>? initializationCompletion,
4391Action<int, TypeSymbol>? setAnalyzedNullabilityAsContinuation(
4395Action<int, Symbol>? initializationCompletion)
4406var result = setAnalyzedNullability(node, argumentResults, argumentsCompletion: null, initializationCompletion: null, delayCompletionForType: false);
4430Action<int, Symbol>? visitNestedInitializer(int containingSlot, TypeSymbol containingType, Symbol symbol, BoundObjectInitializerExpressionBase initializer, bool delayCompletionForType)
4435Action<int, TypeSymbol>? nestedCompletion = VisitObjectCreationInitializer(slot, GetTypeOrReturnType(symbol), initializer, delayCompletionForType);
4440Action<int, Symbol>? completeNestedInitializerAnalysis(
4441Symbol symbol, BoundObjectInitializerExpressionBase initializer, int slot, Action<int, TypeSymbol>? nestedCompletion,
4462Action<int, Symbol>? completeNestedInitializerAnalysisAsContinuation(BoundObjectInitializerExpressionBase initializer, Action<int, TypeSymbol>? nestedCompletion)
4472Action<int, Symbol>? visitMemberAssignment(BoundAssignmentOperator node, int containingSlot, Symbol symbol, bool delayCompletionForType, Func<TypeWithAnnotations, TypeWithState>? conversionCompletion = null)
4505Action<int, Symbol>? visitMemberAssignmentAsContinuation(BoundAssignmentOperator node, Func<TypeWithAnnotations, TypeWithState> conversionCompletion)
4509var result = visitMemberAssignment(node, containingSlot, symbol, delayCompletionForType: false, conversionCompletion);
4523private Action<int, TypeSymbol>? VisitCollectionElementInitializer(BoundCollectionElementInitializer node, TypeSymbol containingType, bool delayCompletionForType)
4556Action<int, TypeSymbol>? setUpdatedSymbol(
4583Action<int, TypeSymbol>? setUpdatedSymbolAsContinuation(
13305internal void ForEach<TArg>(Action<int, TArg> action, TArg arg)
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 (5)
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 (159)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (33)
35ISymbol symbol, HashSet<string>? globalAliases, Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, FindReferencesSearchOptions options, CancellationToken cancellationToken);
38ISymbol symbol, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData, FindReferencesSearchOptions options, CancellationToken cancellationToken);
89Action<Document, TData> processResult,
120Action<Document, TData> processResult,
141Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
151Action<Document, TData> processResult,
169Action<FinderLocation, TData> processResult,
184Action<FinderLocation, TData> processResult,
247Action<FinderLocation, TData> processResult,
259Action<FinderLocation, TData> processResult,
288Action<FinderLocation, TData> processResult,
310Action<FinderLocation, TData> processResult,
334Action<Document, TData> processResult,
349Action<Document, TData> processResult,
362protected static Task FindDocumentsWithForEachStatementsAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
365protected static Task FindDocumentsWithUsingStatementsAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
372SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData);
378Action<FinderLocation, TData> processResult,
396Action<FinderLocation, TData> processResult,
404SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData)
432Action<FinderLocation, TData> processResult,
443SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData)
475Action<FinderLocation, TData> processResult,
486SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData)
513Action<FinderLocation, TData> processResult,
524SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData)
544Action<FinderLocation, TData> processResult,
555SyntaxNode node, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData)
661Action<Document, TData> processResult, TData processResultData,
666Action<FinderLocation, TData> processResult, TData processResultData,
685IImmutableSet<Document>? documents, Action<Document, TData> processResult,
695ISymbol symbol, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData, FindReferencesSearchOptions options, CancellationToken cancellationToken)
721TSymbol symbol, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData, CancellationToken cancellationToken)
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (11)
60Action<Document, TData> processResult,
93private static Task FindDocumentsWithImplicitObjectCreationExpressionAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
100Action<Document, TData> processResult,
117Action<FinderLocation, TData> processResult,
151IMethodSymbol methodSymbol, FindReferencesDocumentState state, Action<FinderLocation, TData> processResult, TData processResultData, string name, string alias, CancellationToken cancellationToken)
171Action<FinderLocation, TData> processResult,
185Action<FinderLocation, TData> processResult,
196Action<FinderLocation, TData> processResult,
217Action<FinderLocation, TData> processResult,
228Action<FinderLocation, TData> processResult,
289Action<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)
52Action<Document, TData> processResult,
93private static Task FindDocumentsWithDeconstructionAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
96private static Task FindDocumentsWithAwaitExpressionAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
99private static Task FindDocumentsWithCollectionInitializersAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
121Action<FinderLocation, TData> processResult,
151Action<FinderLocation, TData> processResult,
161Action<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.OpenAI (2)
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 (2)
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;
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 (1)
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\Future.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,
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (6)
3819public Task ContinueWith(Action<Task, object?> continuationAction, object? state)
3842public Task ContinueWith(Action<Task, object?> continuationAction, object? state, CancellationToken cancellationToken)
3870public Task ContinueWith(Action<Task, object?> continuationAction, object? state, TaskScheduler scheduler)
3904public Task ContinueWith(Action<Task, object?> continuationAction, object? state, TaskContinuationOptions continuationOptions)
3945public Task ContinueWith(Action<Task, object?> continuationAction, object? state, CancellationToken cancellationToken,
3952private Task ContinueWith(Action<Task, object?> continuationAction, object? state, TaskScheduler scheduler,
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)
414protected AsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
480public AsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
561public BlockedReadAsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
572public BlockedWriteAsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
585public WaitingReadAsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken = default, bool pooled = false, Action<object?, CancellationToken>? cancellationCallback = null) :
595public 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)
537public static ParallelLoopResult For(int fromInclusive, int toExclusive, Action<int, ParallelLoopState> body)
564public static ParallelLoopResult For(long fromInclusive, long toExclusive, Action<long, ParallelLoopState> body)
602public static ParallelLoopResult For(int fromInclusive, int toExclusive, ParallelOptions parallelOptions, Action<int, ParallelLoopState> body)
642Action<long, ParallelLoopState> body)
918Action<TInt, ParallelLoopState>? bodyWithState,
1252public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, Action<TSource, ParallelLoopState> body)
1293public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Action<TSource, ParallelLoopState> body)
1639Action<TSource, ParallelLoopState>? bodyWithState,
1697Action<TSource, ParallelLoopState>? bodyWithState,
1756Action<TSource, ParallelLoopState>? bodyWithState,
1890Action<TSource, ParallelLoopState> body)
2238Action<TSource, ParallelLoopState> body)
2510Action<TSource, ParallelLoopState>? bodyWithState,
System.Windows.Forms (1)
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)
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)