コード例 #1
0
        public ExtensionManager(ILogger logger, FirmwareManager fwmgr, TelemetryClient tc)
        {
            _logger = logger;
            _fwmgr = fwmgr;
            _tc = tc;

            var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
            var s4nPath = Path.Combine(appDataPath, "ScratchForDotNet");
            _addInRoot = Path.Combine(s4nPath, "Extensibility");
            _cacheRoot = Path.Combine(s4nPath, "Cache");
            _addInsDirectory = Path.Combine(_addInRoot, "AddIns");
        }
コード例 #2
0
        public ExtensionManager(ILogger logger, FirmwareManager fwmgr, TelemetryClient tc)
        {
            _logger = logger;
            _fwmgr  = fwmgr;
            _tc     = tc;

            var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
            var s4nPath     = Path.Combine(appDataPath, "ScratchForDotNet");

            _addInRoot       = Path.Combine(s4nPath, "Extensibility");
            _cacheRoot       = Path.Combine(s4nPath, "Cache");
            _addInsDirectory = Path.Combine(_addInRoot, "AddIns");
        }