示例#1
0
 public static void AddQrCodeTagHelper(this IServiceCollection services, QrCodeConfiguration configuration)
 {
     services.AddSingleton(configuration);
 }
示例#2
0
        public static void AddQrCodeTagHelper(this IServiceCollection services, IConfiguration configuration)
        {
            var qrCodeConfiguration = new QrCodeConfiguration(configuration);

            services.AddQrCodeTagHelper(qrCodeConfiguration);
        }
 public QrCodeTagHelper(QrCodeConfiguration configuration)
 {
     _configuration = configuration;
 }