ServiceStackProvider
Assembly: ServiceStack.dll
View Source
Declaration
public class ServiceStackProvider : IServiceStackProvider, IDisposable
Properties
AppSettings
View Source
Declaration
public IAppSettings AppSettings { get; }
Request
View Source
Declaration
public virtual IHttpRequest Request { get; }
Response
View Source
Declaration
public virtual IHttpResponse Response { get; }
Gateway
View Source
Declaration
public virtual IServiceGateway Gateway { get; }
RpcGateway
View Source
Declaration
public RpcGateway RpcGateway { get; }
Cache
View Source
Declaration
public virtual ICacheClient Cache { get; }
CacheAsync
View Source
Declaration
public virtual ICacheClientAsync CacheAsync { 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; }
AuthRepository
View Source
Declaration
public IAuthRepository AuthRepository { get; }
AuthRepositoryAsync
View Source
Declaration
public IAuthRepositoryAsync AuthRepositoryAsync { get; }
SessionFactory
View Source
Declaration
public virtual ISessionFactory SessionFactory { get; }
SessionBag
View Source
Declaration
public virtual ISession SessionBag { get; }
SessionBagAsync
View Source
Declaration
public virtual ISessionAsync SessionBagAsync { get; }
IsAuthenticated
View Source
Declaration
public virtual bool IsAuthenticated { get; }
Methods
SetResolver(IResolver)
View Source
Declaration
public virtual void SetResolver(IResolver resolver)
Parameters
Type | Name |
---|---|
ServiceStack.Configuration.IResolver | resolver |
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
Execute(Object)
View Source
Declaration
public object Execute(object requestDto)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | requestDto |
Execute<TResponse>(IReturn<TResponse>)
View Source
Declaration
public TResponse Execute<TResponse>(IReturn<TResponse> requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IReturn<T> | requestDto |
Type Parameters
TResponse
Execute(IRequest)
View Source
Declaration
public object Execute(IRequest request)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
ForwardRequest()
View Source
Declaration
public object ForwardRequest()
Returns
System.Object
GetRedisAsync()
View Source
Declaration
public virtual ValueTask<IRedisClientAsync> GetRedisAsync()
Returns
ValueTask<ServiceStack.Redis.IRedisClientAsync>
SessionAs<TUserSession>()
Typed UserSession
View Source
Declaration
public virtual TUserSession SessionAs<TUserSession>()
Returns
<TUserSession>
Type Parameters
TUserSession
SessionAsAsync<TUserSession>(CancellationToken)
Typed UserSession
View Source
Declaration
public virtual Task<TUserSession> SessionAsAsync<TUserSession>(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TUserSession>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
Type Parameters
TUserSession
ClearSession()
View Source
Declaration
public virtual void ClearSession()
ClearSessionAsync(CancellationToken)
View Source
Declaration
public Task ClearSessionAsync(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
GetSession(Boolean)
View Source
Declaration
public virtual IAuthSession GetSession(bool reload = false)
Returns
ServiceStack.Auth.IAuthSession
Parameters
Type | Name |
---|---|
System.Boolean | reload |
GetSessionAsync(Boolean, CancellationToken)
View Source
Declaration
public virtual Task<IAuthSession> GetSessionAsync(bool reload = false, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.IAuthSession>
Parameters
Type | Name |
---|---|
System.Boolean | reload |
System.Threading.CancellationToken | token |
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 virtual void Dispose()
DisposeAsync()
View Source
Declaration
public async ValueTask DisposeAsync()
Returns
ValueTask
Implements
- ServiceStack.IServiceStackProvider
System.IDisposable