Table of Contents

Class ProgramFileReadActivity

Namespace
Songhay.Activities
Assembly
SonghayCore.dll

Reads a string-content file from the local file system, impersonating the input and output of AmazonS3DownloadToStringActivity

public class ProgramFileReadActivity : IActivityTask<StorageActivityInput?, EndpointContentResult<string?>>
Inheritance
ProgramFileReadActivity
Implements
Inherited Members
Extension Methods

Constructors

ProgramFileReadActivity(ILogger<ProgramFileReadActivity>)

Reads a string-content file from the local file system, impersonating the input and output of AmazonS3DownloadToStringActivity

public ProgramFileReadActivity(ILogger<ProgramFileReadActivity> logger)

Parameters

logger ILogger<ProgramFileReadActivity>

the ILogger

Methods

StartAsync(StorageActivityInput?, CancellationToken)

Starts the IActivity asynchronously.

public Task<EndpointContentResult<string?>> StartAsync(StorageActivityInput? input, CancellationToken cancellationToken)

Parameters

input StorageActivityInput

The input.

cancellationToken CancellationToken

The CancellationToken.

Returns

Task<EndpointContentResult<string>>

Remarks

Note that TOutput is not marked as nullable with the expectation that *Result classes/records like EndpointResult will be used.