Exemple #1
0
        /// populate a GUID container with a unique ID. This will increment
        /// the counter, and use a lock while doing so.
        public void Populate(ref GUID container)
        {
            byte[] guidPrefix = container.Prefix.Prefix; // new byte[GuidPrefix.GUID_PREFIX_SIZE];
            Array.Copy(nodeId, 0, guidPrefix, 0, nodeId.Length);

            int count = GetCount();
            guidPrefix[10] = (byte)(count >> 8);
            guidPrefix[11] = (byte)(count & 0xFF);
        }
Exemple #2
0
 public Spdp(int domain, GUID id, DomainParticipantQos qos, DiscoveryImpl disco)
 { }
Exemple #3
0
 public GUID GenerateGuid()
 {
     GUID container = new GUID();
     Populate(ref container);
     return container;
 }
Exemple #4
0
 public Entity(GUID guid)
 {
     this.guid = guid;
 }
Exemple #5
0
 public Entity(GuidPrefix guidPrefix, EntityId entityId)
 {
     this.guid = new GUID(guidPrefix, entityId);
 }
Exemple #6
0
        /// <summary>
        /// Maps that stores discovered participants. discovered participant is
        /// shared with all entities created by this participant.
        /// </summary>
        //private readonly Dictionary<GuidPrefix, Participant> discoveredParticipants;

        public Participant(GUID guid)
            : base(guid)
        {
        }
Exemple #7
0
 public Endpoint(GUID guid)
     : base(guid)
 {
 }