Example #1
0
 /// <inheritdoc />
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="vsTsTool"></param>
 /// <param name="logger">Optional NLog Logger</param>
 /// <param name="performanceConfiguration">Optional Performance Configuration</param>
 public VariableGroupTool(
     VsTsTool vsTsTool,
     Logger logger = null,
     PerformanceConfiguration performanceConfiguration = null
     ) : base(vsTsTool, logger, performanceConfiguration)
 {
 }
Example #2
0
        /// <inheritdoc />
        /// <summary>
        ///     Constructor
        /// </summary>
        /// <param name="vsTsTool"></param>
        /// <param name="logger">Optional NLog Logger</param>
        /// <param name="performanceConfiguration">Optional Performance Configuration</param>
        public PolicyTool(VsTsTool vsTsTool,
                          Logger logger = null,
                          PerformanceConfiguration performanceConfiguration = null
                          ) : base(logger, performanceConfiguration)
        {
            Validators.AssertIsNotNull(vsTsTool, nameof(vsTsTool));

            Logger.Trace("Entering");

            _vsTsTool = vsTsTool;
            _client   = _vsTsTool.PolicyClient;
        }
Example #3
0
        /// <inheritdoc />
        /// <summary>
        ///     Constructor
        /// </summary>
        /// <param name="vsTsTool"></param>
        /// <param name="logger">Optional NLog Logger</param>
        /// <param name="performanceConfiguration">Optional Performance Configuration</param>
        protected WebApiBase(
            VsTsTool vsTsTool,
            Logger logger = null,
            PerformanceConfiguration performanceConfiguration = null
            ) : base(logger, performanceConfiguration)
        {
            Validators.AssertIsNotNull(vsTsTool, nameof(vsTsTool));

            Logger.Trace("Entering");

            VsTsTool = vsTsTool;

            Client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
                "Basic",
                Convert.ToBase64String(
                    Encoding.ASCII.GetBytes(
                        $":{VsTsTool.PersonalAccessToken}")));
        }