protected void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs args) { if (args.CommandName == "Bootstrapped") { SampleUtilities.CreateUsersAndRoles(); } }
private void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs e) { if (e.CommandName == "Bootstrapped") { MvcWidgetToolboxRegistrationHelper.Register(); } }
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()); }
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 } ); } }
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(); }
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(); } } }
public void OnExecuted(Telerik.Sitefinity.Data.ExecutedEventArgs args) { throw new NotImplementedException(); }