pEpObjCAdapterFramework/PEPSession.h
author Dirk Zimmermann <dz@pep.security>
Thu, 14 May 2020 09:22:43 +0200
changeset 1441 822c0954acd1
parent 841 8f9de3e520a0
permissions -rw-r--r--
Added tag Release_2.0.1 for changeset c8a55f65cab4
     1 //
     2 //  PEPSession.h
     3 //  pEpObjCAdapter
     4 //
     5 //  Created by Andreas Buff on 11.10.17.
     6 //  Copyright © 2017 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 #import "PEPSessionProtocol.h"
    12 
    13 /**
    14  Fake session to handle to the client.
    15 
    16  Assures all calls are handled on the correct internal session for the thread it is called on.
    17  You can instantiate and use this session how often and wherever you want. Also over multiple threads.
    18 
    19  Note: You must call `cleanup()` once before your process gets terminated to be able to gracefully shutdown.
    20  It is the clients responsibility not to make any calls to PEPSession in between the last call
    21  to `cleanup()` and getting terminated.
    22  */
    23 @interface PEPSession : NSObject <PEPSessionProtocol>
    24 
    25 /**
    26  You must call this method once before your process gets terminated to be able to gracefully shutdown.
    27  You must not make any calls to PEPSession in between the last call to `cleanup()` and getting terminated.
    28 
    29  Only for performance reasons: call this method only if you have to.
    30  */
    31 + (void)cleanup;
    32 
    33 @end