/// <summary> /// Initializes a new instance of the <see cref="TenantsNode"/> class. /// </summary> /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param> /// <param name="tenantAgent">The tenant agent instance.</param> public TenantsNode(IPowerShellVfs vfs, ITenantAgent tenantAgent) : base(vfs, "Tenants") { this.tenantAgent = tenantAgent; this.Item = new CollectionItem(this) { Name = "Tenants", Description = "Contains all tenants of the Orchard instance." }; }
/// <summary> /// Provides a one-time, preprocessing functionality for the cmdlet. /// </summary> protected override void BeginProcessing() { base.BeginProcessing(); this.tenantAgent = this.AgentManager.GetAgent <ITenantAgent>(); }
/// <summary> /// Provides a one-time, preprocessing functionality for the cmdlet. /// </summary> protected override void BeginProcessing() { base.BeginProcessing(); this.tenantAgent = this.AgentManager.GetAgent<ITenantAgent>(); }