SQL Tools Service
Show / Hide Table of Contents
Improve this Doc View Source

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 Source

EventContext()

Parameterless constructor required for mocking

Declaration
public EventContext()
| Improve this Doc View Source

EventContext(MessageWriter)

Declaration
public EventContext(MessageWriter messageWriter)
Parameters
Type Name Description
MessageWriter messageWriter

Methods

| Improve this Doc View Source

SendEvent<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
  • Improve this Doc
  • View Source

© Microsoft  //  Generated with DocFX