コード例 #1
0
 private WebSocketDecoderConfig.Builder DecoderConfigBuilder()
 {
     if (_decoderConfigBuilder is null)
     {
         _decoderConfigBuilder = _decoderConfig.ToBuilder();
     }
     return(_decoderConfigBuilder);
 }
コード例 #2
0
 /// <summary>
 /// Frames decoder configuration.
 /// </summary>
 public Builder DecoderConfig(WebSocketDecoderConfig decoderConfig)
 {
     _decoderConfig        = decoderConfig ?? WebSocketDecoderConfig.Default;
     _decoderConfigBuilder = null;
     return(this);
 }