Example #1
0
 public Band(Band.BandProfile bandProfile, ulong minSizeMb, ulong maxSizeMb, double mailboxSizeWeightFactor, bool includeOnlyPhysicalMailboxes = false, TimeSpan?minLastLogonAge = null, TimeSpan?maxLastLogonAge = null) : base(Band.CreateBandName(bandProfile, minSizeMb, maxSizeMb, minLastLogonAge, maxLastLogonAge), true)
 {
     this.IncludeOnlyPhysicalMailboxes = includeOnlyPhysicalMailboxes;
     this.Profile = bandProfile;
     this.MailboxSizeWeightFactor = mailboxSizeWeightFactor;
     this.MaxSize         = ByteQuantifiedSize.FromMB(maxSizeMb);
     this.MinSize         = ByteQuantifiedSize.FromMB(minSizeMb);
     this.MinLastLogonAge = minLastLogonAge;
     this.MaxLastLogonAge = maxLastLogonAge;
 }
Example #2
0
 private static string CreateBandName(Band.BandProfile bandProfile, ulong minSizeMb, ulong maxSizeMb, TimeSpan?minLastLogonAge, TimeSpan?maxLastLogonAge)
 {
     return(string.Format("Band-{0}-{1}-{2}-{3}-{4}", new object[]
     {
         (bandProfile == Band.BandProfile.SizeBased) ? "Size" : "Count",
         minSizeMb,
         maxSizeMb,
         minLastLogonAge,
         maxLastLogonAge
     }));
 }
Example #3
0
 public Band(Band.BandProfile bandProfile, ByteQuantifiedSize minSize, ByteQuantifiedSize maxSize, double mailboxSizeWeightFactor, bool includeOnlyPhysicalMailboxes = false, TimeSpan?minLastLogonAge = null, TimeSpan?maxLastLogonAge = null) : this(bandProfile, minSize.ToMB(), maxSize.ToMB(), mailboxSizeWeightFactor, includeOnlyPhysicalMailboxes, minLastLogonAge, maxLastLogonAge)
 {
 }