2 using System.Collections.Generic;
18 public Version ServerVersion {
get; }
23 public ushort ServerPort {
get; }
28 public bool ApiValidateOnly {
get; }
33 public string InstanceName {
get; }
38 public Api.Models.Internal.RevisionInformation Revision {
get; }
48 public IReadOnlyCollection<TestMergeInformation> TestMerges {
get; }
64 IEnumerable<TestMergeInformation> testMerges,
65 IEnumerable<Chat.ChannelRepresentation> chatChannels,
66 Api.Models.Instance instance,
67 Api.Models.Internal.RevisionInformation revision,
72 ServerVersion = assemblyInformationProvider?.
Version ??
throw new ArgumentNullException(nameof(assemblyInformationProvider));
73 ServerPort = serverPortProvider?.
HttpApiPort ??
throw new ArgumentNullException(nameof(serverPortProvider));
74 TestMerges = testMerges?.ToList() ??
throw new ArgumentNullException(nameof(testMerges));
75 InstanceName = instance?.Name ??
throw new ArgumentNullException(nameof(instance));
76 Revision = revision ??
throw new ArgumentNullException(nameof(revision));
77 SecurityLevel = securityLevel;
78 ApiValidateOnly = apiValidateOnly;
Use server authentication
ushort HttpApiPort
The port the server listens on.
DreamDaemonSecurity
DreamDaemon's security level
Provides access to the server's HttpApiPort.
Represents an update of ChannelRepresentations.