void SetInternalDataCenterProperties(DataCenter dc, bool includeTotalAssets)
 {
     dc.HasTotalAssets = includeTotalAssets;
     dc.GroupService = groupService;
     dc.DataCenterService = this;
 }
Beispiel #2
0
 /// <summary>
 /// Returns the recent activity for the indicated data center
 /// </summary>
 /// <param name="dc">The data center</param>
 /// <param name="recordLimit">The maximum number of records to return</param>
 /// <returns>The data center recent activity</returns>
 public Task<IEnumerable<Activity>> GetRecentActivityFor(DataCenter dc, int recordLimit)
 {
     return GetRecentActivityFor(dc, recordLimit, CancellationToken.None);
 }
Beispiel #3
0
 /// <summary>
 /// Returns the recent activity for the indicated data center
 /// </summary>
 /// <param name="dc">The data center</param>
 /// <returns>The data center recent activity</returns>
 public Task<IEnumerable<Activity>> GetRecentActivityFor(DataCenter dc, CancellationToken cancellationToken)
 {
     return GetRecentActivityFor(dc, 10, cancellationToken);
 }
Beispiel #4
0
 /// <summary>
 /// Returns the recent activity for the indicated data center
 /// </summary>
 /// <param name="dc">The data center</param>
 /// <param name="recordLimit">The maximum number of records to return</param>
 /// <returns>The data center recent activity</returns>
 public async Task<IEnumerable<Activity>> GetRecentActivityFor(DataCenter dc, int recordLimit, CancellationToken cancellationToken)
 {
     var rootGroup = await dc.GetRootGroup(cancellationToken).ConfigureAwait(false);
     return await GetRecentActivityFor(rootGroup, recordLimit, cancellationToken).ConfigureAwait(false);
 }