No description
Find a file
2022-01-28 07:29:44 +01:00
.config Update to .NET 6 and latest InetMock API 2022-01-26 17:07:00 +01:00
.nuke Fix NuGet publish credentials 2022-01-28 07:29:44 +01:00
api Merge commit 'b61b4df2c2167018758dde59a3b9de2de480c3f4' 2022-01-26 10:40:49 +01:00
assets Add integration tests for the API clients 2021-03-01 12:45:35 +01:00
build Fix NuGet publish credentials 2022-01-28 07:29:44 +01:00
src/INetMock.Client Extend docs and add missing constructors 2022-01-27 20:37:25 +01:00
tests Update to .NET 6 and latest InetMock API 2022-01-26 17:07:00 +01:00
.editorconfig Update to .NET 6 and latest InetMock API 2022-01-26 17:07:00 +01:00
.gitignore Ignore output directory 2021-02-22 16:26:44 +01:00
.gitlab-ci.yml Fix NuGet publish credentials 2022-01-28 07:29:44 +01:00
.pre-commit-config.yaml Update to .NET 6 and latest InetMock API 2022-01-26 17:07:00 +01:00
build.cmd Update to .NET 6 and latest InetMock API 2022-01-26 17:07:00 +01:00
build.ps1 Update to .NET 6 and latest InetMock API 2022-01-26 17:07:00 +01:00
build.sh Update to .NET 6 and latest InetMock API 2022-01-26 17:07:00 +01:00
global.json Update to .NET 6 and latest InetMock API 2022-01-26 17:07:00 +01:00
INetMock.sln Add docs how to add the NuGet feed 2022-01-27 10:48:00 +01:00
README.md Extend docs and add missing constructors 2022-01-27 20:37:25 +01:00
renovate.json Add renovate.json 2021-10-13 08:11:21 +00:00

INetMock .NET client library

NuGet source

Due to limitations in GitLab one is required to be authenticated to use packages in GitLab NuGet registry. The following credentials are read_only and allowed to be used by anyone.

dotnet nuget add source \
  https://gitlab.com/api/v4/projects/24385200/packages/nuget/index.json \
  -n GitLabInetMock \
  -u gitlab+deploy-token-776107 \
  -p 3FLWym5gfajuJNhBKvWV \
  --store-password-in-clear-text

Reading audit files

using System.IO;
using System.Threading.Tasks;
using INetMock.Client.Audit;
using INetMock.Client.Audit.Serialization;

await using var auditFileStream = File.OpenRead("test.ima");
await using IEventReader reader = new GenericReader(new ProtoReader(auditFileStream));

await foreach (var ev in reader.ReadAllAsync())
{
    Console.WriteLine(ev.Application);
}