public Gateway(GatewaySettings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } Tags = new Tags.Tags(settings); Locks = new Locks.Locks(settings); }
protected EndpointBase(GatewaySettings settings) { GatewaySettings = settings ?? throw new ArgumentNullException(nameof(settings)); Client = new HttpClient(); SupportedMediaTypeFormatters = new List <MediaTypeFormatter> { GetJsonMediaTypeFormatter() }; }