GooglePlayInstant/Editor/QuickDeploy/GcpClient.cs
/// <summary>
/// Creates and returns new combined dictionary that includes Authorization header to use for HTTP requests.
/// </summary>
/// <param name="headers">Other headers to include in the new dictonary.</param>
Creates and returns new combined dictionary that includes Authorization header to use for HTTP requests.
Creates and returns new combined dictionary that includes Authorization header to use for HTTP requests .
private static Dictionary<string, string> GetDictionaryWithAuthorizationHeader(
            Dictionary<string, string> headers = null)
        {
            var dictionaryWithAuthorizationHeader = new Dictionary<string, string>
            {
                {"Authorization", string.Format("Bearer {0}", AccessTokenGetter.AccessToken.Value)}
            };
            return dictionaryWithAuthorizationHeader.Union(headers ?? new Dictionary<string, string>())
                .ToDictionary(pair => pair.Key, pair => pair.Value);
        }
private static Dictionary < string , string > GetDictionaryWithAuthorizationHeader ( Dictionary < string , string > headers = null ) { var dictionaryWithAuthorizationHeader = new Dictionary < string , string > { { " " , string . Format ( " " , AccessTokenGetter . AccessToken . Value ) } } ; return dictionaryWithAuthorizationHeader . Union ( headers ?? new Dictionary < string , string > ( ) ) . ToDictionary ( pair => pair . Key , pair => pair . Value ) ; }
Creates and returns new combined dictionary that includes Authorization header to use for HTTP requests.
Creates and returns new combined dictionary that includes Authorization header to use for HTTP requests .
headers
Dictionary<string, string>
Other headers to include in the new dictonary.
Other headers to include in the new dictonary .