public static IAlertPublisher Load() { IAlertPublisher publisher = null; return(publisher); }
private IAlertPublisher ResolveHandler(CommunicationTypeOption key) { IAlertPublisher implementor = null; Type candidateType = _TypeCache.ResolveType(key.ToString()); if (candidateType != null) { if (!publishers.ContainsKey(key)) { var publisher = Activator.CreateInstance(candidateType) as IAlertPublisher; if (publisher.Initialize()) { publishers.Add(key, publisher); } } implementor = publishers[key]; } return(implementor); }
public Parser(IAlertPublisher publisher) { Publisher = publisher; }