/// <summary> /// Initializes a new instance of the <see cref="PortableMetadataImpl" /> class. /// </summary> /// <param name="reader">The reader.</param> public PortableMetadataImpl(IPortableRawReader reader) { TypeId = reader.ReadInt(); TypeName = reader.ReadString(); AffinityKeyFieldName = reader.ReadString(); _fields = reader.ReadGenericDictionary <string, int>(); }
/// <summary> /// Initializes a new instance of the <see cref="ClusterNodeImpl"/> class. /// </summary> /// <param name="reader">The reader.</param> public ClusterNodeImpl(IPortableRawReader reader) { _id = reader.ReadGuid() ?? default(Guid); _attrs = reader.ReadGenericDictionary <string, object>().AsReadOnly(); _addrs = reader.ReadGenericCollection <string>().AsReadOnly(); _hosts = reader.ReadGenericCollection <string>().AsReadOnly(); _order = reader.ReadLong(); _local = reader.ReadBoolean(); _daemon = reader.ReadBoolean(); _metrics = reader.ReadBoolean() ? new ClusterMetricsImpl(reader) : null; }
/// <summary> /// Initializes a new instance of the <see cref="PortableMetadataImpl" /> class. /// </summary> /// <param name="reader">The reader.</param> public PortableMetadataImpl(IPortableRawReader reader) { TypeId = reader.ReadInt(); TypeName = reader.ReadString(); AffinityKeyFieldName = reader.ReadString(); _fields = reader.ReadGenericDictionary<string, int>(); }