IExternalScopeProvider.ForEachScope<TState> Method

Definition

Executes callback for each currently active scope objects in order of creation. All callbacks are guaranteed to be called inline from this method.

public void ForEachScope<TState>(Action<object?,TState> callback, TState state);

Type Parameters

TState

The type of state to accept.

Parameters

callback
Action<Object,TState>

The callback to be executed for every scope object.

state
TState

The state object to be passed into the callback.

Applies to

Produkt Wersje
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)