No description
Find a file
Peter Kurfer 25ae369e6e
All checks were successful
agola/client-dotnet/Lint The run finished successfully
Update dependency nuke.globaltool to v6.1.2
2022-09-26 16:55:35 +02:00
.agola fix(tests): start container as part of test fixture 2022-09-26 16:33:59 +02:00
.config Update dependency nuke.globaltool to v6.1.2 2022-09-26 16:55:35 +02:00
.nuke Fix NuGet publish credentials 2022-01-28 07:29:44 +01:00
api Support network monitor details 2022-02-02 14:41:26 +01:00
assets Add integration tests for the API clients 2021-03-01 12:45:35 +01:00
build Update dependency Nuke.Common to v6.1.2 2022-09-26 16:52:26 +02:00
src/INetMock.Client Update dependency Google.Protobuf to v3.21.1 2022-06-04 12:04:13 +00:00
tests fix(tests): start container as part of test fixture 2022-09-26 16:33:59 +02: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 Minor patches 2022-03-30 09:06:23 +02: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 Minor patches 2022-03-30 09:06:23 +02:00
INetMock.sln Minor patches 2022-03-30 09:06:23 +02:00
LICENSE Add LICENSE 2022-04-26 17:55:31 +00: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);
}