GetMessages(T) Method

Glimpse API

TabContextExtensions GetMessages T  Method Glimpse API Documentation
Gets all messages of type T that have been persisted with PersistMessage<T>.

Namespace: Glimpse.Core.Extensions
Assembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)

Syntax

public static IEnumerable<T> GetMessages<T>(
	this ITabContext context
)
public static IEnumerable<T> GetMessages<T>(
	this ITabContext context
)

Parameters

context
Type: Glimpse.Core.Extensibility ITabContext
The context.
Type Parameters

T
The type of message to get.

Return Value

An OnlineIEnumerable T  of any persisted messages. If no messages has been persisted, an empty enumerable will be returned.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITabContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also