public DynamicTypeBuilder(TypeBindingRepository typeBindingRepo) { this.typeBindingRepo = typeBindingRepo; var assemblyName = new AssemblyName("Voyager.OpenApi.Types"); var assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(assemblyName, AssemblyBuilderAccess.Run); moduleBuilder = assemblyBuilder.DefineDynamicModule("Types"); }
public VoyagerApiDescriptionProvider(IEnumerable <VoyagerRouteDefinition> voyagerRoutes, IModelMetadataProvider modelMetadataProvider, TypeBindingRepository typeBindingRepo) { this.voyagerRoutes = voyagerRoutes; this.modelMetadataProvider = modelMetadataProvider; this.typeBindingRepo = typeBindingRepo; }