コード例 #1
0
        public async Task <InvokeResult> AddDeviceToGroupAsync(string devicerepoid, String groupid, string deviceid)
        {
            var repo = await _repoManager.GetDeviceRepositoryAsync(devicerepoid, OrgEntityHeader, UserEntityHeader);

            return(await _deviceGroupManager.AddDeviceToGroupAsync(repo, groupid, deviceid, OrgEntityHeader, UserEntityHeader));
        }
コード例 #2
0
        public async Task <InvokeResult <DeviceGroupEntry> > AddDeviceToGroupAsync(String groupid, string deviceid)
        {
            var repo = await GetDeviceRepositoryWithSecretsAsync();

            return(await _deviceGroupManager.AddDeviceToGroupAsync(repo, groupid, deviceid, OrgEntityHeader, UserEntityHeader));
        }