The MSDN tutorial is probably not a bad place to start. I did not try to use my examples to implement a custom connection manager, but I was able to follow their documentation on the components of user data streams to create several of them that were not too noisy in the past, so I hope the connection manager examples are at the same level. I also found this example , which is probably a bit more extensive in code, as it was actually designed to be used.
( MSDN), , . , -, , -, , , .