예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CoCoL.ChannelMarkerWrapper&lt;T&gt;"/> 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);
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:CoCoL.ChannelMarkerWrapper&lt;T&gt;"/> 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);
 }