Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Microsoft.Azure.Cosmos/src/ThinClientStoreClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ namespace Microsoft.Azure.Cosmos
{
using System;
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure.Cosmos.Core.Trace;
using Microsoft.Azure.Cosmos.Routing;
using Microsoft.Azure.Cosmos.Tracing;
using Microsoft.Azure.Documents;
using Newtonsoft.Json;
using static Microsoft.Azure.Cosmos.ThinClientTransportSerializer;
Expand Down Expand Up @@ -91,6 +91,11 @@ private async ValueTask<HttpRequestMessage> PrepareRequestForProxyAsync(
BufferProviderWrapper bufferProviderWrapper = this.bufferProviderWrapperPool.Get();
try
{
ContainerProperties collection = await clientCollectionCache.ResolveCollectionAsync(
request,
CancellationToken.None,
NoOpTrace.Singleton);
request.ResourceId = collection.ResourceId;
requestMessage.Headers.TryAddWithoutValidation(
ThinClientConstants.ProxyOperationType,
request.OperationType.ToOperationTypeString());
Expand Down