/* ========================================================================
* Copyright (c) 2005-2025 The OPC Foundation, Inc. All rights reserved.
*
* OPC Foundation MIT License 1.00
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
* The complete license agreement can be found here:
* http://opcfoundation.org/License/MIT/1.00/
* ======================================================================*/
using System;
using System.Collections.Generic;
namespace Opc.Ua.Lds.Server
{
///
/// In-memory record of a server registered with the LDS via
/// or
/// .
///
///
/// Registrations are keyed by . Setting
/// to false in a subsequent register call removes the entry from the store.
///
public sealed class RegistrationEntry
{
///
/// The server's ApplicationUri. Acts as the unique key for the registration.
///
public string ServerUri { get; set; }
///
/// The server's product URI.
///
public string ProductUri { get; set; }
///
/// The server's localized application names.
///
public IList ServerNames { get; set; } = [];
///
/// The server's . LDS rejects
/// registrations.
///
public ApplicationType ServerType { get; set; } = ApplicationType.Server;
///
/// Optional gateway server URI for non-OPC UA server registrations.
///
public string GatewayServerUri { get; set; }
///
/// One or more discovery endpoint URLs.
///
public IList DiscoveryUrls { get; set; } = [];
///
/// Optional file path used to keep the registration alive while the file exists.
///
public string SemaphoreFilePath { get; set; }
///
/// Whether the server is currently online and accepting connections.
///
public bool IsOnline { get; set; }
///
/// Wall-clock timestamp of the most recent register call.
///
public DateTime LastSeenUtc { get; set; }
///
/// The capabilities advertised by the registered server, derived from the most
/// recent MdnsDiscoveryConfiguration if any. Empty for plain
/// RegisterServer calls.
///
public IList ServerCapabilities { get; set; } = [];
///
/// The mDNS server name advertised by the most recent
/// MdnsDiscoveryConfiguration. Null for plain RegisterServer calls.
///
public string MdnsServerName { get; set; }
}
}