• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    Class ServiceKit14

    Default ServiceKit for 2sxc v14.

    This is the recommended Kit of services. for base classes of 2sxc 14.

    This means that the object has many properties such as Page, which will generate the corresponding service like IPageService to quickly use common services.

    To use them in Razor, you'll do things like:

    @Kit.Page.Activate("fancybox3")
    
    Inheritance
    System.Object
    ToSic.Lib.Services.ServiceBase
    ToSic.Sxc.Services.ServiceForDynamicCode
    ServiceKit
    ServiceKit14
    Implements
    IHasLog
    Namespace: ToSic.Sxc.Services
    Assembly: ToSic.Sxc.dll
    Syntax
    [PublicApi]
    public class ServiceKit14 : ServiceKit, IHasLog, INeedsDynamicCodeRoot, IHasDynamicCodeRoot
    Remarks
    • History: Added v14.04

    Properties

    | Improve this Doc View Source

    Adam

    The ADAM Service, used to retrieve files and maybe more.

    Declaration
    public IAdamService Adam { get; }
    Property Value
    Type Description
    IAdamService
    | Improve this Doc View Source

    Convert

    The Convert Service, used to convert any kind of data type to another data type

    Declaration
    public IConvertService Convert { get; }
    Property Value
    Type Description
    IConvertService
    | Improve this Doc View Source

    Css

    The Koi CSS Service, used to detect the current CSS framework and other features. See ICss

    Declaration
    public ICss Css { get; }
    Property Value
    Type Description
    ICss
    | Improve this Doc View Source

    Edit

    The Edit service, same as the main Edit service

    Declaration
    public IEditService Edit { get; }
    Property Value
    Type Description
    IEditService
    | Improve this Doc View Source

    Feature

    The Features services, used to check if features are enabled

    Declaration
    public IFeaturesService Feature { get; }
    Property Value
    Type Description
    IFeaturesService
    | Improve this Doc View Source

    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.

    Declaration
    public IHtmlTagsService HtmlTags { get; }
    Property Value
    Type Description
    ToSic.Razor.Blade.IHtmlTagsService
    Remarks

    Added in v15

    | Improve this Doc View Source

    Image

    The Images service, used to create img and picture tags

    Declaration
    public IImageService Image { get; }
    Property Value
    Type Description
    IImageService
    | Improve this Doc View Source

    Json

    The JSON service, used to convert data to-and-from JSON

    Declaration
    public IJsonService Json { get; }
    Property Value
    Type Description
    IJsonService
    | Improve this Doc View Source

    Link

    The JSON service, used to convert data to-and-from JSON

    Declaration
    public ILinkService Link { get; }
    Property Value
    Type Description
    ILinkService
    | Improve this Doc View Source

    Mail

    The Mail service, used to send mails

    Declaration
    public IMailService Mail { get; }
    Property Value
    Type Description
    IMailService
    | Improve this Doc View Source

    Page

    The Page service, used to set headers, activate features etc.

    Declaration
    public IPageService Page { get; }
    Property Value
    Type Description
    IPageService
    | Improve this Doc View Source

    Render

    The Render service, used to render one or more dynamic content within other content

    Declaration
    public IRenderService Render { get; }
    Property Value
    Type Description
    IRenderService
    | Improve this Doc View Source

    Scrub

    The Razor-Blade Scrub service, used to clean up HTML. See Razor Blade IScrub Service

    Declaration
    public IScrub Scrub { get; }
    Property Value
    Type Description
    IScrub
    | Improve this Doc View Source

    SecureData

    The Secure Data service - mainly for reading / decrypting secrets.

    Declaration
    public ISecureDataService SecureData { get; }
    Property Value
    Type Description
    ISecureDataService
    | Improve this Doc View Source

    SystemLog

    The System Log service, used to add log messages to the system (Dnn/Oqtane)

    Declaration
    public ISystemLogService SystemLog { get; }
    Property Value
    Type Description
    ISystemLogService
    | Improve this Doc View Source

    Toolbar

    The toolbar service, used to generate advanced toolbars

    Declaration
    public IToolbarService Toolbar { get; }
    Property Value
    Type Description
    IToolbarService

    Implements

    IHasLog
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX