CreateServiceInstance() private static method

private static CreateServiceInstance ( IAzureIoTHub iotHubAccount ) : ConnectedServiceInstance
iotHubAccount IAzureIoTHub
return ConnectedServiceInstance
        public override async Task <IEnumerable <ConnectedServiceInstance> > EnumerateServiceInstancesAsync(CancellationToken ct)
        {
            IEnumerable <IAzureIoTHub> hubs = await this.Authenticator.GetAzureIoTHubs(this.iotHubAccountManager, ct).ConfigureAwait(false);

            ct.ThrowIfCancellationRequested();
            return(hubs.Select(p => AzureIoTHubAccountProviderGrid.CreateServiceInstance(p)).ToList());
        }
        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);
        }