Beispiel #1
0
 private void Config(MessageGlobalConfig globalConfig)
 {
     _duration = globalConfig.Duration;
     _maxCount = globalConfig.MaxCount;
     _top      = globalConfig.Top;
     _rtl      = globalConfig.Rtl;
 }
 public void Config(MessageGlobalConfig config)
 {
     if (config == null)
     {
         throw new ArgumentNullException(nameof(config));
     }
     OnConfig?.Invoke(config);
 }