Captures centralized information among the different Handlers of a channel.
예제 #1
0
 public void Initialize()
 {
     ChannelOption option = new ChannelOption( _minimalFilter );
     foreach( var s in _receiver.Handlers ) s.CollectChannelOption( option );
     _minimalFilter = option.CurrentMinimalFilter;
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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 );
 }