Class BaseScriptScope<TContext>

Defines the base scope for scripts.

Inheritance
object
BaseScriptScope<TContext>
Implements
Namespace: StylelabsStylelabs.MStylelabs.M.ScriptingStylelabs.M.Scripting.TypesStylelabs.M.Scripting.Types.V1_0Base
Assembly: Stylelabs.M.Scripting.Types.dll
Syntax
public class BaseScriptScope<TContext> : IScriptScope
Type Parameters
NameDescription
TContext

The content type.

Constructors

BaseScriptScope(TContext, IMClient)

Initializes a new instance of the BaseScriptScope<TContext> class.

Declaration
public BaseScriptScope(TContext context, IMClient client)
Parameters
TypeNameDescription
TContextcontext

The script context.

IMClientclient

The sdk client.

Properties

Context

Gets the script context.

Declaration
public TContext Context { get; }
Property Value
TypeDescription
TContext

ContextObject

Gets the context.

Declaration
public object ContextObject { get; }
Property Value
TypeDescription
object

MClient

Gets the sdk client.

Declaration
public IMClient MClient { get; }
Property Value
TypeDescription
IMClient

Methods

GetAuditData()

Gets the audit data from the script. For performance reasons, if there is nothing to return, null can be returned.

Declaration
public virtual AuditData GetAuditData()
Returns
TypeDescription
AuditData

The AuditData.

GetTelemetryData()

Gets the telemetry data from the script.

Declaration
public virtual TelemetryData GetTelemetryData()
Returns
TypeDescription
TelemetryData

The TelemetryData.

Implements

If you have suggestions for improving this article, let us know!