This code uses self hosting console scenario for example purposes. Typically the EventListener would be instantiated at service startup and disposed of in service shutdown. Depending on the hosting approach it may not be possible to have a using wrap the instances. See also Hosting and Windows Service Hosting.