Cryptographic-API-Services / cas-dotnet-sdk

A Nuget package that provides a implementation of the RustCrypto suite of cryptographic algorithms.
Apache License 2.0
0 stars 0 forks source link

Abstract BenchmarkSender and Operating System Determinator into base wrapper class #119

Closed WingZer0o closed 2 months ago

WingZer0o commented 2 months ago

There should be a base class that the other wrappers inherit from that does this logic via the constructor.

    public class ZSTDWrapper
    {
        private readonly OSPlatform _platform;
        private readonly BenchmarkSender _sender;

        public ZSTDWrapper()
        {
            this._platform = new OperatingSystemDeterminator().GetOperatingSystem();
            this._sender = new BenchmarkSender();
        }