Пример #1
0
 internal void SetSandBoxHeader(HttpRequestMessage httpRequestMessage, CreatedDatabaseInformation databaseInformation)
 {
     httpRequestMessage.Headers
     .TryAddWithoutValidation(HeaderNames.DatabaseConnectionString, databaseInformation.ConnectionString);
     httpRequestMessage.Headers
     .TryAddWithoutValidation(HeaderNames.DatabaseName, databaseInformation.DbName);
 }
Пример #2
0
 public void SetSandBoxHeader(HttpClient httpClient, CreatedDatabaseInformation databaseInformation)
 {
     httpClient.DefaultRequestHeaders
     .TryAddWithoutValidation(HeaderNames.DatabaseConnectionString, databaseInformation.ConnectionString);
     httpClient.DefaultRequestHeaders
     .TryAddWithoutValidation(HeaderNames.DatabaseName, databaseInformation.DbName);
 }