コード例 #1
0
        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");
        }
コード例 #2
0
 public VoyagerApiDescriptionProvider(IEnumerable <VoyagerRouteDefinition> voyagerRoutes, IModelMetadataProvider modelMetadataProvider, TypeBindingRepository typeBindingRepo)
 {
     this.voyagerRoutes         = voyagerRoutes;
     this.modelMetadataProvider = modelMetadataProvider;
     this.typeBindingRepo       = typeBindingRepo;
 }