Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the Usage class.
 /// </summary>
 public Usage(UsageUnit?unit, int?currentValue, long?limit, UsageName name)
 {
     Unit         = unit;
     CurrentValue = currentValue;
     Limit        = limit;
     Name         = name;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the Usage class.
 /// </summary>
 /// <param name="currentValue">The current usage of the
 /// resource.</param>
 /// <param name="limit">The maximum permitted usage of the
 /// resource.</param>
 /// <param name="name">The name of the type of usage.</param>
 public Usage(int currentValue, long limit, UsageName name)
 {
     CurrentValue = currentValue;
     Limit        = limit;
     Name         = name;
     CustomInit();
 }