Skip to main content

NativeTypesService

Assembly: ServiceStack.dll
View Source
Declaration
[Restrict(VisibilityTo = RequestAttributes.None)]
public class NativeTypesService : Service, IService, IServiceBase, IRequiresRequest, IResolver, IDisposable, IServiceFilters, IServiceBeforeFilter, IServiceAfterFilter, IServiceErrorFilter

Properties

NativeTypesMetadata

View Source
Declaration
public INativeTypesMetadata NativeTypesMetadata { get; set; }

TypeLinksFilters

View Source
Declaration
public static List<Action<IRequest, Dictionary<string, string>>> TypeLinksFilters { get; set; }

Inherited Properties

AuthRepository

View Source
Declaration
public virtual IAuthRepository AuthRepository { get; }

AuthRepositoryAsync

View Source
Declaration
public virtual IAuthRepositoryAsync AuthRepositoryAsync { 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; }

Gateway

View Source
Declaration
public virtual IServiceGateway Gateway { get; }

GlobalResolver

View Source
Declaration
public static IResolver GlobalResolver { get; set; }

IsAuthenticated

If user found in session for this request is authenticated.

View Source
Declaration
public virtual bool IsAuthenticated { get; }

LocalCache

Returns ServiceStack.Caching.MemoryCacheClient. cache is only persisted for this running app instance.

View Source
Declaration
public virtual MemoryCacheClient LocalCache { get; }

MessageProducer

View Source
Declaration
public virtual IMessageProducer MessageProducer { get; }

Redis

View Source
Declaration
public virtual IRedisClient Redis { get; }

Request

View Source
Declaration
public IRequest Request { get; set; }

Response

View Source
Declaration
protected virtual IResponse Response { get; }

SessionBag

View Source
Declaration
public virtual ISession SessionBag { get; }

SessionBagAsync

View Source
Declaration
public virtual ISessionAsync SessionBagAsync { get; }

SessionFactory

View Source
Declaration
public virtual ISessionFactory SessionFactory { get; }

VirtualFiles

Read/Write Virtual FileSystem. Defaults to FileSystemVirtualPathProvider

View Source
Declaration
public IVirtualFiles VirtualFiles { get; }

VirtualFileSources

Cascading collection of virtual file sources, inc. Embedded Resources, File System, In Memory, S3

View Source
Declaration
public IVirtualPathProvider VirtualFileSources { get; }

Fields

ReturnInterfaces

View Source
Declaration
public static List<Type> ReturnInterfaces

BuiltinInterfaces

View Source
Declaration
public static List<Type> BuiltinInterfaces

BuiltInClientDtos

View Source
Declaration
public static List<Type> BuiltInClientDtos

Methods

