Exemple #1
0
 public virtual void SetKind(Text newKind)
 {
     lock (this)
     {
         kind    = newKind;
         renewer = null;
     }
 }
Exemple #2
0
 /// <exception cref="System.IO.IOException"/>
 private TokenRenewer GetRenewer()
 {
     lock (this)
     {
         if (renewer != null)
         {
             return(renewer);
         }
         renewer = TrivialRenewer;
         lock (renewers)
         {
             foreach (TokenRenewer canidate in renewers)
             {
                 if (canidate.HandleKind(this.kind))
                 {
                     renewer = canidate;
                     return(renewer);
                 }
             }
         }
         Log.Warn("No TokenRenewer defined for token kind " + this.kind);
         return(renewer);
     }
 }