Initial commit
This commit is contained in:
commit
3cc7d54907
9 changed files with 605 additions and 0 deletions
6
SDBD.Contract/Document.cs
Normal file
6
SDBD.Contract/Document.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
namespace SDBD;
|
||||
|
||||
public record Document(
|
||||
Dictionary<string, string> Metadata,
|
||||
byte[] Data
|
||||
);
|
6
SDBD.Contract/ICodec.cs
Normal file
6
SDBD.Contract/ICodec.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
namespace SDBD;
|
||||
|
||||
public interface ICodec {
|
||||
Document Decode(byte[] data);
|
||||
byte[] Encode(Document document);
|
||||
}
|
9
SDBD.Contract/SDBD.Contract.csproj
Normal file
9
SDBD.Contract/SDBD.Contract.csproj
Normal file
|
@ -0,0 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue