private void ActivateHandler(IAdPayloadHandler handler) { handler.Player = Player; handler.LoadPlayer += Handler_LoadPlayer; handler.UnloadPlayer += Handler_UnloadPlayer; handler.ActivateAdUnit += Handler_ActivateAdUnit; handler.DeactivateAdUnit += Handler_DeactivateAdUnit; handler.AdTrackingEventOccurred += Handler_AdTrackingEventOccurred; activePayloadHandlers.Add(handler); }
private void DeactivateHandler(IAdPayloadHandler handler) { handler.Player = null; handler.LoadPlayer -= Handler_LoadPlayer; handler.UnloadPlayer -= Handler_UnloadPlayer; handler.ActivateAdUnit -= Handler_ActivateAdUnit; handler.DeactivateAdUnit -= Handler_DeactivateAdUnit; handler.AdTrackingEventOccurred -= Handler_AdTrackingEventOccurred; activePayloadHandlers.Remove(handler); }
private void DeactivateHandler(IAdPayloadHandler handler) { handler.Player = null; handler.LoadPlayer -= Handler_LoadPlayer; handler.UnloadPlayer -= Handler_UnloadPlayer; handler.ActivateAdUnit -= Handler_ActivateAdUnit; handler.DeactivateAdUnit -= Handler_DeactivateAdUnit; handler.AdTrackingEventOccurred -= Handler_AdTrackingEventOccurred; activePayloadHandlers.Remove(handler); }
private void ActivateHandler(IAdPayloadHandler handler) { handler.Player = Player; handler.LoadPlayer += Handler_LoadPlayer; handler.UnloadPlayer += Handler_UnloadPlayer; handler.ActivateAdUnit += Handler_ActivateAdUnit; handler.DeactivateAdUnit += Handler_DeactivateAdUnit; handler.AdTrackingEventOccurred += Handler_AdTrackingEventOccurred; activePayloadHandlers.Add(handler); }