3using System.Threading.Tasks;
ValueTask< ServerUpdateResult > InitiateUpdate(IFileStreamProvider? fileStreamProvider, Version version, CancellationToken cancellationToken)
Start the process of downloading and applying an update to a new server version .A ValueTask<TResult>...
readonly ISwarmService swarmService
The ISwarmService for the ServerUpdateInitiator.
readonly IServerUpdater serverUpdater
The IServerUpdater for the ServerUpdateInitiator.
ServerUpdateInitiator(ISwarmService swarmService, IServerUpdater serverUpdater)
Initializes a new instance of the ServerUpdateInitiator class.
Initiates server self updates.
ValueTask< ServerUpdateResult > BeginUpdate(ISwarmService swarmService, IFileStreamProvider? fileStreamProvider, Version version, CancellationToken cancellationToken)
Start the process of downloading and applying an update to a new server version .
Interface for asynchronously consuming Streams of files.
Used for swarm operations. Functions may be no-op based on configuration.