Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public UsageUpdatedEventArgs(UsageInformation usageInformation)
 {
     _usageInformation = usageInformation;
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 4
0
 public UsageUpdatedEventArgs(UsageInformation usageInformation)
 {
     _usageInformation = usageInformation;
 }