コード例 #1
0
        /// <summary>
        /// Constructs an instance of the Dispatcher class.
        /// </summary>
        /// <param name="interfaceToSupport">The interface which is supported by all receivers.</param>
        public Dispatcher(Type interfaceToSupport)
        {
            if (!interfaceToSupport.IsInterface)
            {
                throw GenuineExceptions.Get_Broadcast_DestinationTypeMustBeAnInterface();
            }
            this._broadcastProxy   = new BroadcastProxy(interfaceToSupport, this);
            this._transparentProxy = _broadcastProxy.GetTransparentProxy();

            this._interfaceToSupport = interfaceToSupport;
        }