Example #1
0
        /// <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."
            };
        }
Example #2
0
        /// <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."
            };
        }
Example #3
0
 /// <summary>
 /// Provides a one-time, preprocessing functionality for the cmdlet.
 /// </summary>
 protected override void BeginProcessing()
 {
     base.BeginProcessing();
     this.tenantAgent = this.AgentManager.GetAgent <ITenantAgent>();
 }
Example #4
0
 /// <summary>
 /// Provides a one-time, preprocessing functionality for the cmdlet.
 /// </summary>
 protected override void BeginProcessing()
 {
     base.BeginProcessing();
     this.tenantAgent = this.AgentManager.GetAgent<ITenantAgent>();
 }