118 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.AspNetCore.Components.WebView.Photino (6)
PhotinoSynchronizationContext.cs (6)
158public override void Post(SendOrPostCallback d, object state) 167public override void Send(SendOrPostCallback d, object state) 197private void ExecuteSynchronouslyIfPossible(SendOrPostCallback d, object state) 217private Task Enqueue(Task antecedent, SendOrPostCallback d, object state, bool forceAsync = false) 245SendOrPostCallback d, 321public SendOrPostCallback Callback;
Microsoft.AspNetCore.Shared.Tests (4)
SingleThreadedSynchronizationContext.cs (4)
14private readonly BlockingCollection<(SendOrPostCallback Callback, object? State)> _queue = new BlockingCollection<(SendOrPostCallback Callback, object? State)>(); 16public override void Send(SendOrPostCallback d, object? state) // Sync operations 21public override void Post(SendOrPostCallback d, object? state) // Async operations
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (3)
HubConnectionTests.cs (3)
2925private readonly Channel<(SendOrPostCallback, object)> _taskQueue = Channel.CreateUnbounded<(SendOrPostCallback, object)>(); 2935public override void Post(SendOrPostCallback d, object state)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Threading\SynchronizationContextTaskScheduler.cs (1)
17private readonly SendOrPostCallback _postCallback;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
TestExportJoinableTaskContext+DenyExecutionSynchronizationContext.cs (2)
99public override void Post(SendOrPostCallback d, object? state) 119public override void Send(SendOrPostCallback d, object? state)
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
1237public override void Post(SendOrPostCallback d, object? state)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (4)
src\Shared\test\Shared.Tests\SingleThreadedSynchronizationContext.cs (4)
14private readonly BlockingCollection<(SendOrPostCallback Callback, object? State)> _queue = new BlockingCollection<(SendOrPostCallback Callback, object? State)>(); 16public override void Send(SendOrPostCallback d, object? state) // Sync operations 21public override void Post(SendOrPostCallback d, object? state) // Async operations
Microsoft.Extensions.Http.Polly.Tests (4)
src\Shared\test\Shared.Tests\SingleThreadedSynchronizationContext.cs (4)
14private readonly BlockingCollection<(SendOrPostCallback Callback, object? State)> _queue = new BlockingCollection<(SendOrPostCallback Callback, object? State)>(); 16public override void Send(SendOrPostCallback d, object? state) // Sync operations 21public override void Post(SendOrPostCallback d, object? state) // Async operations
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)
mscorlib (1)
src\libraries\shims\mscorlib\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)
23private static readonly SendOrPostCallback s_syncContextExecutionContextCallback = ExecuteWithExecutionContext!; 24private 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.Net.WebClient (12)
System\Net\WebClient.cs (12)
44private SendOrPostCallback? _downloadDataOperationCompleted; 45private SendOrPostCallback? _openReadOperationCompleted; 46private SendOrPostCallback? _openWriteOperationCompleted; 47private SendOrPostCallback? _downloadStringOperationCompleted; 48private SendOrPostCallback? _downloadFileOperationCompleted; 49private SendOrPostCallback? _uploadStringOperationCompleted; 50private SendOrPostCallback? _uploadDataOperationCompleted; 51private SendOrPostCallback? _uploadFileOperationCompleted; 52private SendOrPostCallback? _uploadValuesOperationCompleted; 53private SendOrPostCallback? _reportDownloadProgressChanged; 54private SendOrPostCallback? _reportUploadProgressChanged; 1181private void InvokeOperationCompleted(AsyncOperation asyncOp, SendOrPostCallback callback, AsyncCompletedEventArgs eventArgs)
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Progress.cs (1)
27private readonly SendOrPostCallback _invokeHandlers;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (1)
185private static readonly SendOrPostCallback s_sendOrPostCallbackRunAction = RunAction;
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\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (1)
367private static readonly SendOrPostCallback s_postCallback = static state =>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
597private static readonly SendOrPostCallback s_postCallback = static s =>
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (2)
293private static readonly SendOrPostCallback s_postCallback = static state => 376private static readonly SendOrPostCallback s_postCallback = static state =>
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.Threading (1)
artifacts\obj\System.Threading\Debug\net10.0\System.Threading.Forwards.cs (1)
25[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.SendOrPostCallback))]
System.Windows.Forms (7)
System\Windows\Forms\Control.cs (1)
6181else 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; 172SendOrPostCallback? 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.Tests (7)
System\Windows\Forms\WindowsFormsSynchronizationContextTests.cs (7)
22SendOrPostCallback callback = (actualState) => 41SendOrPostCallback callback = (state) => callCount++; 63SendOrPostCallback callback = (actualState) => 81SendOrPostCallback callback = (actualState) => callCount++; 99SendOrPostCallback callback = (actualState) => callCount++; 122SendOrPostCallback callback = (actualState) => 142SendOrPostCallback callback = (actualState) => callCount++;
System.Windows.Forms.UI.IntegrationTests (2)
Infra\DenyExecutionSynchronizationContext.cs (2)
43public override void Post(SendOrPostCallback d, object? state) 62public override void Send(SendOrPostCallback d, object? 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;