Displays a notification with a specified header and a remark and returns a control flow without waiting for notification's closing. Returns a value, which corresponds to whether the operation succeeded.

Namespace: Elysium.Notifications
Assembly: Elysium.Notifications (in Elysium.Notifications.dll) Version: 2.0.65.4 (2.0.65.4)

Syntax

C#
public static Task<bool> TryPushAsync(
	string message,
	string remark
)
Visual Basic
Public Shared Function TryPushAsync ( 
	message As String,
	remark As String
) As Task(Of Boolean)

Parameters

message
Type: System..::..String
A header of the notification.
remark
Type: System..::..String
A remark.

Return Value

Type: Task<(Of <(<'Boolean>)>)>
Task instance, which allows you manage execution task thread. Task incapsulated value is True, if the notification was displayed successfully, otherwise false.

Exceptions

ExceptionCondition
System..::..ArgumentException Parameter message has a value = null or it's an empty string or it consists of spaces.

Contracts

See Also