Table of Contents

Class WorkflowsServiceCollectionExtensions

Namespace
Acuit.Pinpoint.Workflows
Assembly
Acuit.Pinpoint.Workflows.dll

Service collection extensions for initializing the Acuit.Pinpoint.Workflows library.

public static class WorkflowsServiceCollectionExtensions
Inheritance
WorkflowsServiceCollectionExtensions
Inherited Members

Methods

AddWorkflows(IServiceCollection)

Adds Acuit.Pinpoint.Workflows services to the service collection and initializes the Acuit.Pinpoint.Workflows library.

public static IServiceCollection AddWorkflows(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

The services instance, to enable chaining.

Remarks

This adds a singleton IExpressionEnvironment service if one has not already been added to the service collection. The service, if added, will use the implementation provided by ExpressionEnvironment. See that class's constructor for its required services.

It configures the expression environment options by adding the following:

  • Assembly reference: Acuit.Pinpoint.Workflows
  • Assembly reference: Microsoft.CSharp
  • Namespace import: System
  • Namespace import: System.Linq

Options services must be configured in the service collection (e.g., via AddOptions(IServiceCollection)).