Esempio n. 1
0
        public Gateway(GatewaySettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            Tags  = new Tags.Tags(settings);
            Locks = new Locks.Locks(settings);
        }
Esempio n. 2
0
        protected EndpointBase(GatewaySettings settings)
        {
            GatewaySettings = settings ?? throw new ArgumentNullException(nameof(settings));

            Client = new HttpClient();

            SupportedMediaTypeFormatters = new List <MediaTypeFormatter> {
                GetJsonMediaTypeFormatter()
            };
        }