示例#1
0
        /// <summary>
        /// Initialisiert eine neue Instanz der <see cref="RestCalendarClient"/> Klasse.
        /// </summary>
        /// <param name="options"></param>
        public RestCalendarClient(Action <RestCalendarClientOptions> options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            _options = new RestCalendarClientOptions();
            options(_options);
            ThrowIfInvalidOptions();
        }
示例#2
0
 /// <summary>
 /// Initialisiert eine neue Instanz der <see cref="RestCalendarClient"/> Klasse.
 /// </summary>
 /// <param name="options"></param>
 public RestCalendarClient(RestCalendarClientOptions options)
 {
     _options = options ?? throw new ArgumentNullException(nameof(options));
     ThrowIfInvalidOptions();
 }