Share via


IResponse Interface

.NET Framework 4

Represents a connection to the client.

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

Syntax

'Declaration
Public Interface IResponse
'Usage
Dim instance As IResponse
public interface IResponse
public interface class IResponse
type IResponse =  interface end
public interface IResponse

The IResponse type exposes the following members.

Properties

  Name Description
Public property CancellationToken Gets a cancellation token that represents the client's lifetime.
Public property ContentType Gets or sets the content type of the response.

Top

Methods

  Name Description
Public method End Closes the connection to the client.
Public method Flush Flushes the buffered response to the client.
Public method Write Writes buffered data.

Top

Extension Methods

  Name Description
Public Extension Method AsStream Wraps the underlying IResponse object as a stream (Defined by ResponseExtensions.)
Public Extension Method End Closes the connection to a client with optional data. (Defined by ResponseExtensions.)

Top

See Also

Reference

Microsoft.AspNet.SignalR.Hosting Namespace