Amazon.IoT.AmazonIoTClient.AttachThingPrincipalAsync C# (CSharp) Метод

AttachThingPrincipalAsync() публичный Метод

Initiates the asynchronous execution of the AttachThingPrincipal operation.
public AttachThingPrincipalAsync ( AttachThingPrincipalRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.IoT.Model.AttachThingPrincipalRequest Container for the necessary parameters to execute the AttachThingPrincipal operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<AttachThingPrincipalResponse> AttachThingPrincipalAsync(AttachThingPrincipalRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new AttachThingPrincipalRequestMarshaller();
            var unmarshaller = AttachThingPrincipalResponseUnmarshaller.Instance;

            return InvokeAsync<AttachThingPrincipalRequest,AttachThingPrincipalResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonIoTClient::AttachThingPrincipalAsync ( string thingName, string principal, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient