async def load(self, turn_context: TurnContext, force: bool = False) -> None:
        """
        Reads in  the current state object and caches it in the context object for this turm.
        :param turn_context: The context object for this turn.
        :param force: Optional. True to bypass the cache.
        """
        if turn_context == None:
            raise TypeError('BotState.load(): turn_context cannot be None.')
        
        cached_state = turn_context.turn_state.get(self._context_service_key)
        storage_key = self.get_storage_key(turn_context)
        
        if (force or not cached_state or not cached_state.state) :
            items = await self._storage.read([storage_key])
            val = items.get(storage_key)
            turn_context.turn_state[self._context_service_key] = CachedBotState(val)
async def load(self, turn_context: TurnContext, force: bool = False) -> None:
        """
        Reads in  the current state object and caches it in the context object for this turm.
        :param turn_context: The context object for this turn.
        :param force: Optional. True to bypass the cache.
        """
        if turn_context == None:
            raise TypeError('BotState.load(): turn_context cannot be None.')
        
        cached_state = turn_context.turn_state.get(self._context_service_key)
        storage_key = self.get_storage_key(turn_context)
        
        if (force or not cached_state or not cached_state.state) :
            items = await self._storage.read([storage_key])
            val = items.get(storage_key)
            turn_context.turn_state[self._context_service_key] = CachedBotState(val)
async def load ( self , turn_context : TurnContext , force : bool = False ) -> None : if turn_context == None : raise TypeError ( 'BotState.load(): turn_context cannot be None.' ) cached_state = turn_context . turn_state . get ( self . _context_service_key ) storage_key = self . get_storage_key ( turn_context ) if ( force or not cached_state or not cached_state . state ) : items = await self . _storage . read ( [ storage_key ] ) val = items . get ( storage_key ) turn_context . turn_state [ self . _context_service_key ] = CachedBotState ( val )
Reads in  the current state object and caches it in the context object for this turm.
        :param turn_context: The context object for this turn.
        :param force: Optional. True to bypass the cache.
Reads in the current state object and caches it in the context object for this turm . : param turn_context : The context object for this turn . : param force : Optional . True to bypass the cache .