/// <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)); }
public UsageUpdatedEventArgs(UsageInformation usageInformation) { _usageInformation = usageInformation; }
/// <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)); }