示例#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);
        }
示例#2
0
 public Spdp(int domain, GUID id, DomainParticipantQos qos, DiscoveryImpl disco)
 { }
示例#3
0
 public GUID GenerateGuid()
 {
     GUID container = new GUID();
     Populate(ref container);
     return container;
 }
示例#4
0
 public Entity(GUID guid)
 {
     this.guid = guid;
 }
示例#5
0
 public Entity(GuidPrefix guidPrefix, EntityId entityId)
 {
     this.guid = new GUID(guidPrefix, entityId);
 }
示例#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)
        {
        }
示例#7
0
 public Endpoint(GUID guid)
     : base(guid)
 {
 }