LayoutScriptFileProvider class
namespace: Serenity.Web assembly: Serenity.Net.Web
Default implementation of ILayoutScriptFileProvider, which discovers LayoutScriptFileAttributes from the type source, filters them by the registered IFeatureToggles and an optional filter, and returns them ordered with duplicates removed.
public class LayoutScriptFileProvider : ILayoutScriptFileProvider
| parameter | description |
|---|---|
| typeSource | The type source. |
| serviceProvider | The service provider, used to resolve the optional IFeatureToggles. |
| options | The layout script file options. |
Public Members
| name | description |
|---|---|
| LayoutScriptFileProvider(…) | Default implementation of ILayoutScriptFileProvider, which discovers LayoutScriptFileAttributes from the type source, filters them by the registered IFeatureToggles and an optional filter, and returns them ordered with duplicates removed. |
| GetFiles() |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | One of the required arguments is null. |
Remarks
Initializes a new instance of the LayoutScriptFileProvider class.
See Also
- interface ILayoutScriptFileProvider
- Source: LayoutScriptFileProvider.cs