Show / Hide Table of Contents

Delegate ProfilerProvider

Represents a method that provides an IProfiler for a Worker, or null if profiling is not desired.

Namespace: Moth.Tasks
Assembly: Moth.Tasks.dll
Syntax
public delegate IProfiler ProfilerProvider(Worker worker);
Parameters
Type Name Description
Worker worker

The Worker.

Returns
Type Description
IProfiler

An IProfiler for the worker, or null if profiling is not desired.

Remarks

The method does not have to provide a unique IProfiler for each Worker, yet in that case it must be able to differentiate between Workers on its own, so as their calls to BeginTask(String) and EndTask() don't interfere.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX