Skip to main content

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
TypeName
ServiceStack.Configuration.IResolverresolver

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
TypeName
System.Booleanreload

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
TypeName
System.Booleanreload
System.Threading.CancellationTokentoken

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
TypeName
System.Threading.CancellationTokentoken
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
TypeName
System.Threading.CancellationTokentoken

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
TypeName
ServiceStack.Web.IRequestrequest

Execute(Object)

View Source
Declaration
[Obsolete("Use Gateway")]
object Execute(object requestDto)
Returns

System.Object

Parameters
TypeName
System.ObjectrequestDto

Execute<TResponse>(IReturn<TResponse>)

View Source
Declaration
[Obsolete("Use Gateway")]
TResponse Execute<TResponse>(IReturn<TResponse> requestDto)
Returns

<TResponse>

Parameters
TypeName
ServiceStack.IReturn<T>requestDto
Type Parameters
  • TResponse

PublishMessage<T>(T)

View Source
Declaration
[Obsolete("Use Gateway")]
void PublishMessage<T>(T message)
Parameters
TypeName
<T>message
Type Parameters
  • T