public EventContext(TServiceInterface service, EventInfo eventInfo, Delegate handler) { myService = service; EventInfo = eventInfo; myHandler = handler; SubscribedClients = new HashSet <string>(); }
private static TServiceInterface GetMefService <TServiceInterface>() where TServiceInterface : class { TServiceInterface service = null; var componentModel = GetService <IComponentModel, SComponentModel>(GlobalServiceProvider); if (componentModel != null) { service = componentModel.GetService <TServiceInterface>(); } return(service); }
private TServiceInterface GetService <TServiceInterface, TService>() where TServiceInterface : class where TService : class { TServiceInterface service = null; if (parent != null) { service = parent.GetVsService <TServiceInterface, TService>(); } return(service); }