Updated to .NET 7.0 and added Jenkinsfile.

This commit is contained in:
2022-12-01 17:51:54 +00:00
parent 0073efc9ac
commit a1401c63e9
58 changed files with 79 additions and 7 deletions

View File

@@ -0,0 +1,29 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using GameServiceWarden.ModuleFramework;
namespace GameServiceWarden.Core.Persistence
{
public interface IReadOnlyPersistent<V> : IEnumerable<KeyValuePair<string, V>>
{
V this[string key] { get; }
/// <summary>
/// The directory for this dictionary to use.
/// </summary>
string MapDirectory { get; }
int Count { get; }
IEnumerable<V> Values { get; }
IEnumerable<string> Keys { get; }
bool ContainsKey(string key);
/// <summary>
/// The path to the data representing a specific key.
/// </summary>
/// <param name="key">The key to get the path for.</param>
/// <returns>A <see cref="string"/> representing the key.</returns>
string GetPathForKey(string key);
bool TryLoadValue(string key, [MaybeNullWhen(false)] out V value);
}
}