Initialize() public méthode

public Initialize ( ) : void
Résultat void
Exemple #1
0
 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;
 }
Exemple #2
0
        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;
        }