77 references to SendOrPostCallback
dotnet-svcutil-lib (9)
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (4)
401EndOperationDelegate endOperationDelegate, SendOrPostCallback operationCompletedCallback, object userState) 485private SendOrPostCallback _completionCallback; 487internal AsyncOperationContext(AsyncOperation asyncOperation, EndOperationDelegate endDelegate, SendOrPostCallback completionCallback) 510internal SendOrPostCallback CompletionCallback
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
45private static Type s_sendOrPostCallbackType = typeof(SendOrPostCallback);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ThreadBehavior.cs (4)
14private SendOrPostCallback _threadAffinityStartCallback; 15private SendOrPostCallback _threadAffinityEndCallback; 24private SendOrPostCallback ThreadAffinityStartCallbackDelegate 35private SendOrPostCallback ThreadAffinityEndCallbackDelegate
Microsoft.AspNetCore.Components (2)
Rendering\RendererSynchronizationContext.cs (2)
160public override void Post(SendOrPostCallback d, object? state) 169public override void Send(SendOrPostCallback d, object? state)
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
2188public override void Post(SendOrPostCallback d, object? state)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (5)
src\Graphics\src\Graphics\Platforms\Windows\AsyncPump.cs (5)
91 private readonly BlockingCollection<KeyValuePair<SendOrPostCallback, object>> _mQueue = 92 new BlockingCollection<KeyValuePair<SendOrPostCallback, object>>(); 99 public override void Post(SendOrPostCallback d, object state) 103 _mQueue.Add(new KeyValuePair<SendOrPostCallback, object>(d, state)); 107 public override void Send(SendOrPostCallback d, object state)
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Devices\Network.Availability.vb (1)
24Private _networkAvailabilityChangedCallback As SendOrPostCallback
mscorlib (1)
parent\ref\mscorlib.cs (1)
1150[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.SendOrPostCallback))]
netstandard (1)
netstandard.cs (1)
2102[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.SendOrPostCallback))]
ScenarioTests.Common.Tests (12)
ScenarioTestTypes.cs (8)
178private readonly BlockingCollection<KeyValuePair<SendOrPostCallback, object>> _queue = 179new BlockingCollection<KeyValuePair<SendOrPostCallback, object>>(); 186public override void Post(SendOrPostCallback d, object state) 191_queue.Add(new KeyValuePair<SendOrPostCallback, object>(d, state)); 196_queue.Add(new KeyValuePair<SendOrPostCallback, object>(RunOnCapturedState, (d, state, ec))); 199var s = ((SendOrPostCallback d, object state, ExecutionContext ec))obj; 205public override void Send(SendOrPostCallback d, object state) 228KeyValuePair<SendOrPostCallback, object> workItem;
ThreadHoppingSynchronizationContext.cs (4)
13public override void Post(SendOrPostCallback d, object state) 19public override void Send(SendOrPostCallback d, object state) 27(SendOrPostCallback d, object state) = ((SendOrPostCallback, object))param;
System.ComponentModel.EventBasedAsync (5)
System\ComponentModel\AsyncOperation.cs (3)
46public void Post(SendOrPostCallback d, object? arg) 51public void PostOperationCompleted(SendOrPostCallback d, object? arg) 64private void PostCore(SendOrPostCallback d, object? arg, bool markCompleted)
System\ComponentModel\BackgroundWorker.cs (2)
19private readonly SendOrPostCallback _operationCompleted; 20private readonly SendOrPostCallback _progressReporter;
System.IO.Pipelines (2)
System\IO\Pipelines\Pipe.cs (2)
24private static readonly SendOrPostCallback s_syncContextExecutionContextCallback = ExecuteWithExecutionContext!; 25private static readonly SendOrPostCallback s_syncContextExecuteWithoutExecutionContextCallback = ExecuteWithoutExecutionContext!;
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.cs (2)
20private SendOrPostCallback? _onPingCompletedDelegate; 528SendOrPostCallback callback = _onPingCompletedDelegate ??= new SendOrPostCallback(o => { OnPingCompleted((PingCompletedEventArgs)o!); });
System.Private.CoreLib (9)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (1)
1269private static readonly SendOrPostCallback s_postCallback = static state =>
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeAsyncTaskContinuation.cs (1)
168internal static readonly SendOrPostCallback s_postCallback = static state =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Progress.cs (1)
27private readonly SendOrPostCallback _invokeHandlers;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (1)
194private static readonly SendOrPostCallback s_sendOrPostCallbackRunAction = RunAction;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SynchronizationContext.cs (3)
22public virtual void Send(SendOrPostCallback d, object? state) => d(state); 24public virtual void Post(SendOrPostCallback d, object? state) 25=> ThreadPool.QueueUserWorkItem(static s => s.Key(s.Value), new KeyValuePair<SendOrPostCallback, object?>(d, state), preferLocal: false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (1)
367private static readonly SendOrPostCallback s_postCallback = static state =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
597private static readonly SendOrPostCallback s_postCallback = static s =>
System.ServiceModel.Primitives (10)
Internals\System\Runtime\IOThreadScheduler.cs (1)
557public override void Post(SendOrPostCallback d, object state)
Internals\System\Runtime\ServiceModelSynchronizationContext.cs (1)
14public override void Post(SendOrPostCallback d, object state)
System\ServiceModel\ClientBase.cs (4)
812EndOperationDelegate endOperationDelegate, SendOrPostCallback operationCompletedCallback, object userState) 894private SendOrPostCallback _completionCallback; 896internal AsyncOperationContext(AsyncOperation asyncOperation, EndOperationDelegate endDelegate, SendOrPostCallback completionCallback) 907internal SendOrPostCallback CompletionCallback
System\ServiceModel\Dispatcher\ThreadBehavior.cs (4)
13private SendOrPostCallback _threadAffinityStartCallback; 14private SendOrPostCallback _threadAffinityEndCallback; 23private SendOrPostCallback ThreadAffinityStartCallbackDelegate 34private SendOrPostCallback ThreadAffinityEndCallbackDelegate
System.Speech (1)
Internal\AsyncSerializedWorker.cs (1)
254private SendOrPostCallback _workerPostCallback;
System.Threading (1)
src\runtime\artifacts\obj\System.Threading\Release\net11.0\System.Threading.Forwards.cs (1)
25[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.SendOrPostCallback))]
System.Windows.Extensions (1)
System\Media\SoundPlayer.cs (1)
42private readonly SendOrPostCallback _loadAsyncOperationCompleted;
System.Windows.Forms (7)
System\Windows\Forms\Control.cs (1)
6407else if (tme._method is SendOrPostCallback sendOrPostCallback)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
63private SendOrPostCallback? _loadCompletedDelegate; 64private SendOrPostCallback? _loadProgressDelegate;
System\Windows\Forms\ToolTip\KeyboardToolTipStateMachine.cs (2)
47private SendOrPostCallback? _refocusDelayExpirationCallback; 173SendOrPostCallback? expirationCallback = null;
System\Windows\Forms\WindowsFormsSynchronizationContext.cs (2)
76public override void Send(SendOrPostCallback d, object? state) 89public override void Post(SendOrPostCallback d, object? state)
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Animation\HighPrecisionTimer.cs (1)
36private static readonly SendOrPostCallback s_dispatchCallback = static state
UnitTests.Common (6)
TestTypes.cs (6)
268private readonly BlockingCollection<KeyValuePair<SendOrPostCallback, object>> _queue = 269new BlockingCollection<KeyValuePair<SendOrPostCallback, object>>(); 276public override void Post(SendOrPostCallback d, object state) 279_queue.Add(new KeyValuePair<SendOrPostCallback, object>(d, state)); 282public override void Send(SendOrPostCallback d, object state) 305KeyValuePair<SendOrPostCallback, object> workItem;