C# Class FubuMVC.ServerSentEvents.ServerEventWriter

Inheritance: IServerEventWriter
Show file Open project: DarthFubuMVC/FubuMVC.ServerSentEvents

Public Properties

Property Type Description
Data string
Event string
Id string
Retry string

Public Methods

Method Description
ServerEventWriter ( IOutputWriter writer ) : System
Write ( IServerEvent @event ) : bool
WriteData ( object data, string id = null, string @event = null, int retry = null ) : bool

Private Methods

Method Description
writeProp ( StringBuilder builder, string flag, object text ) : void

Method Details

ServerEventWriter() public method

public ServerEventWriter ( IOutputWriter writer ) : System
writer IOutputWriter
return System

Write() public method

public Write ( IServerEvent @event ) : bool
@event IServerEvent
return bool

WriteData() public method

public WriteData ( object data, string id = null, string @event = null, int retry = null ) : bool
data object
id string
@event string
retry int
return bool

Property Details

Data public property

public string Data
return string

Event public property

public string Event
return string

Id public property

public string Id
return string

Retry public property

public string Retry
return string