public ShortLinksHandler(IRepository <ShortLinksRecord> repository, IShortLinksService shortLinkService, INotifier notifier)
        {
            Filters.Add(StorageFilter.For(repository));
            _shortLinkService = shortLinkService;
            T = NullLocalizer.Instance;

            _notifier = notifier;
            OnUpdated <ShortLinksPart>((context, part) => CheckAutoroute(context, part));
        }
예제 #2
0
        public CommunicationService(
            ITaxonomyService taxonomyService,
            IRepository <CommunicationEmailRecord> repositoryCommunicationEmailRecord,
            INotifier notifier,
            IModuleService moduleService,
            IOrchardServices orchardServices,
            IShortLinksService shortLinksService,
            IContentExtensionsServices contentExtensionsServices,
            ISessionLocator session,
            ICultureManager cultureManager,
            IRepository <CommunicationSmsRecord> repositoryCommunicationSmsRecord,
            IContactRelatedEventHandler contactRelatedEventHandler,
            ITransactionManager transactionManager,
            IFieldIndexService fieldIndexService,
            IAutorouteService autorouteService,
            IRepository <CommunicationRetryRecord> repositoryCommunicationRetryRecord,
            IContentDefinitionManager contentDefinitionManager,
            IUtilsServices utilsServices)
        {
            _orchardServices           = orchardServices;
            _shortLinksService         = shortLinksService;
            _contentExtensionsServices = contentExtensionsServices;
            _moduleService             = moduleService;
            _notifier = notifier;
            _repositoryCommunicationEmailRecord = repositoryCommunicationEmailRecord;
            _repositoryCommunicationSmsRecord   = repositoryCommunicationSmsRecord;
            _repositoryCommunicationRetryRecord = repositoryCommunicationRetryRecord;
            _taxonomyService            = taxonomyService;
            _cultureManager             = cultureManager;
            _contactRelatedEventHandler = contactRelatedEventHandler;
            _transactionManager         = transactionManager;
            _fieldIndexService          = fieldIndexService;
            _autorouteService           = autorouteService;
            _contentDefinitionManager   = contentDefinitionManager;
            _utilsServices = utilsServices;

            T = NullLocalizer.Instance;
        }
예제 #3
0
 public ShortLinksDriver(IOrchardServices service, IShortLinksService shortLinkService)
 {
     _service          = service;
     _shortLinkService = shortLinkService;
 }
예제 #4
0
 public ShortLinkGetFunction(IShortLinksService service,
                             ILogger <ShortLinkCreateFunction> logger)
 {
     _service = service;
     _logger  = logger;
 }
 public ResolveShortCodeFunction(IShortLinksService shortLinksService,
                                 ILogger <ResolveShortCodeFunction> logger)
 {
     _shortLinksService = shortLinksService;
     _logger            = logger;
 }