mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
source code checkin
This commit is contained in:
parent
5f8fb2c825
commit
7e57b72e35
675 changed files with 168433 additions and 0 deletions
9
src/ServerManager.Common/Interfaces/IAsyncDisposable.cs
Normal file
9
src/ServerManager.Common/Interfaces/IAsyncDisposable.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using System.Threading.Tasks;
|
||||
|
||||
namespace ServerManagerTool.Common.Interfaces
|
||||
{
|
||||
public interface IAsyncDisposable
|
||||
{
|
||||
Task DisposeAsync();
|
||||
}
|
||||
}
|
||||
11
src/ServerManager.Common/Interfaces/IIniSectionCollection.cs
Normal file
11
src/ServerManager.Common/Interfaces/IIniSectionCollection.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace ServerManagerTool.Common.Interfaces
|
||||
{
|
||||
public interface IIniSectionCollection
|
||||
{
|
||||
IIniValuesCollection[] Sections { get; }
|
||||
|
||||
void Add(string sectionName, string[] values);
|
||||
|
||||
void Update();
|
||||
}
|
||||
}
|
||||
14
src/ServerManager.Common/Interfaces/IIniValuesCollection.cs
Normal file
14
src/ServerManager.Common/Interfaces/IIniValuesCollection.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace ServerManagerTool.Common.Interfaces
|
||||
{
|
||||
public interface IIniValuesCollection
|
||||
{
|
||||
string IniCollectionKey { get; }
|
||||
bool IsArray { get; }
|
||||
bool IsEnabled { get; set; }
|
||||
|
||||
void FromIniValues(IEnumerable<string> values);
|
||||
IEnumerable<string> ToIniValues();
|
||||
}
|
||||
}
|
||||
9
src/ServerManager.Common/Interfaces/IIniValuesList.cs
Normal file
9
src/ServerManager.Common/Interfaces/IIniValuesList.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace ServerManagerTool.Common.Interfaces
|
||||
{
|
||||
public interface IIniValuesList
|
||||
{
|
||||
IEnumerable<string> ToIniValues(object excludeIfValue);
|
||||
}
|
||||
}
|
||||
11
src/ServerManager.Common/Interfaces/INullableValue.cs
Normal file
11
src/ServerManager.Common/Interfaces/INullableValue.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace ServerManagerTool.Common.Interfaces
|
||||
{
|
||||
public interface INullableValue
|
||||
{
|
||||
bool HasValue { get; }
|
||||
|
||||
INullableValue Clone();
|
||||
|
||||
void SetValue(object value);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue