#NEWLINE# def _bind_events_for_consumer( self , resource_dependency , profile_name ) : #NEWLINE# #INDENT# engine_listener = self . _listener_for_profile [ profile_name ] #NEWLINE# engine_listener . on_connection_established += resource_dependency . on_resource_ready #NEWLINE# engine_listener . on_connection_failed += resource_dependency . on_resource_lost #NEWLINE# engine_listener . on_connection_lost += engine_listener . on_resource_lost