OCISDK/OCISDK/Identity/identityClient.cs
/// <summary>
/// Gets the specified tag namespace's information.
/// </summary>
/// <param name="getRequest"></param>
/// <returns></returns>
Gets the specified tag namespace's information.
Gets the specified tag namespace ' s information .
public GetTagNamespaceResponse GetTagNamespace(GetTagNamespaceRequest getRequest)
        {
            var uri = new Uri($"{GetEndPoint(IdentityServices.TagNamespaces, this.Region)}/{getRequest.TagNamespaceId}");
            using (var webResponse = this.RestClient.Get(uri))
            using (var stream = webResponse.GetResponseStream())
            using (var reader = new StreamReader(stream))
            {
                var response = reader.ReadToEnd();
                return new GetTagNamespaceResponse()
                {
                    TagNamespace = JsonSerializer.Deserialize<TagNamespace>(response),
                    OpcRequestId = webResponse.Headers.Get("opc-request-id")
                };
            }
        }
public GetTagNamespaceResponse GetTagNamespace ( GetTagNamespaceRequest getRequest ) { var uri = new Uri ( $" { GetEndPoint ( IdentityServices . TagNamespaces , this . Region ) } / { getRequest . TagNamespaceId } " ) ; using ( var webResponse = this . RestClient . Get ( uri ) ) using ( var stream = webResponse . GetResponseStream ( ) ) using ( var reader = new StreamReader ( stream ) ) { var response = reader . ReadToEnd ( ) ; return new GetTagNamespaceResponse ( ) { TagNamespace = JsonSerializer . Deserialize < TagNamespace > ( response ) , OpcRequestId = webResponse . Headers . Get ( " " ) } ; } }
Gets the specified tag namespace's information.
Gets the specified tag namespace ' s information .
None
getRequest
GetTagNamespaceRequest
None