C# Class Amazon.MobileAnalytics.MobileAnalyticsManager.Internal.DeliveryClient

Delivery client periodically sends events in local persistent storage to Mobile Analytics server. Once the events is delivered successfully, those events would be deleted from local storage.
Inheritance: IDeliveryClient
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
AttemptDelivery ( ) : void

Attempts the delivery. Delivery will fail if any of the policies IsAllowed() returns false. The delivery are attmpted in batches of fixed size. To increase or decrease the size, you can override MaxRequestSize in MobileAnalyticsManagerConfig.Amazon.MobileAnalytics.MobileAnalyticsManager.MobileAnalyticsManagerConfig

AttemptDeliveryAsync ( ) : Task

Attempts the delivery. Delivery will fail if any of the policies IsAllowed() returns false. The delivery are attmpted in batches of fixed size. To increase or decrease the size, you can override MaxRequestSize in MobileAnalyticsManagerConfig.Amazon.MobileAnalytics.MobileAnalyticsManager.MobileAnalyticsManagerConfig

DeliveryClient ( IDeliveryPolicyFactory policyFactory, MobileAnalyticsManagerConfig maConfig, ClientContext clientContext, AWSCredentials credentials, RegionEndpoint regionEndPoint, MobileAnalyticsManager maManager ) : System

Constructor of Amazon.MobileAnalytics.MobileAnalyticsManager.Internal.DeliveryClient class.

DeliveryClient ( MobileAnalyticsManagerConfig maConfig, ClientContext clientContext, AWSCredentials credentials, RegionEndpoint regionEndPoint, MobileAnalyticsManager maManager ) : System

Constructor of Amazon.MobileAnalytics.MobileAnalyticsManager.Internal.DeliveryClient class.

Dispose ( ) : void

Dispose pattern implementation

EnqueueEventsForDelivery ( Amazon eventObject ) : void

Enqueues the events for delivery. The event is stored in an instance of Amazon.MobileAnalytics.MobileAnalyticsManager.Internal.IEventStore.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose pattern implementation

Private Methods

Method Description
EnqueueEventsHelper ( Amazon eventObject ) : void
SubmitEvents ( List rowIds, List eventList ) : Task
SubmitEvents ( List rowIds, List eventList ) : void

Submits a single batch of events to the service.

Method Details

AttemptDelivery() public method

Attempts the delivery. Delivery will fail if any of the policies IsAllowed() returns false. The delivery are attmpted in batches of fixed size. To increase or decrease the size, you can override MaxRequestSize in MobileAnalyticsManagerConfig.Amazon.MobileAnalytics.MobileAnalyticsManager.MobileAnalyticsManagerConfig
public AttemptDelivery ( ) : void
return void

AttemptDeliveryAsync() public method

Attempts the delivery. Delivery will fail if any of the policies IsAllowed() returns false. The delivery are attmpted in batches of fixed size. To increase or decrease the size, you can override MaxRequestSize in MobileAnalyticsManagerConfig.Amazon.MobileAnalytics.MobileAnalyticsManager.MobileAnalyticsManagerConfig
public AttemptDeliveryAsync ( ) : Task
return Task

DeliveryClient() public method

Constructor of Amazon.MobileAnalytics.MobileAnalyticsManager.Internal.DeliveryClient class.
public DeliveryClient ( IDeliveryPolicyFactory policyFactory, MobileAnalyticsManagerConfig maConfig, ClientContext clientContext, AWSCredentials credentials, RegionEndpoint regionEndPoint, MobileAnalyticsManager maManager ) : System
policyFactory IDeliveryPolicyFactory An instance of IDeliveryPolicyFactory
maConfig Amazon.MobileAnalytics.MobileAnalyticsManager.MobileAnalyticsManagerConfig
clientContext ClientContext An instance of ClientContext
credentials Amazon.Runtime.AWSCredentials An instance of Credentials
regionEndPoint RegionEndpoint Region end point
maManager Amazon.MobileAnalytics.MobileAnalyticsManager.MobileAnalyticsManager
return System

DeliveryClient() public method

Constructor of Amazon.MobileAnalytics.MobileAnalyticsManager.Internal.DeliveryClient class.
public DeliveryClient ( MobileAnalyticsManagerConfig maConfig, ClientContext clientContext, AWSCredentials credentials, RegionEndpoint regionEndPoint, MobileAnalyticsManager maManager ) : System
maConfig Amazon.MobileAnalytics.MobileAnalyticsManager.MobileAnalyticsManagerConfig Mobile Analytics Manager configuration.
clientContext ClientContext An instance of ClientContext.
credentials Amazon.Runtime.AWSCredentials An instance of Credentials.
regionEndPoint RegionEndpoint Region endpoint.
maManager Amazon.MobileAnalytics.MobileAnalyticsManager.MobileAnalyticsManager Mobile Analytics Manager instance.
return System

Dispose() public method

Dispose pattern implementation
public Dispose ( ) : void
return void

Dispose() protected method

Dispose pattern implementation
protected Dispose ( bool disposing ) : void
disposing bool if disposing
return void

EnqueueEventsForDelivery() public method

Enqueues the events for delivery. The event is stored in an instance of Amazon.MobileAnalytics.MobileAnalyticsManager.Internal.IEventStore.
public EnqueueEventsForDelivery ( Amazon eventObject ) : void
eventObject Amazon Event object.
return void