AzureIoTHubConnectedService.AzureIoTHubAccountProviderGrid.CreateServiceInstanceAsync C# (CSharp) 메소드

CreateServiceInstanceAsync() 공개 메소드

public CreateServiceInstanceAsync ( CancellationToken ct ) : Task
ct System.Threading.CancellationToken
리턴 Task
        public override async Task<ConnectedServiceInstance> CreateServiceInstanceAsync(CancellationToken ct)
        {
            ConnectedServiceInstance result = null;
            IAzureIoTHub createdAccount = await this.Authenticator.CreateIoTHub(this.iotHubAccountManager, ct).ConfigureAwait(false);
            if (createdAccount != null)
            {
                result = AzureIoTHubAccountProviderGrid.CreateServiceInstance(createdAccount);
            }
            return result;
        }