예제 #1
0
 protected void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs args)
 {
     if (args.CommandName == "Bootstrapped")
     {
         SampleUtilities.CreateUsersAndRoles();
     }
 }
예제 #2
0
 private void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
 {
     if (e.CommandName == "Bootstrapped")
     {
         MvcWidgetToolboxRegistrationHelper.Register();
     }
 }
예제 #3
0
        private void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
        {
            //Telerik.Microsoft.Practices.EnterpriseLibrary.Caching.ICacheManager cazy = SystemManager.GetCacheManager(CacheManagerInstance.Configuration);


            if (e.CommandName == "Bootstrapped")
            {
                PublishingSystemFactory.UnregisterPipe(SearchIndexOutboundPipe.PipeName);
                PublishingSystemFactory.RegisterPipe(SearchIndexOutboundPipe.PipeName, typeof(ResourceLibraryOutboundPipe));
                //use UnauthorizedPageAccessEvent
                EventHub.Subscribe <IUnauthorizedPageAccessEvent>(new Telerik.Sitefinity.Services.Events.SitefinityEventHandler <IUnauthorizedPageAccessEvent>(OnUnauthorizedAccess));

                /*
                 * EventHub.Subscribe<IFormFieldValidatingEvent>(FormFileUploadFieldValidation);*/
                EventHub.Subscribe <IContextOperationEvent>(ContextOperationEvent);
            }

            if (e.CommandName == "RegisterRoutes")
            {
                RegisterRoutes(RouteTable.Routes);
                //ReplaceDefaultRoute(e.Data as IQueryable<RouteBase>);
                //SystemManager.RegisterServiceStackPlugin(new );
                //SystemManager.RegisterServiceStackPlugin(new MatrixGroup.Implementation.Services.Plugins.ServiceFeaturePlugin());
            }
        }
        public static void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
        {
            Config.RegisterSection <UserGeneratedContentConfig>();

            InstallVirtualPaths();     // See that method for VIRTUAL PATHS installation code

            HashtagSearchScheduledTask.ScheduleTask(DateTime.UtcNow.AddMinutes(10).ToUniversalTime());
        }
예제 #5
0
파일: Global.asax.cs 프로젝트: ossusa/3358
 void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
 {
     if (e.CommandName == "Bootstrapped")
     {
         //RegisterRoutes(RouteTable.Routes);
         PublishingSystemFactory.UnregisterPipe(SearchIndexOutboundPipe.PipeName);
         PublishingSystemFactory.RegisterPipe(SearchIndexOutboundPipe.PipeName, typeof(ResourceLibraryOutboundPipe));
     }
 }
 public static void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
 {
     if (e.CommandName == "Bootstrapped")
     {
         Trace.WriteLine("AzureServicePublisher: Bootstrapped");
         EventHub.Subscribe <IDataEvent>(OnDataEvent);
         //  PublishingManager.Executing += OnPublished;
         // ContentManager.Executing += OnContentEvent;
     }
 }
 private void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
 {
     if (e.CommandName == "Bootstrapped")
     {
         System.Web.Mvc.RouteCollectionExtensions.MapRoute(System.Web.Routing.RouteTable.Routes,
                                                           "Classic",
                                                           "customprefix/{controller}/{action}/{id}",
                                                           new { controller = "MyWidget1", action = "Index", id = (string)null }
                                                           );
     }
 }
예제 #8
0
        public static void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
        {
            Telerik.Sitefinity.Configuration.Config.RegisterSection <RandomSiteControlsMVC.Configuration.SitefinitySteveMvcConfig>();

            //Register ServiceStack route
            SystemManager.RegisterServiceStackPlugin(new RandomSiteControlsMVC.Services.TwitterServicePlugin());

            //Add Tools
            InstallVirtualPaths(); // See that method for VIRTUAL PATHS installation code
            InstallLayouts();
        }
예제 #9
0
 private void ConfigManager_Executed(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs args)
 {
     if (args.CommandName == "SaveSection")
     {
         var section = args.CommandArguments as VirtualPathSettingsConfig;
         if (section != null)
         {
             // Reset the VirtualPathManager whenever we save the VirtualPathConfig section.
             // This is needed so that our prefixes for the widget templates in the module assembly are taken into account.
             VirtualPathManager.Reset();
         }
     }
 }
        static void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
        {
            if ((Bootstrapper.IsDataInitialized) && (e.CommandName == "Bootstrapped"))
            {
                if (SystemManager.ApplicationModules.Any(p => p.Key == SearchModule.ModuleName))
                {
                    var typeName = typeof(AmazonSearchService).FullName;
                    App.WorkWith()
                    .Module(SearchModule.ModuleName)
                    .Initialize()
                    .Localization <AmazonResources>();

                    AddAmazonService(typeName);
                    RegisterAmazonService(typeName);

                    SetProperties();
                }
            }
        }
예제 #11
0
 public void OnExecuted(Telerik.Sitefinity.Data.ExecutedEventArgs args)
 {
     throw new NotImplementedException();
 }