Class DnnAppApiCompiler
Compiles c# code inside 2sxc Apps which are used as WebApi controllers.
[InternalApi_DoNotUse_MayChangeWithoutNotice("only made public for docs")]
public class DnnAppApiCompiler : ServiceBase, IHasLog
- Inheritance
-
objectDnnAppApiCompiler
- Implements
- Inherited Members
Remarks
The code for these services can be in various combinations of places:
- The app DLL (from AppCode) or in a classic standalone XyzController.cs files inside the app/api folder.
- The app root folder or inside an edition.
- The app folder of the site, or the shared app folder (shared apps are in a different folder).
This service will check all these locations and compile the code if necessary.
Constructors
DnnAppApiCompiler(ISite, LazySvc<AppCodeLoader>, LazySvc<SourceAnalyzer>, LazySvc<IRoslynBuildManager>, LazySvc<IAppJsonConfigurationService>)
Compiles c# code inside 2sxc Apps which are used as WebApi controllers.
public DnnAppApiCompiler(ISite site, LazySvc<AppCodeLoader> appCodeLoader, LazySvc<SourceAnalyzer> analyzerLazy, LazySvc<IRoslynBuildManager> roslynLazy, LazySvc<IAppJsonConfigurationService> appJson)
Parameters
siteISiteappCodeLoaderLazySvc<AppCodeLoader>analyzerLazyLazySvc<SourceAnalyzer>roslynLazyLazySvc<IRoslynBuildManager>appJsonLazySvc<IAppJsonConfigurationService>
Remarks
The code for these services can be in various combinations of places:
- The app DLL (from AppCode) or in a classic standalone XyzController.cs files inside the app/api folder.
- The app root folder or inside an edition.
- The app folder of the site, or the shared app folder (shared apps are in a different folder).
This service will check all these locations and compile the code if necessary.