예제 #1
0
 /// <summary>
 /// Immediately request new usage data
 /// </summary>
 public void UpdateUsageInformation()
 {
     AquissService.GetUsage(_hashCode, (val) =>
     {
         lock (_lockObject)
         {
             var usage = UsageInformation.CreateUsageInformation(val);
             if (usage != null)
             {
                 _currentUsage = usage;
             }
             else
             {
                 _currentUsage = null;
                 UsageFetchError("Invalid Hash Code");
             }
         }
         OnUsageUpdated();
     }, (resp) => UsageFetchError(resp.ErrorMessage));
 }
예제 #2
0
 public UsageUpdatedEventArgs(UsageInformation usageInformation)
 {
     _usageInformation = usageInformation;
 }
예제 #3
0
 /// <summary>
 /// Immediately request new usage data
 /// </summary>
 public void UpdateUsageInformation()
 {
     AquissService.GetUsage(_hashCode, (val) =>
     {
         lock (_lockObject)
         {
             var usage = UsageInformation.CreateUsageInformation(val);
             if (usage != null)
                 _currentUsage = usage;
             else
             {
                 _currentUsage = null;
                 UsageFetchError("Invalid Hash Code");
             }
         }
         OnUsageUpdated();
     }, (resp) => UsageFetchError(resp.ErrorMessage));
 }
예제 #4
0
 public UsageUpdatedEventArgs(UsageInformation usageInformation)
 {
     _usageInformation = usageInformation;
 }