Esempio n. 1
0
        public static IFido2MetadataServiceBuilder AddFileSystemMetadataRepository(this IFido2MetadataServiceBuilder builder, string directoryPath)
        {
            builder.Services.AddTransient <IMetadataRepository, FileSystemMetadataRepository>(r =>
            {
                return(new FileSystemMetadataRepository(directoryPath));
            });

            return(builder);
        }
Esempio n. 2
0
        public static IFido2MetadataServiceBuilder AddFidoMetadataRepository(
            this IFido2MetadataServiceBuilder builder,
            HttpClient client = null)
        {
            builder.Services.AddTransient <IMetadataRepository>(provider =>
            {
                return(new Fido2MetadataServiceRepository(client));
            });

            return(builder);
        }
Esempio n. 3
0
        public static IFido2MetadataServiceBuilder AddConformanceMetadataRepository(
            this IFido2MetadataServiceBuilder builder,
            HttpClient client = null,
            string origin     = "")
        {
            builder.Services.AddTransient <IMetadataRepository>(provider =>
            {
                return(new ConformanceMetadataRepository(client, origin));
            });

            return(builder);
        }
Esempio n. 4
0
        public static IFido2MetadataServiceBuilder AddStaticMetadataRepository(this IFido2MetadataServiceBuilder builder)
        {
            builder.Services.AddTransient <IMetadataRepository, StaticMetadataRepository>();

            return(builder);
        }