Skip to main content

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

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

Execute<TResponse>(IReturn<TResponse>)

View Source
Declaration
public TResponse Execute<TResponse>(IReturn<TResponse> requestDto)
Returns

<TResponse>

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

Execute(IRequest)

View Source
Declaration
public object Execute(IRequest request)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestrequest

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

GetSession(Boolean)

View Source
Declaration
public virtual IAuthSession GetSession(bool reload = false)
Returns

ServiceStack.Auth.IAuthSession

Parameters
TypeName
System.Booleanreload

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

PublishMessage<T>(T)

View Source
Declaration
public virtual void PublishMessage<T>(T message)
Parameters
TypeName
<T>message
Type Parameters
  • T

Dispose()

View Source
Declaration
public virtual void Dispose()

DisposeAsync()

View Source
Declaration
public async ValueTask DisposeAsync()
Returns

ValueTask

Implements