Exemple #1
0
        /// <summary>
        /// Adds Silent Hunter parser services.
        /// </summary>
        /// <param name="services">The service collection.</param>
        /// <param name="configurer">The configurer.</param>
        public static IServiceCollection AddSilentHunterParsers(this IServiceCollection services, Action <SilentHunterParsersConfigurer> configurer)
        {
            var c = new SilentHunterParsersConfigurer(services);

            configurer(c);

            services.AddDatFile();
            services.AddOffFile();
            services.AddSdlFile();

            return(services);
        }
Exemple #2
0
 internal ControllerConfigurer(SilentHunterParsersConfigurer configurer)
 {
     _configurer        = configurer;
     _serviceCollection = ((IServiceCollectionProvider)_configurer).ServiceCollection;
 }