IServiceStackProvider
Assembly: ServiceStack.dll
View Source
Declaration
public interface IServiceStackProvider : IDisposable
Properties
AppSettings
View Source
Declaration
IAppSettings AppSettings { get; }
Request
View Source
Declaration
IHttpRequest Request { get; }
Response
View Source
Declaration
IHttpResponse Response { get; }
Cache
View Source
Declaration
ICacheClient Cache { get; }
CacheAsync
View Source
Declaration
ICacheClientAsync CacheAsync { get; }
Db
View Source
Declaration
IDbConnection Db { get; }
Redis
View Source
Declaration
IRedisClient Redis { get; }
MessageProducer
View Source
Declaration
IMessageProducer MessageProducer { get; }
AuthRepository
View Source
Declaration
IAuthRepository AuthRepository { get; }
AuthRepositoryAsync
View Source
Declaration
IAuthRepositoryAsync AuthRepositoryAsync { get; }
SessionFactory
View Source
Declaration
ISessionFactory SessionFactory { get; }
SessionBag
View Source
Declaration
ISession SessionBag { get; }
SessionBagAsync
View Source
Declaration
ISessionAsync SessionBagAsync { get; }
IsAuthenticated
View Source
Declaration
bool IsAuthenticated { get; }
Gateway
View Source
Declaration
IServiceGateway Gateway { get; }
RpcGateway
View Source
Declaration
RpcGateway RpcGateway { get; }
Methods
SetResolver(IResolver)
View Source
Declaration
void SetResolver(IResolver resolver)
Parameters
Type | Name |
---|---|
ServiceStack.Configuration.IResolver | resolver |
GetResolver()
View Source
Declaration
IResolver GetResolver()
Returns
ServiceStack.Configuration.IResolver
GetRedisAsync()
View Source
Declaration
ValueTask<IRedisClientAsync> GetRedisAsync()
Returns
ValueTask<ServiceStack.Redis.IRedisClientAsync>
GetSession(Boolean)
View Source
Declaration
IAuthSession GetSession(bool reload = false)
Returns
ServiceStack.Auth.IAuthSession
Parameters
Type | Name |
---|---|
System.Boolean | reload |
GetSessionAsync(Boolean, CancellationToken)
View Source
Declaration
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 |
SessionAs<TUserSession>()
View Source
Declaration
TUserSession SessionAs<TUserSession>()
Returns
<TUserSession>
Type Parameters
TUserSession
SessionAsAsync<TUserSession>(CancellationToken)
View Source
Declaration
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
void ClearSession()
ClearSessionAsync(CancellationToken)
View Source
Declaration
Task ClearSessionAsync(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
TryResolve<T>()
View Source
Declaration
T TryResolve<T>()
Returns
<T>
Type Parameters
T
ResolveService<T>()
View Source
Declaration
T ResolveService<T>()
Returns
<T>
Type Parameters
T
Execute(IRequest)
View Source
Declaration
object Execute(IRequest request)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
Execute(Object)
View Source
Declaration
[Obsolete("Use Gateway")]
object Execute(object requestDto)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | requestDto |
Execute<TResponse>(IReturn<TResponse>)
View Source
Declaration
[Obsolete("Use Gateway")]
TResponse Execute<TResponse>(IReturn<TResponse> requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IReturn<T> | requestDto |
Type Parameters
TResponse
PublishMessage<T>(T)
View Source
Declaration
[Obsolete("Use Gateway")]
void PublishMessage<T>(T message)
Parameters
Type | Name |
---|---|
<T> | message |
Type Parameters
T