# Class RealTimeTrackingExtensions OptimaJet.Workflow.RealTimeTrackingPlugin.RealTimeTrackingExtensions Extension methods for [RealTimeTrackingPlugin](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin/RealTimeTrackingPlugin/). Namespace: [OptimaJet.Workflow.RealTimeTrackingPlugin](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin/) ```csharp public static class RealTimeTrackingExtensions ``` ## Methods `public static HubEndpointConventionBuilder MapRealTimeTracking(this IEndpointRouteBuilder endpoints, string pattern = "/workflowHub")` Maps real-time tracking to the application by adding a signalR hub endpoint. ### Parameters | Name | Type | Description | | --- | --- | --- | | `endpoints` | `IEndpointRouteBuilder` | The [IEndpointRouteBuilder](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.routing.iendpointroutebuilder) to map the real-time tracking endpoint to. | | `pattern` | `String` | The pattern to match for the real-time tracking endpoint. Default value is "/workflowHub". | ### Returns | Type | Description | | --- | --- | | `HubEndpointConventionBuilder` | The [HubEndpointConventionBuilder](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.builder.hubendpointconventionbuilder) used to further configure the real-time tracking endpoint. | `public static IServiceCollection AddRealTimeTracking(this IServiceCollection services)` Adds real-time tracking to the application. ### Parameters | Name | Type | Description | | --- | --- | --- | | `services` | `IServiceCollection` | The [IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection) to add the real-time tracking services to. | ### Returns | Type | Description | | --- | --- | | `IServiceCollection` | The updated [IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection). | [Previous NotifyMethods](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin/NotifyMethods/) [Next RealTimeTrackingPlugin](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin/RealTimeTrackingPlugin/)