tgstation-server 6.8.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ServerUpdateOperation.cs
Go to the documentation of this file.
1using System;
2
5
7{
12 {
17
22
26 public Version TargetVersion { get; }
27
34 public ServerUpdateOperation(IFileStreamProvider fileStreamProvider, ISwarmService swarmService, Version targetVersion)
35 {
36 FileStreamProvider = fileStreamProvider ?? throw new ArgumentNullException(nameof(fileStreamProvider));
37 SwarmService = swarmService ?? throw new ArgumentNullException(nameof(swarmService));
38 TargetVersion = targetVersion ?? throw new ArgumentNullException(nameof(targetVersion));
39 }
40 }
41}
Necessary data for performing a server update.
IFileStreamProvider FileStreamProvider
The IFileStreamProvider that contains the update zip file.
ServerUpdateOperation(IFileStreamProvider fileStreamProvider, ISwarmService swarmService, Version targetVersion)
Initializes a new instance of the ServerUpdateOperation class.
Version TargetVersion
The Version being updated to.
Helps keep servers connected to the same database in sync by coordinating updates.
Definition: SwarmService.cs:36
Interface for asynchronously consuming Streams of files.
Used for swarm operations. Functions may be no-op based on configuration.