Пример #1
0
        public TokenRecipient(IHttpServiceCaller httpServiceCaller)
        {
            if (httpServiceCaller == null)
            {
                throw new ArgumentNullException(nameof(httpServiceCaller));
            }

            ServiceCaller = httpServiceCaller;
        }
Пример #2
0
        private bool disposedValue = false; // Для определения избыточных вызовов

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    ServiceCaller?.Dispose();
                }
                ServiceCaller = null;
                disposedValue = true;
            }
        }
Пример #3
0
        protected YandexTtsService(YandexTtsConfig config, IHttpServiceCaller httpServiceCaller)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }
            if (httpServiceCaller == null)
            {
                throw new ArgumentNullException(nameof(httpServiceCaller));
            }

            Config        = config;
            ServiceCaller = httpServiceCaller;
        }
Пример #4
0
 public YandexTtsClient(YandexTtsConfig config, IHttpServiceCaller httpServiceCaller)
     : base(config, httpServiceCaller)
 {
 }