Class EventContext
Provides context for a received event so that handlers can write events back to the channel.
Inheritance
System.Object
EventContext
Namespace:Microsoft.SqlTools.ServiceLayer.Hosting.Protocol
Assembly:Microsoft.SqlTools.ServiceLayer.dll
Syntax
public class EventContext
Constructors
| Improve this Doc View SourceEventContext()
Parameterless constructor required for mocking
Declaration
public EventContext()
EventContext(MessageWriter)
Declaration
public EventContext(MessageWriter messageWriter)
Parameters
Type | Name | Description |
---|---|---|
MessageWriter | messageWriter |
Methods
| Improve this Doc View SourceSendEvent<TParams>(EventType<TParams>, TParams)
Declaration
public Task SendEvent<TParams>(EventType<TParams> eventType, TParams eventParams)
Parameters
Type | Name | Description |
---|---|---|
EventType<TParams> | eventType | |
TParams | eventParams |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |