pEpObjCAdapter/PEPSessionProvider.h
author Dirk Zimmermann <dz@pep.security>
Fri, 20 Sep 2019 10:01:48 +0200
branchIOSAD-141
changeset 1250 b6a4d30abd26
parent 387 66c6970014ff
permissions -rw-r--r--
IOSAD-141 Test for "hammering" the engine.
     1 //
     2 //  PEPSessionProvider.h
     3 //  pEpObjCAdapter
     4 //
     5 //  Created by Andreas Buff on 09.10.17.
     6 //  Copyright © 2017 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 @class PEPInternalSession;
    12 
    13 /**
    14  If you need a PEPInternaSession instance, PEPSessionProvider (and only PEPSessionProvider)
    15  provides you with one.
    16 
    17  Internally session provider creates a session per thread and caches it for as long as thread is not finished.
    18  */
    19 @interface PEPSessionProvider : NSObject
    20 
    21 /**
    22  Provides a PEPInternalSession intance.
    23 
    24  @return internal session instance suitable for the callers thread.
    25  */
    26 + (PEPInternalSession * _Nonnull)session;
    27 
    28 + (void)cleanup;
    29 
    30 @end