Base solution for your next web application

Activities of "nnlee"

Question
using Abp.Modules;
using Abp.WebApi.Controllers.Dynamic.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestModule
{
    public class Test : AbpModule
    {
        public override void Initialize(Abp.Startup.IAbpInitializationContext initializationContext)
        {
            base.Initialize(initializationContext);

            initializationContext.IocContainer.Install(new WebApiInstaller());

            
        }

        private static void CreateWebApiProxiesForServices()
        {
            DynamicApiControllerBuilder
                .For<ITaskeverUserAppService>("taskever/user")
                .Build();
        }
    }
}

Like this , when I reference Abp.Modules and reference Abp.Web.Api at the same time ,they seems conflict .The class of 'Abp.Startup.IAbpInitializationContext' cant be finded out.Please tell me how to use these two class in one project ,thank you

Like title .I'm looking at the document about Authoration. I try to code like the document, but when I coding this "Configuration.Authorization.Providers.Add<MyAuthorizationProvider>();" I cant find how to use this configuration,I cant fine the namespace.Please help me .Thank you

Showing 1 to 2 of 2 entries