social-common / pragma.order / OrderProviderPlugin / registerBackgroundTasks /

registerBackgroundTasks #

open fun registerBackgroundTasks(backgroundManager: BackgroundManager, ordersFactory: OrdersFactory)

Registers any background polling tasks onto the provided BackgroundManager. Called a single time when the primary pragma.order.OrderService instance starts up. An example usage of this method includes registering a background task to poll a third party provider refund endpoint to check for and process new refunds.