/// <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(); }
/// <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(); }