C# Класс Microsoft.AspNet.SignalR.GroupManager

The default IGroupManager implementation.
Наследование: IConnectionGroupManager
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Add ( string connectionId, string groupName ) : System.Threading.Tasks.Task

Adds a connection to the specified group.

GroupManager ( IConnection connection, string groupPrefix ) : System

Initializes a new instance of the GroupManager class.

Remove ( string connectionId, string groupName ) : System.Threading.Tasks.Task

Removes a connection from the specified group.

Send ( IList groupNames, object value ) : System.Threading.Tasks.Task

Sends a value to the specified group.

Send ( string groupName, object value ) : System.Threading.Tasks.Task

Sends a value to the specified group.

Приватные методы

Метод Описание
CreateQualifiedName ( string groupName ) : string

Описание методов

Add() публичный Метод

Adds a connection to the specified group.
public Add ( string connectionId, string groupName ) : System.Threading.Tasks.Task
connectionId string The connection id to add to the group.
groupName string The name of the group
Результат System.Threading.Tasks.Task

GroupManager() публичный Метод

Initializes a new instance of the GroupManager class.
public GroupManager ( IConnection connection, string groupPrefix ) : System
connection IConnection The this group resides on.
groupPrefix string The prefix for this group. Either a name or type name.
Результат System

Remove() публичный Метод

Removes a connection from the specified group.
public Remove ( string connectionId, string groupName ) : System.Threading.Tasks.Task
connectionId string The connection id to remove from the group.
groupName string The name of the group
Результат System.Threading.Tasks.Task

Send() публичный Метод

Sends a value to the specified group.
public Send ( IList groupNames, object value ) : System.Threading.Tasks.Task
groupNames IList The names of the groups.
value object The value to send.
Результат System.Threading.Tasks.Task

Send() публичный Метод

Sends a value to the specified group.
public Send ( string groupName, object value ) : System.Threading.Tasks.Task
groupName string The name of the group.
value object The value to send.
Результат System.Threading.Tasks.Task