Exemple #1
0
 public static ISession CreateSession(
     this ISessionFactory factory,
     RepoInfo repoInfo,
     string appName = null)
 {
     return(factory.CreateSession(repoInfo.AsSessionParameter(appName)));
 }
Exemple #2
0
 public static ISession CreateSession(
     this ISessionFactory factory,
     RepoInfo repoInfo,
     IObjectFactory objectFactory = null,
     IAuthenticationProvider authenticationProvider = null,
     ICache cache   = null,
     string appName = null)
 {
     return(factory.CreateSession(repoInfo.AsSessionParameter(appName), objectFactory, authenticationProvider, cache));
 }