Exemplo n.º 1
0
        public async Task <ChunkHandler> CreateChunkHandlerAsync(long battleId, ChunkSettings chunkSettings, ChunkKey chunkKey, IChunklerClient chunklerClient)
        {
            var handler = new ChunkHandler(battleId, chunkSettings, chunkKey, chunklerClient);
            await handler.SubscribeToChunkAsync();

            return(handler);
        }
Exemplo n.º 2
0
 public ChunkHandlerSubscription(ChunkHandler handler)
 {
     _handler = handler ?? throw new ArgumentNullException();
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     _handler?.Unsubscribe(this);
     _handler = null;
 }