Exemplo n.º 1
0
        public override bool Execute()
        {
            var paths = ResolveRuntimeDependenciesCore(EntryPoint, ApplicationDependencies.Select(c => c.ItemSpec), WebAssemblyBCLAssemblies.Select(c => c.ItemSpec));

            Dependencies = paths.Select(p => new TaskItem(p)).ToArray();

            return(true);
        }
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            DomainDependencies.InjectEFCore(services, Configuration);
            ApplicationDependencies.InjectEFCore(services, Configuration);
            services.AddControllers()
            .AddFluentValidation()
            .AddNewtonsoftJson(
                opt => opt.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore
                );

            services.AddOpenApiDocument(c => c.PostProcess = d => d.Info.Title = "Category API");
        }
Exemplo n.º 3
0
        public static void RegistApplicationDependencies(this IServiceCollection services)
        {
            var applicationDependencies = new ApplicationDependencies();

            applicationDependencies.RegisterServices(services);
        }