Class ServiceKit16
Default ServiceKit for 2sxc v16.
Provided in Razor and WebApi as Kit
.
[PublicApi]
public class ServiceKit16 : ServiceKit, IHasLog, ICanDebug
- Inheritance
-
objectServiceBaseServiceForDynamicCodeServiceKitServiceKit16
- Implements
Remarks
This is the service kit you get on Hybrid.RazorTyped
, AppCode.Razor.AppRazor
or Hybrid.ApiTyped
.
History
- New in v16 for Typed Razor / WebApi
- Added Key service in v16.04
- Added Template service in v18.00
- Added Cache service in v19.00
- Added User service in v19.02
Properties
Adam
The ADAM Service, used to retrieve files and maybe more.
public IAdamService Adam { get; }
Property Value
Cache
Cache service, used to cache data.
public ICacheService Cache { get; }
Property Value
Remarks
Used to cache data, specifically to ensure it is refreshed when certain events happen, such as data in the App changes.
History: introduced in v19.00
Convert
The Convert Service, used to convert any kind of data type to another data type
public IConvertService16 Convert { get; }
Property Value
Css
The Koi CSS Service, used to detect the current CSS framework and other features. See ICss
public ICss Css { get; }
Property Value
Data
The Data service to get DataSources and similar.
public IDataService Data { get; }
Property Value
Remarks
- added in v15.06
Edit
The Edit service, same as the main Edit service
public IEditService Edit { get; }
Property Value
Feature
The Features service, used to check if features are enabled
public IFeaturesService Feature { get; }
Property Value
HtmlTags
The Razor Blade 4 HtmlTags service, to fluidly create Tags. See .
Important
This is similar but different to the Razor.Blade.Tag.
The Razor Blade IHtmlTag objects returned here are immutable.
This means that chained commands like ...HtmlTags.Div().Id(...).Class(...)
all return new objects and don't modify the previous one.
The older Tag
helper created mutable objects where chaining always modified the original and returned it again.
public IHtmlTagsService HtmlTags { get; }
Property Value
- IHtmlTagsService
Remarks
Added in v15
Image
The Images service, used to create img
and picture
tags
public IImageService Image { get; }
Property Value
Json
The JSON service, used to convert data to-and-from JSON
public IJsonService Json { get; }
Property Value
Key
Key service. Rarely used, as the RazorTyped has a UniqueKey property which comes from this service. You only need this service, if you need to create combined keys (like with an entity)
public IKeyService Key { get; }
Property Value
Remarks
- New in v16.04
Link
Link helper object to create the correct links
public ILinkService Link { get; }
Property Value
- ILinkService
A ILinkService object.
The Mail service, used to send mails
public IMailService Mail { get; }
Property Value
Page
The Page service, used to set headers, activate features etc.
public IPageService Page { get; }
Property Value
Render
The Render service, used to render one or more dynamic content within other content
public IRenderService Render { get; }
Property Value
Scrub
The Razor-Blade Scrub service, used to clean up HTML. See Razor Blade IScrub Service
public IScrub Scrub { get; }
Property Value
SecureData
The Secure Data service - mainly for reading / decrypting secrets.
public ISecureDataService SecureData { get; }
Property Value
SystemLog
The System Log service, used to add log messages to the system (Dnn/Oqtane)
public ISystemLogService SystemLog { get; }
Property Value
Template
Templates service, which can parse strings containing placeholders.
public ITemplateService Template { get; }
Property Value
Remarks
History: introduced in v18.00
Toolbar
The toolbar service, used to generate advanced toolbars
public IToolbarService Toolbar { get; }
Property Value
User
The User service, used to get user and role information.
public IUserService User { get; }
Property Value
Remarks
History: released in 19.02 (started in v15.03 but was never public)