internal void SetSandBoxHeader(HttpRequestMessage httpRequestMessage, CreatedDatabaseInformation databaseInformation) { httpRequestMessage.Headers .TryAddWithoutValidation(HeaderNames.DatabaseConnectionString, databaseInformation.ConnectionString); httpRequestMessage.Headers .TryAddWithoutValidation(HeaderNames.DatabaseName, databaseInformation.DbName); }
public void SetSandBoxHeader(HttpClient httpClient, CreatedDatabaseInformation databaseInformation) { httpClient.DefaultRequestHeaders .TryAddWithoutValidation(HeaderNames.DatabaseConnectionString, databaseInformation.ConnectionString); httpClient.DefaultRequestHeaders .TryAddWithoutValidation(HeaderNames.DatabaseName, databaseInformation.DbName); }