private static void InitializeServices()
        {
            UrlToEntityTokenFacade.Register(new DataUrlToEntityTokenMapper());
            UrlToEntityTokenFacade.Register(new ServerLogUrlToEntityTokenMapper());

            RoutedData.ConfigureServices(ServiceLocator.ServiceCollection);

            InternalUrls.Register(new MediaInternalUrlConverter());
            InternalUrls.Register(new PageInternalUrlConverter());
        }
Beispiel #2
0
        private static void InitializeServices()
        {
            UrlToEntityTokenFacade.Register(new DataUrlToEntityTokenMapper());
            UrlToEntityTokenFacade.Register(new ServerLogUrlToEntityTokenMapper());

            RoutedData.ConfigureServices(ServiceLocator.ServiceCollection);


            using (new LogExecutionTime(_verboseLogEntryTitle, "Initializing dynamic data action tokens"))
            {
                DataActionTokenResolverRegistery.Register(ServiceLocator.ServiceCollection);
            }

            InternalUrls.Register(new MediaInternalUrlConverter());
            InternalUrls.Register(new PageInternalUrlConverter());
        }
        private static void InitializeServices()
        {
            UrlToEntityTokenFacade.Register(new DataUrlToEntityTokenMapper());
            UrlToEntityTokenFacade.Register(new ServerLogUrlToEntityTokenMapper());

            var services = ServiceLocator.ServiceCollection;

            services.AddLogging();
            services.AddRoutedData();
            services.AddDataActionTokenResolver();
            services.AddDefaultSearchDocumentSourceProviders();

            InternalUrls.Register(new MediaInternalUrlConverter());
            InternalUrls.Register(new PageInternalUrlConverter());


            VersionedDataHelper.Initialize();
        }
        private static void InitializeServices()
        {
            UrlToEntityTokenFacade.Register(new DataUrlToEntityTokenMapper());
            UrlToEntityTokenFacade.Register(new MediaUrlToEntityTokenMapper());
            UrlToEntityTokenFacade.Register(new ServerLogUrlToEntityTokenMapper());
            UrlToEntityTokenFacade.Register(new WebsiteFileUrlToEntityTokenMapper());

            var services = ServiceLocator.ServiceCollection;

            services.AddLogging();
            services.AddRoutedData();
            services.AddDataActionTokenResolver();
            services.AddDefaultSearchDocumentSourceProviders();

            InternalUrls.Register(new MediaInternalUrlConverter());
            InternalUrls.Register(new PageInternalUrlConverter());

            services.AddSingleton <IMailer>(new SmtpMailer());

            services.AddTransient <ISiteMapPlugin, CmsPagesSiteMapPlugin>();

            VersionedDataHelper.Initialize();
        }