static void should_have_the_same_version(Version version, Dolittle.Runtime.Events.Store.MongoDB.Events.Version stored_version) { version.Build.ShouldEqual(stored_version.Build); version.Major.ShouldEqual(stored_version.Major); version.Minor.ShouldEqual(stored_version.Minor); version.Patch.ShouldEqual(stored_version.Patch); version.PreReleaseString.ShouldEqual(stored_version.PreRelease); }
/// <summary> /// Initializes a new instance of the <see cref="HandshakeService"/> class. /// </summary> /// <param name="platformEnvironment">The <see cref="IResolvePlatformEnvironment"/> to use for resolving the current Runtime environment.</param> /// <param name="requestConverter">The <see cref="IRequestConverter"/> to use to parse incoming requests.</param> /// <param name="contractsCompatibility">The <see cref="IVerifyContractsCompatibility"/> to use to compare Contracts versions.</param> /// <param name="openTelemetryConfig">The <see cref="openTelemetryConfig"/>.</param> /// <param name="logger">The <see cref="ILogger"/> to use for logging.</param> public HandshakeService( IResolvePlatformEnvironment platformEnvironment, IRequestConverter requestConverter, IVerifyContractsCompatibility contractsCompatibility, IOptions <OpenTelemetryConfiguration> openTelemetryConfig, ILogger logger) { _platformEnvironment = platformEnvironment; _requestConverter = requestConverter; _contractsCompatibility = contractsCompatibility; _openTelemetryConfig = openTelemetryConfig; _logger = logger; _runtimeVersion = VersionInfo.CurrentVersion; _runtimeContractsVersion = Contracts.VersionInfo.CurrentVersion.ToVersion(); }