public void AddExtension(string extensionName, ITicketExtension extension) { if (!extensions.ContainsKey(extensionName)) { extensions.Add(extensionName, extension); } }
public TicketServices(IUnitOfWork <XendDbContext> unitOfWork, IEmailService iEmailService, ITicketExtension iticket, IAuditExtension iauditExtention, IMapper mapper, ILoggerManager loggerManager) : base(unitOfWork, mapper) { _loggerManager = loggerManager; _iauditExtension = iauditExtention; _iticket = iticket; _iEmailService = iEmailService; }
public ITicketExtension GetExtension(string extensionName) { ITicketExtension toReturn = null; extensions.TryGetValue(extensionName, out toReturn); return(toReturn); }