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