Beispiel #1
0
 protected override void SecureSelf(ISecurityProvider provider)
 {
     if (!this.IsSecured)
     {
         base.SecureSelf(provider);
         this.Id   = (int)provider.Secure(this.Id);
         this.Name = (string)provider.Secure(this.Name);
     }
 }
 protected override void SecureSelf <TSecurable>(ISecurityProvider provider)
 {
     if (!this.IsSecured)
     {
         base.SecureSelf(provider);
         this.Id = provider.Secure(this.Id);
     }
 }
 protected override void SecureSelf(ISecurityProvider <int> provider)
 {
     if (!this.IsSecured)
     {
         base.SecureSelf(provider);
         this.Id = provider.Secure(this.Id);     // COMPILER ERROR
     }
 }