コード例 #1
0
        private static JsonSerializerSettings CreateTraceSettings()
        {
            var settings = new VssJsonMediaTypeFormatter().SerializerSettings;

            settings.Formatting = Formatting.Indented;
            return(settings);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new <c>VssOAuthTokenHttpClient</c> using the specified authorization URL as the token
 /// exchange endpoint. Requests for tokens will be posted to the provided URL.
 /// </summary>
 /// <param name="authorizationUrl">The endpoint used to acquire new tokens from the secure token service</param>
 public VssOAuthTokenHttpClient(Uri authorizationUrl)
 {
     ArgumentUtility.CheckForNull(authorizationUrl, nameof(authorizationUrl));
     m_authorizationUrl = authorizationUrl;
     m_formatter        = new VssJsonMediaTypeFormatter();
 }