AuthBlazorComponentBase
For Pages and Components requiring Authentication
Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public abstract class AuthBlazorComponentBase : BlazorComponentBase, IHasJsonApiClient
Properties
AuthenticationStateTask
View Source
Declaration
protected Task<AuthenticationState>? AuthenticationStateTask { get; set; }
HasInit
View Source
Declaration
protected bool HasInit { get; set; }
IsAuthenticated
View Source
Declaration
protected bool IsAuthenticated { get; }
User
View Source
Declaration
protected ClaimsPrincipal User { get; set; }
Inherited Properties
Client
View Source
Declaration
public JsonApiClient Client { get; }
ClientFactory
View Source
Declaration
public IClientFactory ClientFactory { get; set; }
EnableLogging
View Source
Declaration
protected virtual bool EnableLogging { get; }
Gateway
View Source
Declaration
public IServiceGateway Gateway { get; }
UseGateway
View Source
Declaration
public bool UseGateway { get; set; }
Methods
OnParametersSetAsync()
View Source
Declaration
protected override async Task OnParametersSetAsync()
Returns
Task
CanAccess(MetadataOperationType)
View Source
Declaration
protected virtual bool CanAccess(MetadataOperationType op)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataOperationType | op |
InvalidAccessMessage(MetadataOperationType)
View Source
Declaration
public virtual string InvalidAccessMessage(MetadataOperationType op)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.MetadataOperationType | op |
Inherited Methods
ApiAppMetadataAsync()
View Source
Declaration
public virtual Task<ApiResult<AppMetadata>> ApiAppMetadataAsync()
Returns
Task<ServiceStack.ApiResult<ServiceStack.AppMetadata>>
ApiAsync(IReturnVoid)
View Source
Declaration
public virtual Task<ApiResult<EmptyResponse>> ApiAsync(IReturnVoid request)
Returns
Task<ServiceStack.ApiResult<EmptyResponse>>
Parameters
Type | Name |
---|---|
IReturnVoid | request |
ApiAsync<TResponse>(IReturn<TResponse>)
View Source
Declaration
public virtual Task<ApiResult<TResponse>> ApiAsync<TResponse>(IReturn<TResponse> request)
Returns
Task<ServiceStack.ApiResult<<TResponse>>>
Parameters
Type | Name |
---|---|
IReturn<<TResponse>> | request |
Type Parameters
TResponse
ApiAsync<Model>(Object)
View Source
Declaration
public virtual Task<IHasErrorStatus> ApiAsync<Model>(object request)
Returns
Task<IHasErrorStatus>
Parameters
Type | Name |
---|---|
System.Object | request |
Type Parameters
Model
ApiFormAsync<Model>(Object, MultipartFormDataContent)
View Source
Declaration
public virtual Task<ApiResult<Model>> ApiFormAsync<Model>(object requestDto, MultipartFormDataContent request)
Returns
Task<ServiceStack.ApiResult<<Model>>>
Parameters
Type | Name |
---|---|
System.Object | requestDto |
MultipartFormDataContent | request |
Type Parameters
Model
log(String, Object[])
View Source
Declaration
protected virtual void log(string message, params object[] args)
Parameters
Type | Name |
---|---|
System.String | message |
System.Object[] | args |
SendAsync<TResponse>(IReturn<TResponse>)
View Source
Declaration
public virtual Task<TResponse> SendAsync<TResponse>(IReturn<TResponse> request)
Returns
Task<<TResponse>>
Parameters
Type | Name |
---|---|
IReturn<<TResponse>> | request |
Type Parameters
TResponse
Implements
ServiceStack.IHasJsonApiClient