/// <summary> /// Initializes a new instance of the <see cref="CPDistributedObjectBase"/> class. /// </summary> /// <param name="serviceName">The name of the service managing this object.</param> /// <param name="name">The unique name of the object.</param> /// <param name="groupId">The CP group identifier of the object.</param> /// <param name="cluster">A cluster.</param> protected CPDistributedObjectBase(string serviceName, string name, CPGroupId groupId, Cluster cluster) { ServiceName = serviceName; Name = name; CPGroupId = groupId; Cluster = cluster; }
/// <summary> /// Initializes a new instance of the <see cref="AtomicLong"/> class. /// </summary> /// <param name="name">The unique name.</param> /// <param name="groupId">The CP group identifier.</param> /// <param name="cluster">The cluster.</param> public AtomicLong(string name, CPGroupId groupId, Cluster cluster) : base(ServiceNames.AtomicLong, name, groupId, cluster) { }
/// <summary> /// Initializes a new instance of the <see cref="AtomicReference{T}"/> class. /// </summary> /// <param name="name">The unique name.</param> /// <param name="groupId">The CP group identifier.</param> /// <param name="cluster">The cluster.</param> /// <param name="serializationService">The serialization service.</param> public AtomicReference(string name, CPGroupId groupId, Cluster cluster, SerializationService serializationService) : base(ServiceNames.AtomicRef, name, groupId, cluster) { SerializationService = serializationService ?? throw new ArgumentNullException(nameof(serializationService)); }