Esempio n. 1
0
 public async Task <IAuthenticationSession <A> > GetOrInitAsync()
 {
     if (value == null)
     {
         lock (lockTarget)
         {
             if (value == null)
             {
                 value = authMethod.CreateSession(auth);
             }
         }
     }
     return(await value);
 }