sdk/dotnet/src/Microsoft.Datasync.Client/Table/RemoteTable.cs
/// <summary>
/// Gets the conditional headers for the request to the remote service.
/// </summary>
/// <param name="instance">The instance being sent.</param>
/// <returns>The conditional headers, or <c>null</c> if there are no conditional headers.</returns>
Gets the conditional headers for the request to the remote service.
Gets the conditional headers for the request to the remote service .
protected static Dictionary<string, string> GetConditionalHeaders(JObject instance)
        {
            string version = ServiceSerializer.GetVersion(instance);
            return string.IsNullOrEmpty(version) ? null : new Dictionary<string, string> { [ServiceHeaders.IfMatch] = version.ToETagValue() };
        }
protected static Dictionary < string , string > GetConditionalHeaders ( JObject instance ) { string version = ServiceSerializer . GetVersion ( instance ) ; return string . IsNullOrEmpty ( version ) ? null : new Dictionary < string , string > { [ ServiceHeaders . IfMatch ] = version . ToETagValue ( ) } ; }
Gets the conditional headers for the request to the remote service.
Gets the conditional headers for the request to the remote service .
The conditional headers, or null
The conditional headers or null
instance
JObject
The instance being sent.
The instance being sent .