Skip to main content
Skip table of contents

Use Case Config - Task processor class [VF AgSDK]

If a specific task processor requires a use case configuration, simply add the use case configuration class to the constructor to make it accessible.

Use a use case configuration in task processor

private readonly ILogger<DoSomethingTaskProcessor> _logger;
private readonly ServiceEndpoint _serviceEndpoint;

public DoSomethingTaskProcessor(ILogger<DoSomethingTaskProcessor> logger,
ExampleUseCaseConfiguration useCaseConfiguration)
{
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
_serviceEndpoint = useCaseConfiguration?.ExampleEndpoint;
}


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.