IWebSocket.OnClose Property

.NET Framework 4

Invoked when the websocket gracefully closes

Namespace:  Microsoft.AspNet.SignalR.Hosting
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Property OnClose As Action(Of Boolean)
    Get 
    Set
'Usage
Dim instance As IWebSocket 
Dim value As Action(Of Boolean)

value = instance.OnClose

instance.OnClose = value
Action<bool> OnClose { get; set; }
property Action<bool>^ OnClose {
    Action<bool>^ get ();
    void set (Action<bool>^ value);
}
abstract OnClose : Action<bool> with get, set
function get OnClose () : Action<boolean>
function set OnClose (value : Action<boolean>)

Property Value

Type: System.Action<Boolean>

See Also

Reference

IWebSocket Interface

Microsoft.AspNet.SignalR.Hosting Namespace