# Class RealTimeTrackingPlugin OptimaJet.Workflow.RealTimeTrackingPlugin.RealTimeTrackingPlugin The RealTimeTrackingPlugin is responsible for providing real-time tracking functionality to the Workflow Engine Designer. Namespace: [OptimaJet.Workflow.RealTimeTrackingPlugin](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin/) ```csharp public class RealTimeTrackingPlugin : IWorkflowPlugin ``` ## Type Hierarchy - RealTimeTrackingPlugin Current type - Implemented interfaces - [IWorkflowPlugin](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins/IWorkflowPlugin/) ## Constructors `public RealTimeTrackingPlugin(NotifierService notifierService)` Creates a new instance of the RealTimeTrackingPlugin class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `notifierService` | `NotifierService` | The notifier service to use for real-time tracking. | `public RealTimeTrackingPlugin(NotifierService notifierService, RealTimeTrackingPluginSettings settings)` Creates a new instance of the RealTimeTrackingPlugin class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `notifierService` | `NotifierService` | The notifier service to use for real-time tracking. | | `settings` | `RealTimeTrackingPluginSettings` | The settings to use for the real-time tracking plugin. | `public RealTimeTrackingPlugin(IServiceProvider serviceProvider)` Creates a new instance of the RealTimeTrackingPlugin class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `serviceProvider` | `IServiceProvider` | The service provider to get instance of NotifierService for real-time tracking. | `public RealTimeTrackingPlugin(IServiceProvider serviceProvider, RealTimeTrackingPluginSettings settings)` Creates a new instance of the RealTimeTrackingPlugin class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `serviceProvider` | `IServiceProvider` | The service provider to get instance of NotifierService for real-time tracking. | | `settings` | `RealTimeTrackingPluginSettings` | The settings to use for the real-time tracking plugin. | ## Properties `public string Name { get; }` The plugin name. `public bool Disabled { get; set; }` Flag to disable plugin, if true - plugin is disabled, false otherwise. `public Dictionary PluginSettings { get; }` The plugin settings. ## Methods `public void OnPluginAdd(WorkflowRuntime runtime, List? schemes = null)` Called when a plugin is added to a runtime. ### Parameters | Name | Type | Description | | --- | --- | --- | | `runtime` | `WorkflowRuntime` | The instance of the runtime. | | `schemes` | `List` | The list of schemes for which the plugin is being added. | `public Task OnRuntimeStartAsync(WorkflowRuntime runtime)` Called when the runtime is started. ### Parameters | Name | Type | Description | | --- | --- | --- | | `runtime` | `WorkflowRuntime` | The instance of the runtime. | ### Returns | Type | Description | | --- | --- | | `Task` | A task that represents the asynchronous operation. | [Previous RealTimeTrackingExtensions](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin/RealTimeTrackingExtensions/) [Next RealTimeTrackingPluginSettings](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin/RealTimeTrackingPluginSettings/)