Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

About Abp.Modules #228


User avatar
0
nnlee created
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


4 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Which version of ABP are you using? There is no IAbpInitializationContext anymore, it is removed much time ago. Taskever project is out-dated.

  • User Avatar
    0
    nnlee created

    All right .Is there a last version demo .Thank you.

  • User Avatar
    0
    nnlee created

    <cite>NNLEE: </cite> All right .Is there a last version demo .Thank you.

    That means some another project with new version Abp or another way to learn about this topic.

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Yes, there are some sample projects: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/SimpleTaskSystem">https://github.com/aspnetboilerplate/as ... TaskSystem</a>

    Also, you can check & tutorials articles here: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents">http://www.aspnetboilerplate.com/Pages/Documents</a>