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)
-
0
Hi,
Which version of ABP are you using? There is no IAbpInitializationContext anymore, it is removed much time ago. Taskever project is out-dated.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
All right .Is there a last version demo .Thank you.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
<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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
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>
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)