/// <summary> /// Provides a one-time, preprocessing functionality for the cmdlet. /// </summary> protected override void BeginProcessing() { base.BeginProcessing(); this.modulesAgent = this.AgentManager.GetAgent <IModulesAgent>(); this.allTenants = this.AgentManager.GetAgent <ITenantAgent>() .GetTenants() .Where(t => t.State == TenantState.Running) .ToArray(); }
/// <summary> /// Provides a one-time, preprocessing functionality for the cmdlet. /// </summary> protected override void BeginProcessing() { base.BeginProcessing(); this.modulesAgent = this.AgentManager.GetAgent<IModulesAgent>(); this.allTenants = this.AgentManager.GetAgent<ITenantAgent>() .GetTenants() .Where(t => t.State == TenantState.Running) .ToArray(); }
/// <summary> /// Initializes a new instance of the <see cref="ThemesNode"/> class. /// </summary> /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param> /// <param name="modulesAgent">The modules agent instance.</param> public ThemesNode(IPowerShellVfs vfs, IModulesAgent modulesAgent) : base(vfs, "Themes") { this.modulesAgent = modulesAgent; this.Item = new CollectionItem(this) { Name = "Themes", Description = "Contains all themes available in the current tenant." }; }
/// <summary> /// Provides a one-time, preprocessing functionality for the cmdlet. /// </summary> protected override void BeginProcessing() { base.BeginProcessing(); this.modulesAgent = this.AgentManager.GetAgent<IModulesAgent>(); this.features = new Dictionary<string, OrchardFeature[]>(); }
/// <summary> /// Provides a one-time, preprocessing functionality for the cmdlet. /// </summary> protected override void BeginProcessing() { base.BeginProcessing(); this.modulesAgent = this.AgentManager.GetAgent <IModulesAgent>(); this.features = new Dictionary <string, OrchardFeature[]>(); }