internal static ISession Create(byte[] applicationKey, string cacheLocation, string settingsLocation, string userAgent) { NativeSession session = new NativeSession(applicationKey, cacheLocation, settingsLocation, userAgent); session.Initialize(); _sessions.Add(session.Handle, session); return session; }
internal static ISession Create( byte[] applicationKey, SessionOptions options) { NativeSession session = new NativeSession(applicationKey, options); session.Initialize(); if (SessionFactory.IsInternalCachingEnabled) { _sessions.Add(session.Handle, session); } return session; }