Example #1
0
        public SuFcService(
            SuFcOption option,
            IFileSystemService fsService)
        {
            _fs = fsService.GetFileSystem(option.FileSystemSelect);

            InitTeamMaker();
        }
        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>();
        }