Skip to content

Instantly share code, notes, and snippets.

@ismcagdas
Created January 29, 2018 12:42
Show Gist options
  • Select an option

  • Save ismcagdas/689e7a2e06d62ecb1437478ae0f2ad96 to your computer and use it in GitHub Desktop.

Select an option

Save ismcagdas/689e7a2e06d62ecb1437478ae0f2ad96 to your computer and use it in GitHub Desktop.
Acme.HeroShop - HeroShopPublicModule.cs - 1
[DependsOn(typeof(HeroShopWebCoreModule))]
public class HeroShopPublicModule: AbpModule
{
private readonly IHostingEnvironment _env;
private readonly IConfigurationRoot _appConfiguration;
public HeroShopPublicModule(IHostingEnvironment env)
{
_env = env;
_appConfiguration = env.GetAppConfiguration();
}
public override void Initialize()
{
IocManager.RegisterAssemblyByConvention(typeof(HeroShopPublicModule).GetAssembly());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment