No description
Find a file
2022-07-03 07:04:19 +00:00
.config Update dependency dotnet-grpc to v2.46.0 2022-06-04 11:04:50 +00: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.0.3 2022-06-02 19:56:17 +00:00
src/INetMock.Client Update dependency Grpc.Tools to v2.47.0 2022-07-03 07:04:19 +00:00
tests Minor patches 2022-03-30 09:06:23 +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);
}