< Summary

Information
Class: Elsa.Workflows.InitializationContext
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Contracts/IInitializable.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 17
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ServiceProvider()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Contracts/IInitializable.cs

#LineLine coverage
 1namespace Elsa.Workflows;
 2
 3/// <summary>
 4/// When implemented by an activity, it is invoked when the graph is built.
 5/// </summary>
 6public interface IInitializable : IActivity
 7{
 8    /// <summary>
 9    /// Called by the system to initialize the activity.
 10    /// </summary>
 11    ValueTask InitializeAsync(InitializationContext context);
 12}
 13
 14/// <summary>
 15/// Provides access to contextual services and information.
 16/// </summary>
 182517public record InitializationContext(IServiceProvider ServiceProvider, CancellationToken CancellationToken);

Methods/Properties

get_ServiceProvider()