Initialize() public method

public Initialize ( ) : void
return void
コード例 #1
0
ファイル: SessionManager.cs プロジェクト: kms/torshify
 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;
 }
コード例 #2
0
ファイル: SessionManager.cs プロジェクト: sekotin/torshify
        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;
        }