LoggerExternalScopeProvider.ForEachScope<TState>(Action<Object,TState>, TState) 方法
定义
按创建顺序对每个当前活动的作用域对象执行回叫。Executes callback for each currently active scope objects in order of creation. 保证所有回叫都通过此方法进行内联调用。All callbacks are guaranteed to be called inline from this method.
public:
generic <typename TState>
virtual void ForEachScope(Action<System::Object ^, TState> ^ callback, TState state);
public void ForEachScope<TState> (Action<object,TState> callback, TState state);
abstract member ForEachScope : Action<obj, 'State> * 'State -> unit
override this.ForEachScope : Action<obj, 'State> * 'State -> unit
Public Sub ForEachScope(Of TState) (callback As Action(Of Object, TState), state As TState)
类型参数
- TState
参数
- state
- TState