/// <summary> /// Records the custom event to the local persistent storage. Background thread will deliver the event later. /// </summary> /// <param name="customEvent">The event.</param> public void RecordEvent(CustomEvent customEvent) { customEvent.Timestamp = DateTime.UtcNow.ToString(AWSSDKUtils.ISO8601DateFormat); Amazon.MobileAnalytics.Model.Event modelEvent = customEvent.ConvertToMobileAnalyticsModelEvent(this.Session); BackgroundDeliveryClient.EnqueueEventsForDelivery(modelEvent); }
/// <summary> /// Records the custom event to the local persistent storage. Background thread will deliver the event later. /// </summary> /// <param name="customEvent">The Mobile Analytics event.</param> public void RecordEvent(CustomEvent customEvent) { if (null == customEvent) { throw new ArgumentNullException("customEvent"); } customEvent.Timestamp = AWSSDKUtils.CorrectedUtcNow; Amazon.MobileAnalytics.Model.Event modelEvent = customEvent.ConvertToMobileAnalyticsModelEvent(this.Session); BackgroundDeliveryClient.EnqueueEventsForDelivery(modelEvent); }