2331 references to Action
aspire (3)
Aspire.Azure.Data.Tables.Tests (4)
Aspire.Azure.Messaging.EventHubs.Tests (20)
Aspire.Azure.Messaging.ServiceBus.Tests (4)
Aspire.Azure.Messaging.WebPubSub.Tests (5)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
Aspire.Azure.Npgsql.Tests (4)
Aspire.Azure.Search.Documents.Tests (4)
Aspire.Azure.Security.KeyVault.Tests (9)
Aspire.Azure.Storage.Blobs.Tests (4)
Aspire.Azure.Storage.Queues.Tests (8)
Aspire.Cli.Tests (7)
Aspire.Confluent.Kafka.Tests (10)
Aspire.Dashboard (4)
Aspire.Dashboard.Components.Tests (1)
Aspire.Hosting.Azure.Tests (19)
Aspire.Microsoft.Azure.Cosmos.Tests (4)
Aspire.Microsoft.Data.SqlClient.Tests (4)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (4)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (3)
Aspire.Milvus.Client.Tests (4)
Aspire.MongoDB.Driver.Tests (4)
Aspire.MongoDB.Driver.v3.Tests (4)
Aspire.MySqlConnector.Tests (4)
Aspire.NATS.Net.Tests (6)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
Aspire.Npgsql.Tests (4)
Aspire.Oracle.EntityFrameworkCore.Tests (3)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (3)
Aspire.Qdrant.Client.Tests (4)
Aspire.RabbitMQ.Client.Tests (5)
Aspire.RabbitMQ.Client.v7.Tests (1)
Aspire.Seq.Tests (2)
Aspire.StackExchange.Redis (2)
Aspire.StackExchange.Redis.DistributedCaching.Tests (4)
Aspire.StackExchange.Redis.OutputCaching.Tests (4)
Aspire.StackExchange.Redis.Tests (4)
BasicWebSite (4)
BinaryFormatTests (3)
ClientSample (6)
ConfigurationSchemaGenerator.Tests (2)
dotnet-dev-certs (1)
dotnet-getdocument (1)
dotnet-openapi (1)
dotnet-sql-cache (1)
dotnet-svcutil-lib (25)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (14)
319public void EnqueueAndDispatch(T item, Action dequeuedCallback)
324public void EnqueueAndDispatch(Exception exception, Action dequeuedCallback, bool canDispatchOnThisThread)
330public void EnqueueAndDispatch(T item, Action dequeuedCallback, bool canDispatchOnThisThread)
336public bool EnqueueWithoutDispatch(T item, Action dequeuedCallback)
342public bool EnqueueWithoutDispatch(Exception exception, Action dequeuedCallback)
543private static void InvokeDequeuedCallback(Action dequeuedCallback)
551private static void InvokeDequeuedCallbackLater(Action dequeuedCallback)
573Action dequeuedCallback = (Action)state;
747private Action _dequeuedCallback;
751public Item(T value, Action dequeuedCallback)
756public Item(Exception exception, Action dequeuedCallback)
761private Item(T value, Exception exception, Action dequeuedCallback)
768public Action DequeuedCallback
dotnet-user-jwts (1)
dotnet-user-secrets (1)
GenerateDocumentationAndConfigFiles (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
GetDocument.Insider (1)
IdeBenchmarks (1)
IIS.Tests (1)
InteropClient (1)
Metrics (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Metrics.Legacy (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.Arcade.Test.Common (3)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Components (17)
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Authorization.Tests (2)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Microsoft.AspNetCore.Components.Forms (2)
Microsoft.AspNetCore.Components.Forms.Tests (2)
Microsoft.AspNetCore.Components.QuickGrid.Tests (2)
Microsoft.AspNetCore.Components.Server.Tests (3)
Microsoft.AspNetCore.Components.Tests (79)
RendererTest.cs (29)
1021builder.AddComponentParameter(1, nameof(EventComponent.OnClickAction), (Action)parentComponent.SomeMethod);
1062builder.AddComponentParameter(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1104builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)parentComponent.SomeMethod));
1142builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1223builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action)parentComponent.SomeMethod));
1261builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action)(() =>
1341builder.AddComponentParameter(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1374builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1442builder.AddComponentParameter(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1475builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1544builder.AddComponentParameter(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1577builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
2280builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception1));
2284builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception2));
2563builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count1++; }));
2567builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count2++; throw exception1; }));
2571builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count3++; }));
2576builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count4++; throw exception2; }));
2580builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count5++; }));
4242builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception1));
4246builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception2));
4907builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception1));
5289public Action OnClickAction { get; set; }
5501public Action OnAfterRenderLogic { get; set; }
5528public Action DisposeAction { get; set; }
5616public Action OnEvent { get; set; }
5885public Action OnAfterRenderComplete { get; set; }
5929private readonly Action _callback;
5931public CallbackOnRenderComponent(Action callback)
RenderTreeUpdaterTest.cs (14)
20builder.AddAttribute(1, "eventname", (Action)(() => { }));
33frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1),
48builder.AddAttribute(1, "eventname", (Action)(() => { }));
61frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1),
73builder.AddAttribute(1, "eventname", (Action)(() => { }));
78builder.AddAttribute(4, "eventname", (Action)(() => { }));
94frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1),
97frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 4),
111builder.AddAttribute(1, "eventname", (Action)(() => { }));
125frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1));
136builder.AddAttribute(1, "eventname", (Action)(() => { }));
149frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1));
164builder.AddAttribute(4, "eventname", (Action)(() => { }));
183frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 4));
Microsoft.AspNetCore.Components.Web.Tests (2)
Microsoft.AspNetCore.Components.WebAssembly (5)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.Photino (4)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (3)
Microsoft.AspNetCore.Cryptography.Internal.Tests (1)
Microsoft.AspNetCore.Cryptography.KeyDerivation.Tests (1)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Hosting.Abstractions (6)
Microsoft.AspNetCore.Hosting.Tests (23)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Connections (2)
Microsoft.AspNetCore.Http.Extensions (20)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (8)
26typeof(Action<object, Action>), // onCompletedMethod
27typeof(Action<object, Action>) // unsafeOnCompletedMethod
334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
335var onCompletedFunc = Expression.Lambda<Action<object, Action>>(
343Action<object, Action>? unsafeOnCompletedFunc = null;
350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>(
380Expression.Constant(unsafeOnCompletedFunc, typeof(Action<object, Action>)));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (10)
22private readonly Action<object, Action> _onCompletedMethod;
23private readonly Action<object, Action> _unsafeOnCompletedMethod;
48Action<object, Action> onCompletedMethod,
49Action<object, Action> unsafeOnCompletedMethod)
70private readonly Action<object, Action> _onCompletedMethod;
71private readonly Action<object, Action> _unsafeOnCompletedMethod;
77Action<object, Action> onCompletedMethod,
78Action<object, Action> unsafeOnCompletedMethod)
91public void OnCompleted(Action continuation)
96public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.Http.Extensions.Tests (4)
Microsoft.AspNetCore.Http.Results.Tests (1)
Microsoft.AspNetCore.InternalTesting (11)
ExceptionAssertions.cs (9)
20public static TException Throws<TException>(Action testCode)
34public static TException Throws<TException>(Action testCode, string exceptionMessage)
82public static ArgumentException ThrowsArgument(Action testCode, string paramName, string exceptionMessage)
88Action testCode,
135public static ArgumentNullException ThrowsArgumentNull(Action testCode, string paramName)
152public static ArgumentException ThrowsArgumentNullOrEmpty(Action testCode, string paramName)
176public static ArgumentException ThrowsArgumentNullOrEmptyString(Action testCode, string paramName)
201public static ArgumentOutOfRangeException ThrowsArgumentOutOfRange(Action testCode, string paramName, string exceptionMessage, object actualValue = null)
223private static Exception RecordException(Action testCode)
Microsoft.AspNetCore.InternalTesting.Tests (2)
Microsoft.AspNetCore.JsonPatch (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Microsoft.AspNetCore.Mvc.Core (28)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (8)
26typeof(Action<object, Action>), // onCompletedMethod
27typeof(Action<object, Action>) // unsafeOnCompletedMethod
334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
335var onCompletedFunc = Expression.Lambda<Action<object, Action>>(
343Action<object, Action>? unsafeOnCompletedFunc = null;
350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>(
380Expression.Constant(unsafeOnCompletedFunc, typeof(Action<object, Action>)));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (10)
22private readonly Action<object, Action> _onCompletedMethod;
23private readonly Action<object, Action> _unsafeOnCompletedMethod;
48Action<object, Action> onCompletedMethod,
49Action<object, Action> unsafeOnCompletedMethod)
70private readonly Action<object, Action> _onCompletedMethod;
71private readonly Action<object, Action> _unsafeOnCompletedMethod;
77Action<object, Action> onCompletedMethod,
78Action<object, Action> unsafeOnCompletedMethod)
91public void OnCompleted(Action continuation)
96public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
Microsoft.AspNetCore.Mvc.Razor.Test (4)
Microsoft.AspNetCore.Mvc.RazorPages (8)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.AspNetCore.OpenApi (20)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (8)
26typeof(Action<object, Action>), // onCompletedMethod
27typeof(Action<object, Action>) // unsafeOnCompletedMethod
334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
335var onCompletedFunc = Expression.Lambda<Action<object, Action>>(
343Action<object, Action>? unsafeOnCompletedFunc = null;
350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>(
380Expression.Constant(unsafeOnCompletedFunc, typeof(Action<object, Action>)));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (10)
22private readonly Action<object, Action> _onCompletedMethod;
23private readonly Action<object, Action> _unsafeOnCompletedMethod;
48Action<object, Action> onCompletedMethod,
49Action<object, Action> unsafeOnCompletedMethod)
70private readonly Action<object, Action> _onCompletedMethod;
71private readonly Action<object, Action> _unsafeOnCompletedMethod;
77Action<object, Action> onCompletedMethod,
78Action<object, Action> unsafeOnCompletedMethod)
91public void OnCompleted(Action continuation)
96public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.Razor.Runtime.Test (4)
Microsoft.AspNetCore.ResponseCaching (2)
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Shared.Tests (29)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (8)
26typeof(Action<object, Action>), // onCompletedMethod
27typeof(Action<object, Action>) // unsafeOnCompletedMethod
334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
335var onCompletedFunc = Expression.Lambda<Action<object, Action>>(
343Action<object, Action>? unsafeOnCompletedFunc = null;
350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>(
380Expression.Constant(unsafeOnCompletedFunc, typeof(Action<object, Action>)));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (10)
22private readonly Action<object, Action> _onCompletedMethod;
23private readonly Action<object, Action> _unsafeOnCompletedMethod;
48Action<object, Action> onCompletedMethod,
49Action<object, Action> unsafeOnCompletedMethod)
70private readonly Action<object, Action> _onCompletedMethod;
71private readonly Action<object, Action> _unsafeOnCompletedMethod;
77Action<object, Action> onCompletedMethod,
78Action<object, Action> unsafeOnCompletedMethod)
91public void OnCompleted(Action continuation)
96public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.SignalR.Client.Core (8)
Microsoft.AspNetCore.SignalR.Core (20)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (8)
26typeof(Action<object, Action>), // onCompletedMethod
27typeof(Action<object, Action>) // unsafeOnCompletedMethod
334var onCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
335var onCompletedFunc = Expression.Lambda<Action<object, Action>>(
343Action<object, Action>? unsafeOnCompletedFunc = null;
350var unsafeOnCompletedParam2 = Expression.Parameter(typeof(Action), "continuation");
351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>(
380Expression.Constant(unsafeOnCompletedFunc, typeof(Action<object, Action>)));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (10)
22private readonly Action<object, Action> _onCompletedMethod;
23private readonly Action<object, Action> _unsafeOnCompletedMethod;
48Action<object, Action> onCompletedMethod,
49Action<object, Action> unsafeOnCompletedMethod)
70private readonly Action<object, Action> _onCompletedMethod;
71private readonly Action<object, Action> _unsafeOnCompletedMethod;
77Action<object, Action> onCompletedMethod,
78Action<object, Action> unsafeOnCompletedMethod)
91public void OnCompleted(Action continuation)
96public void UnsafeOnCompleted(Action continuation)
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.TestHost (8)
Microsoft.Build.Framework (1)
Microsoft.Cci.Extensions (11)
Microsoft.CodeAnalysis (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.Analyzers (16)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.BannedApiAnalyzers (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.CodeStyle (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.Collections.Package (5)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (15)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (6)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Microsoft.CodeAnalysis.Debugging.Package (5)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.EditorFeatures (53)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (60)
AbstractCommandHandlerTestState.cs (47)
256public void SendBackspace(Action<BackspaceKeyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
259public void SendDelete(Action<DeleteKeyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
262public void SendWordDeleteToStart(Action<WordDeleteToStartCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
265public void SendEscape(Action<EscapeKeyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
271public void SendUpKey(Action<UpKeyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
274public void SendDownKey(Action<DownKeyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
277public void SendTab(Action<TabKeyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
283public void SendBackTab(Action<BackTabKeyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
289public void SendReturn(Action<ReturnKeyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
295public void SendPageUp(Action<PageUpKeyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
298public void SendPageDown(Action<PageDownKeyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
301public void SendCopy(Action<CopyCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
304public void SendCut(Action<CutCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
307public void SendPaste(Action<PasteCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
310public void SendInvokeCompletionList(Action<InvokeCompletionListCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
313public void SendCommitUniqueCompletionListItem(Action<CommitUniqueCompletionListItemCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
316public void SendInsertSnippetCommand(Action<InsertSnippetCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
322public void SendSurroundWithCommand(Action<SurroundWithCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
328public void SendInvokeSignatureHelp(Action<InvokeSignatureHelpCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
331public void SendTypeChar(char typeChar, Action<TypeCharCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
334public void SendTypeChars(string typeChars, Action<TypeCharCommandArgs, Action, CommandExecutionContext> commandHandler)
343public void SendSave(Action<SaveCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
346public void SendSelectAll(Action<SelectAllCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
349public void SendToggleCompletionMode(Action<ToggleCompletionModeCommandArgs, Action, CommandExecutionContext> commandHandler, Action nextHandler)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (4)
Microsoft.CodeAnalysis.Extensions.Package (6)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.ExternalAccess.Apex (2)
Microsoft.CodeAnalysis.Features (11)
Microsoft.CodeAnalysis.Features.Test.Utilities (3)
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.InteractiveHost (14)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (15)
Microsoft.CodeAnalysis.PooledObjects.Package (5)
PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.PublicApiAnalyzers (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.ResxSourceGenerator (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
Microsoft.CodeAnalysis.Test.Utilities (6)
Microsoft.CodeAnalysis.Threading.Package (14)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (23)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Microsoft.Data.Analysis (2)
Microsoft.DotNet.Build.Manifest.Tests (1)
Microsoft.DotNet.Build.Tasks.Feed.Tests (8)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (4)
Microsoft.DotNet.MacOsPkg.Tests (1)
Microsoft.DotNet.NuGetRepack.Tests (3)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SignTool.Tests (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
Microsoft.DotNet.VersionTools.Cli.Tests (1)
Microsoft.DotNet.XliffTasks (1)
Microsoft.DotNet.XUnitAssert.Tests (97)
AsyncCollectionAssertsTests.cs (15)
636 Action action,
659 void validateError(Action action)
742 Action action,
787 Action action,
868 Action action,
920 Action action,
960 Action action,
1021 Action action,
1091 void validateError(Action action)
1136 Action action,
1186 Action action,
1227 Action action,
1269 Action action,
1327 Action action,
1354 Action action,
Microsoft.Extensions.AI.Evaluation (1)
Microsoft.Extensions.AI.Evaluation.Console (2)
Microsoft.Extensions.AI.Evaluation.NLP (1)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.Caching.SqlServer (1)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (7)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
Microsoft.Extensions.Http.Polly.Tests (1)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.ML (1)
Microsoft.Extensions.Options (3)
Microsoft.Extensions.Primitives (2)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Gen.MetadataExtractor (2)
Microsoft.Maui (28)
Microsoft.Maui.Controls (32)
AnimationExtensions.cs (6)
124 Action abort = () =>
184 Action animate = () => AnimateInternal(self, animationManager, name, transform, callback, rate, length, easing, finished, repeat);
191 public static void AnimateKinetic(this IAnimatable self, string name, Func<double, double, bool> callback, double velocity, double drag, Action finished = null, IAnimationManager animationManager = null)
196 Action animate = () => AnimateKineticInternal(self, animationManager, name, callback, velocity, drag, finished);
286 static void AnimateKineticInternal(IAnimatable self, IAnimationManager animationManager, string name, Func<double, double, bool> callback, double velocity, double drag, Action finished = null)
376 static void DoAction(IAnimatable self, Action action)
Microsoft.Maui.Controls.Foldable (3)
Microsoft.Maui.Essentials (3)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML.Interactive (2)
Microsoft.ML.Core (12)
Microsoft.ML.Data (64)
Transforms\TransformBase.cs (10)
184var getters = CreateGetters(input, activeColumns, out Action disp);
189protected abstract Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disp);
197private readonly Action _disposer;
203public RowImpl(DataViewRow input, RowToRowMapperTransformBase parent, DataViewSchema schema, Delegate[] getters, Action disposer)
692protected abstract Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer);
818protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disposer)
836Action disp;
850private readonly Action _disposer;
864Action masterDisposer = null;
869_getters[iinfo] = parent.GetGetterCore(Ch, Input, iinfo, out Action disposer);
Microsoft.ML.Ensemble (7)
PipelineEnsemble.cs (7)
110var scoreGetter = CreateScoreGetter(input, out Action disposer);
114internal abstract Delegate CreateScoreGetter(DataViewRow input, out Action disposer);
130internal override Delegate CreateScoreGetter(DataViewRow input, out Action disposer)
162public ValueGetter<Single> GetLabelGetter(DataViewRow input, int i, out Action disposer)
174public ValueGetter<Single> GetWeightGetter(DataViewRow input, int i, out Action disposer)
333var scoreGetter = (ValueGetter<Single>)bound.CreateScoreGetter(curs, out Action disposer);
337var labelGetter = bound.GetLabelGetter(curs, 0, out Action disp);
Microsoft.ML.FastTree (22)
Microsoft.ML.ImageAnalytics (8)
ImageLoader.cs (3)
206protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
216private Delegate MakeGetterImageDataViewType(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
263private Delegate MakeGetterVectorDataViewByteType(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.KMeansClustering (4)
Microsoft.ML.LightGbm (1)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.OnnxTransformer (2)
Microsoft.ML.PCA (1)
Microsoft.ML.TensorFlow (2)
Microsoft.ML.TestFramework (2)
Microsoft.ML.Tests (2)
Microsoft.ML.TimeSeries (17)
SequentialTransformerBase.cs (9)
613var getters = _mapper.CreateGetters(input, active, out Action disposer);
614var pingers = _mapper.CreatePinger(input, active, out Action pingerDisposer);
625private readonly Action _disposer;
635public RowImpl(ColumnBindings bindings, DataViewRow input, Delegate[] getters, Action<PingerArgument> pinger, Action disposer)
938var getters = _mapper.CreateGetters(input, pred, out Action disp);
939var pingers = _mapper.CreatePinger(input, pred, out Action pingerDisp);
949private readonly Action _disposer;
960DataViewSchema schema, Delegate[] getters, Action<PingerArgument> pinger, Action disposer)
1022private readonly Action _disposer;
Microsoft.ML.Tokenizers.Data.Tests (1)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.TorchSharp (7)
Microsoft.ML.Transforms (32)
Microsoft.ML.Vision (1)
Microsoft.VisualBasic.Tests (12)
Microsoft.VisualStudio.LanguageServices (10)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.Implementation (3)
mscorlib (1)
netstandard (1)
PresentationCore (4)
PresentationCore.Tests (17)
System\Windows\DataObjectTests.cs (9)
55Action action = () => data.SetData(null!);
81Action action = () => data.SetData((string)null!, "Some Data");
132Action act = () => data.SetData(key, testData);
143Action act = () => data.SetData(string.Empty, testData);
207Action act = () => data.SetData(key!, testData);
218Action act = () => data.SetData(key, null);
272Action act = () => data.SetData(key, null, true);
283Action act = () => data.SetData((string)null!, testData, true);
294Action act = () => data.SetData(string.Empty, testData, true);
PresentationFramework (36)
Roslyn.Diagnostics.Analyzers (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Roslyn.Test.PdbUtilities (1)
Roslyn.VisualStudio.DiagnosticsWindow (2)
Roslyn.VisualStudio.Next.UnitTests (1)
RunTests (1)
ScenarioTests.Common.Tests (1)
System.ComponentModel.Composition (24)
System.Composition.Hosting (10)
System.Composition.Runtime (6)
System.Core (1)
System.Diagnostics.DiagnosticSource (6)
System.Drawing.Common.Tests (16)
System\Drawing\Imaging\Effects\EffectsTests.cs (15)
43Action action = () => _ = new BlackSaturationCurveEffect(CurveChannel.All, blackPoint);
69Action action = () => _ = new WhiteSaturationCurveEffect(CurveChannel.All, whitePoint);
92Action action = () => _ = new BlurEffect(radius, expandEdge);
118Action action = () => _ = new BrightnessContrastEffect(brightnessLevel, contrastLevel);
146Action action = () => _ = new ColorBalanceEffect(cyanRed, magentaGreen, yellowBlue);
172Action action = () => _ = new LevelsEffect(highlight, midtone, shadow);
223Action action = () =>
263Action action = () => _ = new ContrastCurveEffect(CurveChannel.All, contrast);
283Action action = () => _ = new DensityCurveEffect(CurveChannel.All, density);
303Action action = () => _ = new ExposureCurveEffect(CurveChannel.All, exposure);
323Action action = () => _ = new HighlightCurveEffect(CurveChannel.All, highlight);
343Action action = () => _ = new MidtoneCurveEffect(CurveChannel.All, midtone);
363Action action = () => _ = new ShadowCurveEffect(CurveChannel.All, shadow);
384Action action = () => _ = new SharpenEffect(radius, amount);
406Action action = () => _ = new TintEffect(hue, amount);
System.Linq.Expressions (4)
System.Net.WebClient (7)
System.Private.CoreLib (93)
System.Private.Windows.Core.Tests (28)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (21)
261Action action = () => BinaryFormatUtilities.TryReadObjectFromStream(stream, in request, out Array? _);
350Action writer = () => WriteObjectToStream(value);
351Action reader = () => TryReadObjectFromStream(out object? _);
378Action writer = () => WriteObjectToStream(value, restrictSerialization: true);
418Action read = () => TryReadObjectFromStream<List<object>>(ObjectListResolver, out _);
465Action action = () => BinaryFormatUtilities.TryReadObjectFromStream(stream, ref request, out BaseClass? _);
485Action action = () => BinaryFormatUtilities.TryReadObjectFromStream(stream, ref request, out BaseClass? result);
524Action action = () => BinaryFormatUtilities.TryReadObjectFromStream(stream, ref request, out MyStruct? result);
557Action action = () => BinaryFormatUtilities.TryReadObjectFromStream(stream, ref request, out int? result).Should().BeTrue();
610Action action = () => BinaryFormatUtilities.TryReadObjectFromStream(stream, ref request, out float result);
650Action read = () => ReadPredefinedObjectFromStream<int?[]>(NotSupportedResolver, out _);
665Action action = () => TryReadObjectFromStream<int?[]>(NotSupportedResolver, out _);
686Action action = () => ReadObjectFromStream<uint[,]>(restrictDeserialization, NotSupportedResolver, out _);
776Action read = () => TryReadObjectFromStream<TestData>(InvalidResolver, out _);
790Action action = () => RoundTripOfType<TestDataBase.InnerData>(value, resolver: null, out var result);
802Action action = () => RoundTripOfType<TestDataBase.InnerData>(value, resolver: null, out var result);
832Action action = () => BinaryFormatUtilities.TryReadObjectFromStream(stream, in request, out MyClass1? result);
879Action read = () => ReadObjectFromStream<MyClass1>(restrictDeserialization, resolver: null, out _);
893Action read = () => ReadObjectFromStream<MyClass1>(restrictDeserialization, resolver: null, out _);
917Action read = () => ReadObjectFromStream<MyClass1>(restrictDeserialization: true, MyClass1.MyExactMatchResolver, out _);
930Action read = () => ReadObjectFromStream<MyClass1>(restrictDeserialization: true, MyClass1.MyExactMatchResolver, out _);
System.Runtime (1)
System.Runtime.InteropServices.JavaScript (2)
System.Security.Principal.Windows (1)
System.ServiceModel.Federation (2)
System.ServiceModel.Primitives (24)
Internals\System\Runtime\InputQueue.cs (13)
374public void EnqueueAndDispatch(T item, Action dequeuedCallback)
379public void EnqueueAndDispatch(Exception exception, Action dequeuedCallback, bool canDispatchOnThisThread)
385public void EnqueueAndDispatch(T item, Action dequeuedCallback, bool canDispatchOnThisThread)
391public bool EnqueueWithoutDispatch(T item, Action dequeuedCallback)
397public bool EnqueueWithoutDispatch(Exception exception, Action dequeuedCallback)
648private static void InvokeDequeuedCallback(Action dequeuedCallback)
656private static void InvokeDequeuedCallbackLater(Action dequeuedCallback)
678Action dequeuedCallback = (Action)state;
854public Item(T value, Action dequeuedCallback)
859public Item(Exception exception, Action dequeuedCallback)
864private Item(T value, Exception exception, Action dequeuedCallback)
871public Action DequeuedCallback { get; }
System.Text.RegularExpressions (1)
System.Threading.RateLimiting (7)
System.Threading.Tasks.Dataflow (10)
System.Threading.Tasks.Parallel (6)
System.Windows.Controls.Ribbon (16)
System.Windows.Forms (8)
System.Windows.Forms.Design (1)
System.Windows.Forms.Design.Tests (60)
System.Windows.Forms.Interop.Tests (1)
System.Windows.Forms.Primitives (3)
System.Windows.Forms.Primitives.TestUtilities (15)
System.Windows.Forms.Tests (279)
System.Windows.Forms.TestUtilities (2)
System.Windows.Forms.UI.IntegrationTests (2)
System.Windows.Input.Manipulations (1)
System.Windows.Presentation (6)
System\Windows\Threading\DispatcherExtensions.cs (6)
28public static DispatcherOperation BeginInvoke(this Dispatcher dispatcher, Action action)
55public static DispatcherOperation BeginInvoke(this Dispatcher dispatcher, Action action, DispatcherPriority priority)
74public static void Invoke(this Dispatcher dispatcher, Action action)
97public static void Invoke(this Dispatcher dispatcher, Action action, DispatcherPriority priority)
119public static void Invoke(this Dispatcher dispatcher, Action action, TimeSpan timeout)
145public static void Invoke(this Dispatcher dispatcher, Action action, TimeSpan timeout, DispatcherPriority priority)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
Test.Utilities (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
Text.Analyzers (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
37/// Gets an <see cref="Action"/> delegate, which calls <paramref name="unboundAction"/> with the specified
65public static Releaser GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
66=> GetPooledDelegate<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>(unboundAction, argument, out boundAction);
384: AbstractDelegateWithBoundArgument<ActionWithBoundArgument<TArg>, TArg, Action<TArg>, Action>
386protected override Action Bind()
TlsFeaturesObserve (1)
UnitTests.Common (25)
VBCSCompiler.UnitTests (1)
Wasm.Performance.ConsoleHost (1)
Wasm.Performance.Driver (1)
WindowsBase.Tests (7)
WinFormsControlsTest (1)
XmlFileLogger (1)
xunit.assert (34)
EventAsserts.cs (26)
43 Action<Action> attach,
44 Action<Action> detach,
45 Action testCode)
63 Action testCode)
88 Action testCode)
117 Action attach,
118 Action detach,
119 Action testCode)
143 Action testCode)
165 Action testCode)
187 Action testCode)
271 Action<Action> attach,
272 Action<Action> detach,
332 Action<Action> attach,
333 Action<Action> detach,
334 Action testCode)
341 Action handler = () => result = true;
356 Action testCode)
381 Action testCode)
400 Action testCode)
422 Action attach,
423 Action detach,
424 Action testCode)
438 Action<Action> attach,
439 Action<Action> detach,
447 Action handler = () => result = true;
xunit.console (1)