To have a nice public API on Connection object (without public internals method), some functionality is moved to internal objects (Events, AsyncHelper). I was thinking about having Connection as a simple envelope with only public methods and all logic will be in some ConnectionInternals object, that will be passed to other objects, that need connection.
To have a nice public API on
Connection
object (withoutpublic internals
method), some functionality is moved to internal objects (Events
,AsyncHelper
). I was thinking about havingConnection
as a simple envelope with only public methods and all logic will be in someConnectionInternals
object, that will be passed to other objects, that need connection.