C# Class Amazon.Runtime.Internal.ClientContext

This class composes Client Context header for Amazon Web Service client. It contains information like app title, version code, version name, client id, OS platform etc.
ファイルを表示 Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
AddCustomAttributes ( string key, string value ) : void

Adds the custom attributes to the Client Context.

ClientContext ( string appId ) : Amazon.Util.Internal.PlatformServices

Initializes a new instance of the Amazon.Runtime.Internal.ClientContext class.

ToJsonString ( ) : String

Gets a Json Representation of the Client Context.

Method Details

AddCustomAttributes() public method

Adds the custom attributes to the Client Context.
public AddCustomAttributes ( string key, string value ) : void
key string Key.
value string Value.
return void

ClientContext() public method

Initializes a new instance of the Amazon.Runtime.Internal.ClientContext class.
public ClientContext ( string appId ) : Amazon.Util.Internal.PlatformServices
appId string
return Amazon.Util.Internal.PlatformServices

ToJsonString() public method

Gets a Json Representation of the Client Context.
public ToJsonString ( ) : String
return String