Beispiel #1
0
 public static Session GetDefaultInstance(Util.Properties props, IAuthenticator authenticator)
 {
     lock (sync)
     {
         if (defaultSession == null)
         {
             defaultSession = new Session(props, authenticator);
         }
         return(defaultSession);
     }
 }
Beispiel #2
0
 public static Session GetInstance(Util.Properties props)
 {
     return(new Session(props, null));
 }
Beispiel #3
0
 public static Session GetInstance(Util.Properties props, IAuthenticator authenticator)
 {
     return(new Session(props, authenticator));
 }
Beispiel #4
0
 private Session(Util.Properties props, IAuthenticator authenticator)
 {
     this.props         = props;
     this.authenticator = authenticator;
 }