Table of Contents

Class SurfaceExtensions

Namespace
System
Assembly
Instagile.WPF.dll
public static class SurfaceExtensions
Inheritance
SurfaceExtensions
Inherited Members

Methods

HandleErrors(ISurface, Action, string, string)

public static void HandleErrors(this ISurface surface, Action f, string onError = null, string onSuccess = null)

Parameters

surface ISurface
f Action
onError string
onSuccess string

HandleErrors(ISurface, Func<Task>, string, string)

[Obsolete("Use HandleErrorsAsync")]
public static Task HandleErrors(this ISurface surface, Func<Task> f, string onError = null, string onSuccess = null)

Parameters

surface ISurface
f Func<Task>
onError string
onSuccess string

Returns

Task

HandleErrorsAsync(ISurface, Func<Task>, string, string)

public static Task HandleErrorsAsync(this ISurface surface, Func<Task> f, string onError = null, string onSuccess = null)

Parameters

surface ISurface
f Func<Task>
onError string
onSuccess string

Returns

Task

HandleErrorsAsync<T>(ISurface, Func<Task<T>>, Func<T>, string, string)

public static Task<T> HandleErrorsAsync<T>(this ISurface surface, Func<Task<T>> f, Func<T> @default, string onError = null, string onSuccess = null)

Parameters

surface ISurface
f Func<Task<T>>
default Func<T>
onError string
onSuccess string

Returns

Task<T>

Type Parameters

T

HandleErrorsAsync<T>(ISurface, Func<Task<T>>, T, string, string)

public static Task<T> HandleErrorsAsync<T>(this ISurface surface, Func<Task<T>> f, T @default, string onError = null, string onSuccess = null)

Parameters

surface ISurface
f Func<Task<T>>
default T
onError string
onSuccess string

Returns

Task<T>

Type Parameters

T

HandleErrors<T>(ISurface, Func<Task<T>>, string, string)

[Obsolete("Use HandleErrorsAsync")]
public static Task HandleErrors<T>(this ISurface surface, Func<Task<T>> f, string onError = null, string onSuccess = null)

Parameters

surface ISurface
f Func<Task<T>>
onError string
onSuccess string

Returns

Task

Type Parameters

T

HandleErrors<T>(ISurface, Func<T>, T, string, string)

public static T HandleErrors<T>(this ISurface surface, Func<T> f, T @default, string onError = null, string onSuccess = null)

Parameters

surface ISurface
f Func<T>
default T
onError string
onSuccess string

Returns

T

Type Parameters

T

LogNotification(ILogger, string, MessageLevel, string)

public static void LogNotification(this ILogger logger, string notification, MessageLevel level, string details)

Parameters

logger ILogger
notification string
level MessageLevel
details string