public static ISession CreateSession( this ISessionFactory factory, RepoInfo repoInfo, string appName = null) { return(factory.CreateSession(repoInfo.AsSessionParameter(appName))); }
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)); }