/// <summary> /// Initializes a new instance of the <see cref="CoCoL.ChannelMarkerWrapper<T>"/> class. /// </summary> /// <param name="attribute">The attribute describing the channel.</param> public ChannelMarkerWrapper(ChannelNameAttribute attribute) { if (attribute == null) { throw new ArgumentNullException("attribute"); } Attribute = attribute; ForWrite = ChannelMarker.ForWrite <T>(attribute); ForRead = ChannelMarker.ForRead <T>(attribute); }
/// <summary> /// Initializes a new instance of the <see cref="T:CoCoL.ChannelMarkerWrapper<T>"/> class. /// </summary> /// <param name="attribute">The attribute describing the channel.</param> public ChannelMarkerWrapper(ChannelNameAttribute attribute) { Attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); ForWrite = ChannelMarker.ForWrite <T>(attribute); ForRead = ChannelMarker.ForRead <T>(attribute); }