pEpObjCAdapter/PEPSessionProvider.h
author Dirk Zimmermann <dirk@pep-project.org>
Thu, 17 May 2018 09:33:33 +0200
changeset 616 9e50cc7cd612
parent 387 66c6970014ff
permissions -rw-r--r--
IOSAD-93 consistently using precomposedStringWithCanonicalMapping, stringWithUTF8String
     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