Ejemplo n.º 1
0
 /// <summary>
 /// Retrieves a component from a digital twin.
 /// Status codes:
 /// 200 (OK): Success.
 /// 404 (Not Found): There is either no digital twin with the provided id or
 /// the component path is invalid.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// The id of the digital twin. The id is unique within the service and case
 /// sensitive.
 /// </param>
 /// <param name='componentPath'>
 /// The name of the DTDL component.
 /// </param>
 public static object GetComponent(this IDigitalTwinsOperations operations, string id, string componentPath)
 {
     return(operations.GetComponentAsync(id, componentPath).GetAwaiter().GetResult());
 }