Пример #1
0
        public SuFcService(
            SuFcOption option,
            IFileSystemService fsService)
        {
            _fs = fsService.GetFileSystem(option.FileSystemSelect);

            InitTeamMaker();
        }
Пример #2
0
        public static void AddSuFcService(this IServiceCollection services, IConfiguration configuration)
        {
            var suFcOption = new SuFcOption();

            configuration.GetSection("SuFcService").Bind(suFcOption);

            services.AddSingleton(suFcOption);
            services.AddSingleton <ISuFcService, SuFcService>();
        }