Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MemberInfo"/> class.
 /// </summary>
 /// <param name="id">The unique identifier of the member.</param>
 /// <param name="address">The network address of the member.</param>
 /// <param name="version">The version of the server running the member.</param>
 /// <param name="isLite">Whether the member is a "lite" member.</param>
 /// <param name="attributes">Attributes of the member.</param>
 public MemberInfo(Guid id, NetworkAddress address, MemberVersion version, bool isLite, IDictionary <string, string> attributes)
 {
     Id         = id;
     Address    = address;
     Version    = version;
     IsLite     = isLite;
     Attributes = new ReadOnlyDictionary <string, string>(attributes);
     AddressMap = new Dictionary <EndpointQualifier, NetworkAddress>();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MemberInfo"/> class.
 /// </summary>
 /// <param name="id">The unique identifier of the member.</param>
 /// <param name="address">The network address of the member.</param>
 /// <param name="version">The version of the server running the member.</param>
 /// <param name="isLite">Whether the member is a "lite" member.</param>
 /// <param name="attributes">Attributes of the member.</param>
 /// <remarks>
 /// <para>That overload of the constructor is required by generated codecs.</para>
 /// </remarks>
 internal MemberInfo(NetworkAddress address, Guid id, IDictionary <string, string> attributes, bool isLite, MemberVersion version, bool addressMapExists, IDictionary <EndpointQualifier, NetworkAddress> addressMap)
     : this(id, address, version, isLite, attributes)
 {
     if (addressMapExists)
     {
         AddressMap = addressMap;
     }
 }