ServiceStackCodePage
Assembly: ServiceStack.dll
View Source
Declaration
public abstract class ServiceStackCodePage : SharpCodePage, IDisposable, IRequiresRequest
Properties
Request
View Source
Declaration
public IRequest Request { get; set; }
Response
View Source
Declaration
protected virtual IResponse Response { get; }
Cache
View Source
Declaration
public virtual ICacheClient Cache { get; }
LocalCache
View Source
Declaration
public virtual MemoryCacheClient LocalCache { get; }
Db
View Source
Declaration
public virtual IDbConnection Db { get; }
Redis
View Source
Declaration
public virtual IRedisClient Redis { get; }
MessageProducer
View Source
Declaration
public virtual IMessageProducer MessageProducer { get; }
SessionFactory
View Source
Declaration
public virtual ISessionFactory SessionFactory { get; }
AuthRepository
View Source
Declaration
public virtual IAuthRepository AuthRepository { get; }
Gateway
View Source
Declaration
public virtual IServiceGateway Gateway { get; }
VirtualFileSources
View Source
Declaration
public IVirtualPathProvider VirtualFileSources { get; }
VirtualFiles
View Source
Declaration
public IVirtualFiles VirtualFiles { get; }
SessionBag
View Source
Declaration
public virtual ISession SessionBag { get; }
IsAuthenticated
View Source
Declaration
public virtual bool IsAuthenticated { get; }
Inherited Properties
Args
View Source
Declaration
public Dictionary<string, object> Args { get; }
Context
View Source
Declaration
public ScriptContext Context { get; set; }
Format
View Source
Declaration
public PageFormat Format { get; set; }
HasInit
View Source
Declaration
public bool HasInit { get; }
Layout
View Source
Declaration
public string Layout { get; set; }
LayoutPage
View Source
Declaration
public SharpPage LayoutPage { get; set; }
Pages
View Source
Declaration
public ISharpPages Pages { get; set; }
Scope
View Source
Declaration
public ScriptScopeContext Scope { get; set; }
VirtualPath
View Source
Declaration
public string VirtualPath { get; set; }
Methods
GetResolver()
View Source
Declaration
public virtual IResolver GetResolver()
Returns
ServiceStack.Configuration.IResolver
TryResolve<T>()
View Source
Declaration
public virtual T TryResolve<T>()
Returns
<T>
Type Parameters
T
ResolveService<T>()
View Source
Declaration
public virtual T ResolveService<T>()
Returns
<T>
Type Parameters
T
GetSession(Boolean)
View Source
Declaration
public virtual IAuthSession GetSession(bool reload = false)
Returns
ServiceStack.Auth.IAuthSession
Parameters
Type | Name |
---|---|
System.Boolean | reload |
SessionAs<TUserSession>()
View Source
Declaration
protected virtual TUserSession SessionAs<TUserSession>()
Returns
<TUserSession>
Type Parameters
TUserSession
PublishMessage<T>(T)
View Source
Declaration
public virtual void PublishMessage<T>(T message)
Parameters
Type | Name |
---|---|
<T> | message |
Type Parameters
T
Dispose()
View Source
Declaration
public override void Dispose()
Inherited Methods
Dispose()
View Source
Declaration
public virtual void Dispose()
Init()
View Source
Declaration
public virtual SharpCodePage Init()
Returns
ServiceStack.Script.SharpCodePage
WriteAsync(ScriptScopeContext)
View Source
Declaration
public async Task WriteAsync(ScriptScopeContext scope)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
Implements
System.IDisposable
- ServiceStack.Web.IRequiresRequest