Skip to main content

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
TypeName
ServiceStack.MetadataOperationTypeop

InvalidAccessMessage(MetadataOperationType)

View Source
Declaration
public virtual string InvalidAccessMessage(MetadataOperationType op)
Returns

System.String

Parameters
TypeName
ServiceStack.MetadataOperationTypeop

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
TypeName
IReturnVoidrequest

ApiAsync<TResponse>(IReturn<TResponse>)

View Source
Declaration
public virtual Task<ApiResult<TResponse>> ApiAsync<TResponse>(IReturn<TResponse> request)
Returns

Task<ServiceStack.ApiResult<<TResponse>>>

Parameters
TypeName
IReturn<<TResponse>>request
Type Parameters
  • TResponse

ApiAsync<Model>(Object)

View Source
Declaration
public virtual Task<IHasErrorStatus> ApiAsync<Model>(object request)
Returns

Task<IHasErrorStatus>

Parameters
TypeName
System.Objectrequest
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
TypeName
System.ObjectrequestDto
MultipartFormDataContentrequest
Type Parameters
  • Model

log(String, Object[])

View Source
Declaration
protected virtual void log(string message, params object[] args)
Parameters
TypeName
System.Stringmessage
System.Object[]args

SendAsync<TResponse>(IReturn<TResponse>)

View Source
Declaration
public virtual Task<TResponse> SendAsync<TResponse>(IReturn<TResponse> request)
Returns

Task<<TResponse>>

Parameters
TypeName
IReturn<<TResponse>>request
Type Parameters
  • TResponse

Implements

  • ServiceStack.IHasJsonApiClient