InfoScripts
Assembly: ServiceStack.dll
View Source
public class InfoScripts : ScriptMethods
Inherited Properties
Context
View Source
public ScriptContext Context { get; set; }
InvokerCache
View Source
public ConcurrentDictionary<string, MethodInvoker> InvokerCache { get; }
Pages
View Source
public ISharpPages Pages { get; set; }
Methods
env(String)
View Source
public string env(string variable)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | variable |
envVariable(String)
View Source
public string envVariable(string variable)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | variable |
envExpandVariables(String)
View Source
public string envExpandVariables(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
envStackTrace()
View Source
public string envStackTrace()
Returns
System.String
envProcessorCount()
View Source
public int envProcessorCount()
Returns
System.Int32
envTickCount()
View Source
public int envTickCount()
Returns
System.Int32
envServerUserAgent()
View Source
public string envServerUserAgent()
Returns
System.String
envServiceStackVersion()
View Source
public decimal envServiceStackVersion()
Returns
System.Decimal
envIsMono()
View Source
public bool envIsMono()
Returns
System.Boolean
envIsAndroid()
View Source
public bool envIsAndroid()
Returns
System.Boolean
envIsIOS()
View Source
public bool envIsIOS()
Returns
System.Boolean
licensedFeatures()
View Source
public string licensedFeatures()
Returns
System.String
envCurrentDirectory()
View Source
public string envCurrentDirectory()
Returns
System.String
envIsWindows()
View Source
public bool envIsWindows()
Returns
System.Boolean
isWin()
View Source
public bool isWin()
Returns
System.Boolean
isUnix()
View Source
public bool isUnix()
Returns
System.Boolean
envIsLinux()
View Source
public bool envIsLinux()
Returns
System.Boolean
envIsOSX()
View Source
public bool envIsOSX()
Returns
System.Boolean
envVariables()
View Source
public IDictionary envVariables()
Returns
System.Collections.IDictionary
envOSVersion()
View Source
public OperatingSystem envOSVersion()
Returns
System.OperatingSystem
envCommandLine()
View Source
public string envCommandLine()
Returns
System.String
envCommandLineArgs()
View Source
public string[] envCommandLineArgs()
Returns
System.String[]
envMachineName()
View Source
public string envMachineName()
Returns
System.String
envSystemDirectory()
View Source
public string envSystemDirectory()
Returns
System.String
envUserDomainName()
View Source
public string envUserDomainName()
Returns
System.String
envUserName()
View Source
public string envUserName()
Returns
System.String
envIs64BitOperatingSystem()
View Source
public bool envIs64BitOperatingSystem()
Returns
System.Boolean
envIs64BitProcess()
View Source
public bool envIs64BitProcess()
Returns
System.Boolean
envVersion()
View Source
public Version envVersion()
Returns
System.Version
envLogicalDrives()
View Source
public string[] envLogicalDrives()
Returns
System.String[]
envPathSeparator()
View Source
public char envPathSeparator()
Returns
System.Char
networkIpv4Addresses()
View Source
public List<IPAddress> networkIpv4Addresses()
Returns
System.Collections.Generic.List<System.Net.IPAddress>
networkIpv6Addresses()
View Source
public List<IPAddress> networkIpv6Addresses()
Returns
System.Collections.Generic.List<System.Net.IPAddress>
userSession(ScriptScopeContext)
View Source
public IAuthSession userSession(ScriptScopeContext scope)
Returns
ServiceStack.Auth.IAuthSession
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
userSessionId(ScriptScopeContext)
View Source
public string userSessionId(ScriptScopeContext scope)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
userTempSessionId(ScriptScopeContext)
View Source
public string userTempSessionId(ScriptScopeContext scope)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
userPermanentSessionId(ScriptScopeContext)
View Source
public string userPermanentSessionId(ScriptScopeContext scope)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
userSessionOptions(ScriptScopeContext)
View Source
public HashSet<string> userSessionOptions(ScriptScopeContext scope)
Returns
System.Collections.Generic.HashSet<System.String>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
userHasRole(ScriptScopeContext, String)
View Source
public bool userHasRole(ScriptScopeContext scope, string role)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | role |
userHasPermission(ScriptScopeContext, String)
View Source
public bool userHasPermission(ScriptScopeContext scope, string permission)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | permission |
userId(ScriptScopeContext)
View Source
public string userId(ScriptScopeContext scope)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
userName(ScriptScopeContext)
View Source
public string userName(ScriptScopeContext scope)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
userEmail(ScriptScopeContext)
View Source
public string userEmail(ScriptScopeContext scope)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
hostServiceName(ScriptScopeContext)
View Source
public string hostServiceName(ScriptScopeContext scope)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
hostConfig(ScriptScopeContext)
View Source
public HostConfig hostConfig(ScriptScopeContext scope)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
metaAllDtos()
View Source
public HashSet<Type> metaAllDtos()
Returns
System.Collections.Generic.HashSet<System.Type>
metaAllDtoNames()
View Source
public List<string> metaAllDtoNames()
Returns
System.Collections.Generic.List<System.String>
metaAllOperations()
View Source
public IEnumerable<Operation> metaAllOperations()
Returns
System.Collections.Generic.IEnumerable<ServiceStack.Host.Operation>
metaAllOperationNames()
View Source
public List<string> metaAllOperationNames()
Returns
System.Collections.Generic.List<System.String>
metaAllOperationTypes()
View Source
public List<Type> metaAllOperationTypes()
Returns
System.Collections.Generic.List<System.Type>
metaOperation(String)
View Source
public Operation metaOperation(string name)
Returns
Parameters
Type | Name |
---|---|
System.String | name |
plugins()
View Source
public List<IPlugin> plugins()
Returns
System.Collections.Generic.List<ServiceStack.IPlugin>
Inherited Methods
GetInvoker(String, Int32, InvokerType)
View Source
public MethodInvoker GetInvoker(string name, int argsCount, InvokerType type)
Returns
Parameters
Type | Name |
---|---|
System.String | name |
System.Int32 | argsCount |
ServiceStack.Script.InvokerType | type |
QueryFilters(String)
View Source
public List<MethodInfo> QueryFilters(string filterName)
Returns
System.Collections.Generic.List<System.Reflection.MethodInfo>
Parameters
Type | Name |
---|---|
System.String | filterName |