コード例 #1
0
 /// <summary>
 /// Sets the identity of the user that initiated the request from the Platform.
 /// </summary>
 public void SetOriginatingIdentity(OriginatingIdentity identity)
 {
     HttpClient.DefaultRequestHeaders.Remove(OriginatingIdentity.HttpHeaderName);
     HttpClient.DefaultRequestHeaders.Add(OriginatingIdentity.HttpHeaderName, identity.ToString());
 }
コード例 #2
0
 /// <summary>
 /// Sets the identity of the user that initiated the request from the Platform.
 /// </summary>
 public void SetOriginatingIdentity(OriginatingIdentity identity)
 => SetCustomHeader(OriginatingIdentity.HttpHeaderName, identity.ToString());