public void Initialize() { ChannelOption option = new ChannelOption( _minimalFilter ); foreach( var s in _receiver.Handlers ) s.CollectChannelOption( option ); _minimalFilter = option.CurrentMinimalFilter; }
/// <summary> /// Enables this handler to interact with any channel to which it belongs. /// This is called after <see cref="Initialize"/> and for each channel where this handler appears, before the first call to <see cref="Handle"/>. /// Default implementation must be called: sets the minimal filter on the option if the <see cref="HandlerConfiguration"/> defines it. /// </summary> public virtual void CollectChannelOption(ChannelOption option) { option.SetMinimalFilter(_minimalFilter); }
/// <summary> /// Enables this handler to interact with any channel to which it belongs. /// This is called after <see cref="Initialize"/> and for each channel where this handler appears, before the first call to <see cref="Handle"/>. /// Default implementation must be called: sets the minimal filter on the option if the <see cref="HandlerConfiguration"/> defines it. /// </summary> public virtual void CollectChannelOption( ChannelOption option ) { option.SetMinimalFilter( _minimalFilter ); }