Exemplo n.º 1
0
        private bool ValidateWrite(int chunkId)
        {
            if (Created)
            {
                Warnings?.Invoke(this, new WarningEventArgs("File has already been created")); return(false);
            }
            if (MapChunkIdToChunkPos.ContainsKey(chunkId))
            {
                Warnings?.Invoke(this, new WarningEventArgs($"Chunk with id {chunkId} has already been written")); return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
 internal void LogJournalWarning(JournalException exception)
 {
     _log.LogWarning(exception, exception.Type.ToString());
     Warnings?.Invoke(this, exception);
 }