View Source
Declaration
public object Any(TypeLinks request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypeLinksrequest

Any(TypesMetadata)

View Source
Declaration
public MetadataTypes Any(TypesMetadata request)
Returns

ServiceStack.MetadataTypes

Parameters
TypeName
ServiceStack.NativeTypes.TypesMetadatarequest

Any(TypesCSharp)

View Source
Declaration
[AddHeader(ContentType = "text/plain")]
public object Any(TypesCSharp request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesCSharprequest

Any(TypesFSharp)

View Source
Declaration
[AddHeader(ContentType = "text/plain")]
public object Any(TypesFSharp request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesFSharprequest

Any(TypesVbNet)

View Source
Declaration
[AddHeader(ContentType = "text/plain")]
public object Any(TypesVbNet request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesVbNetrequest

Any(TypesTypeScript)

View Source
Declaration
[AddHeader(ContentType = "text/plain")]
public object Any(TypesTypeScript request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesTypeScriptrequest

Any(TypesTypeScriptDefinition)

View Source
Declaration
[AddHeader(ContentType = "text/plain")]
public object Any(TypesTypeScriptDefinition request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesTypeScriptDefinitionrequest

GenerateTypeScript(NativeTypesBase, MetadataTypesConfig)

View Source
Declaration
public string GenerateTypeScript(NativeTypesBase request, MetadataTypesConfig typesConfig)
Returns

System.String

Parameters
TypeName
ServiceStack.NativeTypes.NativeTypesBaserequest
ServiceStack.MetadataTypesConfigtypesConfig

Any(TypesCommonJs)

View Source
Declaration
[AddHeader(ContentType = "text/javascript")]
public object Any(TypesCommonJs request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesCommonJsrequest

Any(TypesPython)

View Source
Declaration
[AddHeader(ContentType = "text/plain")]
public object Any(TypesPython request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesPythonrequest

Any(TypesDart)

View Source
Declaration
[AddHeader(ContentType = "text/plain")]
public object Any(TypesDart request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesDartrequest

ResolveMetadataTypes(MetadataTypesConfig)

View Source
Declaration
public MetadataTypes ResolveMetadataTypes(MetadataTypesConfig typesConfig)
Returns

ServiceStack.MetadataTypes

Parameters
TypeName
ServiceStack.MetadataTypesConfigtypesConfig

ResolveMetadataTypes(MetadataTypesConfig, INativeTypesMetadata, IRequest)

View Source
Declaration
public static MetadataTypes ResolveMetadataTypes(MetadataTypesConfig typesConfig, INativeTypesMetadata nativeTypesMetadata, IRequest req)
Returns

ServiceStack.MetadataTypes

Parameters
TypeName
ServiceStack.MetadataTypesConfigtypesConfig
ServiceStack.NativeTypes.INativeTypesMetadatanativeTypesMetadata
ServiceStack.Web.IRequestreq

Any(TypesSwift)

View Source
Declaration
[AddHeader(ContentType = "text/plain")]
public object Any(TypesSwift request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesSwiftrequest

Any(TypesJava)

View Source
Declaration
[AddHeader(ContentType = "text/plain")]
public object Any(TypesJava request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesJavarequest

Any(TypesKotlin)

View Source
Declaration
[AddHeader(ContentType = "text/plain")]
public object Any(TypesKotlin request)
Returns

System.Object

Parameters
TypeName
ServiceStack.NativeTypes.TypesKotlinrequest

Inherited Methods

AssertPlugin<T>()

View Source
Declaration
public T AssertPlugin<T>()
where T : class, IPlugin
Returns

<T>

Type Parameters
  • T

Dispose()

Disposes all created disposable properties of this service and executes disposing of all request System.IDisposables (warning, manually triggering this might lead to unwanted disposing of all request related objects and services.)

View Source
Declaration
public virtual void Dispose()

DisposeAsync()

View Source
Declaration
public async ValueTask DisposeAsync()
Returns

ValueTask

GetPlugin<T>()

View Source
Declaration
public T GetPlugin<T>()
where T : class, IPlugin
Returns

<T>

Type Parameters
  • T

GetRedisAsync()

View Source
Declaration
public virtual ValueTask<IRedisClientAsync> GetRedisAsync()
Returns

ValueTask<ServiceStack.Redis.IRedisClientAsync>

GetResolver()

View Source
Declaration
public virtual IResolver GetResolver()
Returns

ServiceStack.Configuration.IResolver

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

OnAfterExecute(Object)

View Source
Declaration
public virtual object OnAfterExecute(object response)
Returns

System.Object

Parameters
TypeName
System.Objectresponse

OnBeforeExecute(Object)

View Source
Declaration
public virtual void OnBeforeExecute(object requestDto)
Parameters
TypeName
System.ObjectrequestDto

OnExceptionAsync(Object, Exception)

View Source
Declaration
public virtual Task<object> OnExceptionAsync(object requestDto, Exception ex)
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
System.ObjectrequestDto
System.Exceptionex

OpenDbConnection(String)

View Source
Declaration
public virtual IDbConnection OpenDbConnection(string namedConnection)
Returns

System.Data.IDbConnection

Parameters
TypeName
System.StringnamedConnection

PublishMessage<T>(T)

Publish a MQ message over the ServiceStack.Messaging.IMessageProducer implementation.

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

ResolveService<T>()

View Source
Declaration
public virtual T ResolveService<T>()
Returns

<T>

Type Parameters
  • T

SessionAs<TUserSession>()

Typed UserSession

View Source
Declaration
protected virtual TUserSession SessionAs<TUserSession>()
Returns

<TUserSession>

Type Parameters
  • TUserSession

SessionAsAsync<TUserSession>()

Typed UserSession

View Source
Declaration
protected virtual async Task<TUserSession> SessionAsAsync<TUserSession>()
Returns

System.Threading.Tasks.Task<<TUserSession>>

Type Parameters
  • TUserSession

SetResolver(IResolver)

View Source
Declaration
public virtual Service SetResolver(IResolver resolver)
Returns

ServiceStack.Service

Parameters
TypeName
ServiceStack.Configuration.IResolverresolver

TryResolve<T>()

View Source
Declaration
public virtual T TryResolve<T>()
Returns

<T>

Type Parameters
  • T

Implements