Table of Contents

Class DnnAppApiCompiler

Namespace
ToSic.Sxc.Dnn.WebApi.Custom.Sys
Assembly
ToSic.Sxc.Dnn.WebApi.dll

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
object
DnnAppApiCompiler
Implements
Inherited Members

Remarks

The code for these services can be in various combinations of places:

  1. The app DLL (from AppCode) or in a classic standalone XyzController.cs files inside the app/api folder.
  2. The app root folder or inside an edition.
  3. 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

site ISite
appCodeLoader LazySvc<AppCodeLoader>
analyzerLazy LazySvc<SourceAnalyzer>
roslynLazy LazySvc<IRoslynBuildManager>
appJson LazySvc<IAppJsonConfigurationService>

Remarks

The code for these services can be in various combinations of places:

  1. The app DLL (from AppCode) or in a classic standalone XyzController.cs files inside the app/api folder.
  2. The app root folder or inside an edition.
  3. 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.