#pragma once

#include "dssm_core.h"
#include <saas/rtyserver/components/l2/l2_component.h>

namespace NRTYServer {
    class TDssmComponent: public TL2Component<TDssmCore> {
    public:
        using TBase = TL2Component<TDssmCore>;
        using TBase::TBase;

    public:
        explicit TDssmComponent(const TRTYServerConfig& config)
            : TBase(config)
        {
        }

    public:
        bool GetInfoChecker(TInfoChecker& info) const override {
            // This is not Core->GetNormalizerVersion(). Increment it every time when you need
            // the Normalizer to start on the first run of a new build (despite the same Hash in files_info)
            info.Version = 1;
            return true;
        }
    };
}
