Ejemplo n.º 1
0
 /// <summary>
 /// Configures a domain configuration.
 /// </summary>
 /// <param name="configuration">
 /// A domain configuration.
 /// </param>
 /// <param name="type">
 /// The domain type on which this attribute was placed.
 /// </param>
 public override void Configure(
     DomainConfiguration configuration,
     Type type)
 {
     var permission = DomainPermission.CreateGrant(
         this.PermissionType,
         this.To,
         this.OnNamespace,
         this.On,
         this.OnChild);
     configuration.AddPermission(permission);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Configures a domain configuration.
        /// </summary>
        /// <param name="configuration">
        /// A domain configuration.
        /// </param>
        /// <param name="type">
        /// The domain type on which this attribute was placed.
        /// </param>
        public override void Configure(
            DomainConfiguration configuration,
            Type type)
        {
            var permission = DomainPermission.CreateDeny(
                this.PermissionType,
                this.To,
                this.OnNamespace,
                this.On,
                this.OnChild);

            configuration.AddPermission(permission);
        }