public IChannelFilter Copy()
        {
            IChannelFilter clone = (IChannelFilter)Activator.CreateInstance(this.GetType());

            clone.Settings = this.settings;
            return(clone);
        }
예제 #2
0
 protected override void Before_each_spec()
 {
    _filter = Mock<IChannelFilter>();
    _invocation = Mock<CastleInterception.IInvocation>();
    _transPort = Mock<ITransport>();
    _theUnit = new ChannelIntercept(_transPort);
    _theUnit.PreFilters = new List<IChannelFilter>();
    _theUnit.PostFilters = new List<IChannelFilter>();
 }
 public FilteredDataChannel(IDataChannel input, int samplesPerSecond, int bufferSize, IChannelFilter filter) : base(samplesPerSecond, bufferSize)
 {
     this.Input  = input;
     this.Filter = filter;
 }