BlazorUtils
Also extend functionality to any class implementing IHasJsonApiClient
Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public static class BlazorUtils
Fields
nextId
View Source
Declaration
public static int nextId
Methods
NextId()
View Source
Declaration
public static int NextId()
Returns
System.Int32
LogError(String, Object[])
View Source
Declaration
public static void LogError(string message, params object[] args)
Parameters
Type | Name |
---|---|
System.String | message |
System.Object[] | args |
LogError(Exception, String, Object[])
View Source
Declaration
public static void LogError(Exception ex, string message, params object[] args)
Parameters
Type | Name |
---|---|
Exception | ex |
System.String | message |
System.Object[] | args |
Log(String)
View Source
Declaration
public static void Log(string message)
Parameters
Type | Name |
---|---|
System.String | message |
LogDebug(String)
View Source
Declaration
public static void LogDebug(string message)
Parameters
Type | Name |
---|---|
System.String | message |
FormatValue(Object)
View Source
Declaration
public static string FormatValue(object value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | value |
FormatValue(Object, Int32)
View Source
Declaration
public static string FormatValue(object value, int maxFieldLength)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | value |
System.Int32 | maxFieldLength |
FormatValueAsHtml(Object)
View Source
Declaration
public static string FormatValueAsHtml(object Value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | Value |
SupportsProperty(MetadataPropertyType)
View Source
Declaration
public static bool SupportsProperty(MetadataPropertyType prop)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataPropertyType | prop |
OnApiErrorAsync(Object, IHasErrorStatus)
View Source
Declaration
public static async Task OnApiErrorAsync(object requestDto, IHasErrorStatus apiError)
Returns
Task
Parameters
Type | Name |
---|---|
System.Object | requestDto |
IHasErrorStatus | apiError |
ManagedApiAsync<TResponse>(IServiceGateway, IReturn<TResponse>)
View Source
Declaration
public static async Task<ApiResult<TResponse>> ManagedApiAsync<TResponse>(this IServiceGateway client, IReturn<TResponse> request)
Returns
Task<ServiceStack.ApiResult<<TResponse>>>
Parameters
Type | Name |
---|---|
IServiceGateway | client |
IReturn<<TResponse>> | request |
Type Parameters
TResponse
ManagedApiAsync(IServiceGateway, IReturnVoid)
View Source
Declaration
public static async Task<ApiResult<EmptyResponse>> ManagedApiAsync(this IServiceGateway client, IReturnVoid request)
Returns
Task<ServiceStack.ApiResult<EmptyResponse>>
Parameters
Type | Name |
---|---|
IServiceGateway | client |
IReturnVoid | request |
ManagedApiAsync<Model>(IServiceGateway, Object)
View Source
Declaration
public static async Task<IHasErrorStatus> ManagedApiAsync<Model>(this IServiceGateway client, object request)
Returns
Task<IHasErrorStatus>
Parameters
Type | Name |
---|---|
IServiceGateway | client |
System.Object | request |
Type Parameters
Model
ManagedApiFormAsync<Model>(IServiceGatewayFormAsync, Object, MultipartFormDataContent)
View Source
Declaration
public static async Task<ApiResult<Model>> ManagedApiFormAsync<Model>(this IServiceGatewayFormAsync client, object requestDto, MultipartFormDataContent formData)
Returns
Task<ServiceStack.ApiResult<<Model>>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceGatewayFormAsync | client |
System.Object | requestDto |
MultipartFormDataContent | formData |
Type Parameters
Model
ApiAppMetadataAsync(IServiceGateway)
View Source
Declaration
public static async Task<ApiResult<AppMetadata>> ApiAppMetadataAsync(this IServiceGateway client)
Returns
Task<ServiceStack.ApiResult<ServiceStack.AppMetadata>>
Parameters
Type | Name |
---|---|
IServiceGateway | client |
ManagedSendAsync<TResponse>(IServiceGateway, IReturn<TResponse>)
View Source
Declaration
public static async Task<TResponse> ManagedSendAsync<TResponse>(this IServiceGateway client, IReturn<TResponse> request)
Returns
Task<<TResponse>>
Parameters
Type | Name |
---|---|
IServiceGateway | client |
IReturn<<TResponse>> | request |
Type Parameters
TResponse