コード例 #1
0
        /// <summary>
        /// Constructs a new instance using the <paramref name="rootChain"/> as root chain component.
        /// </summary>
        /// <param name="rootChain">A reference to a chain component. Must not be null.</param>
        protected MidiReceiverChainManager(IChainOf <TReceiver> rootChain)
        {
            Check.IfArgumentNull(rootChain, nameof(rootChain));

            RootChain = rootChain;
            MidiPort  = rootChain as TPort;
        }
コード例 #2
0
        /// <summary>
        /// Constructs a new instance using the <paramref name="rootChain"/> as root chain component.
        /// </summary>
        /// <param name="rootChain">A reference to a chain component. Must not be null.</param>
        protected MidiReceiverChainManager(IChainOf <TReceiver> rootChain)
        {
            Contract.Requires(rootChain != null);
            Check.IfArgumentNull(rootChain, "rootChain");

            this.RootChain = rootChain;
            this.MidiPort  = rootChain as TPort;
        }