Remote applications - several session hosts
This commit is contained in:
parent
d063e2ce2d
commit
7e8390d298
8 changed files with 243 additions and 15 deletions
|
@ -243,6 +243,11 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return LogOffRdsUserInternal(itemId, unifiedSessionId, hostServer);
|
||||
}
|
||||
|
||||
public static List<string> GetRdsCollectionSessionHosts(int collectionId)
|
||||
{
|
||||
return GetRdsCollectionSessionHostsInternal(collectionId);
|
||||
}
|
||||
|
||||
private static RdsCollection GetRdsCollectionInternal(int collectionId)
|
||||
{
|
||||
var collection = ObjectUtils.FillObjectFromDataReader<RdsCollection>(DataProvider.GetRDSCollectionById(collectionId));
|
||||
|
@ -630,6 +635,23 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return result;
|
||||
}
|
||||
|
||||
private static List<string> GetRdsCollectionSessionHostsInternal(int collectionId)
|
||||
{
|
||||
var result = new List<string>();
|
||||
var collection = ObjectUtils.FillObjectFromDataReader<RdsCollection>(DataProvider.GetRDSCollectionById(collectionId));
|
||||
Organization org = OrganizationController.GetOrganization(collection.ItemId);
|
||||
|
||||
if (org == null)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
var rds = GetRemoteDesktopServices(GetRemoteDesktopServiceID(org.PackageId));
|
||||
result = rds.GetRdsCollectionSessionHosts(collection.Name).ToList();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private static RdsServersPaged GetOrganizationRdsServersPagedInternal(int itemId, int? collectionId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows)
|
||||
{
|
||||
DataSet ds = DataProvider.GetRDSServersPaged(itemId, collectionId, filterColumn, filterValue, sortColumn, startRow, maximumRows, ignoreRdsCollectionId: !collectionId.HasValue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue