19 using System.Collections.Generic;
20 using System.Net.Http;
32 private Lazy<HttpClient> _lazyClient =
new Lazy<HttpClient>();
37 private HashSet<SecurityType> _defaultAllowedSecurityTypes =
new HashSet<SecurityType>
53 protected abstract string Name {
get; }
66 get => _defaultAllowedSecurityTypes;
76 if (parameters.
Targets.Count == 0)
82 return VerifyTargets(parameters);
92 foreach (var signal
in parameters.
Targets)
96 parameters.
Algorithm.
Debug($
"{signal.Symbol.SecurityType} security type is not supported by {Name}. Allowed security types: [{string.Join(",
", AllowedSecurityTypes)}]");
109 if (_lazyClient.IsValueCreated)
111 _lazyClient.Value.DisposeSafely();