private void _AddServiceProvider(Type serviceType) { var service = (IMessagingService)ObjectFactory.GetInstance(serviceType); Add(service); }