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); }
internal void LogJournalWarning(JournalException exception) { _log.LogWarning(exception, exception.Type.ToString()); Warnings?.Invoke(this, exception); }