Пример #1
0
        public VerifySignatureMiddleware(RequestDelegate next, SignatureSetting setting,
                                         ILogger <VerifySignatureMiddleware> logger)
        {
            _next    = next;
            _setting = setting;

            _logger = logger;
        }
Пример #2
0
        public SignatureSettingViewModel(string signatureName) : base()
        {
            switch (signatureName)
            {
            case "Mean":
                _model = new Mean();
                break;

            case "Variance":
                _model = new Variance();
                break;

            case "Standard Deviation":
                _model = new StandardDeviation();
                break;

            case "Kurtosis":
                _model = new Kurtosis();
                break;

            case "Skewness":
                _model = new Skewness();
                break;

            case "Correlation Coefficient":
                _model = new CorrelationCoefficient();
                break;

            case "Covariance":
                _model = new Covariance();
                break;

            case "Periodogram":
                _model = new Periodogram();
                break;

            case "Generalized Magnitude Squared Coherence (GMSC) Spectrum":
                _model = new GMSCSpectrum();
                break;

            case "Percentile":
                _model = new Percentile();
                break;

            case "Quartiles":
                _model = new Quartiles();
                break;

            case "Median":
                _model = new Median();
                break;

            case "Maximum":
                _model = new Maximum();
                break;

            case "Minimum":
                _model = new Minimum();
                break;

            case "Range":
                _model = new Range();
                break;

            case "Rise":
                _model = new Rise();
                break;

            case "Histogram":
                _model = new Histogram();
                break;

            case "Root Mean Squared Value":
                _model = new RootMeanSquare();
                break;

            case "Frequency Band Root Mean Squared Value":
                _model = new FrequencyBandRMS();
                break;

            default:
                _model = null;
                break;
            }
        }