Search Results for

    Show / Hide Table of Contents

    Interface IPollConnectionRepository

    Описывает хранилища подключений опроса.

    Namespace: Lers.Poll
    Assembly: Lers.Server.System.dll
    Syntax
    public interface IPollConnectionRepository

    Methods

    CreateInstance(PollConnection, IEquipment)

    Создаёт экземпляр подключения для бизнес-логики.

    Declaration
    IPollConnection CreateInstance(PollConnection connection, IEquipment forEquipmen)
    Parameters
    Type Name Description
    Lers.Models.PollConnection connection
    IEquipment forEquipmen

    Сюда передаётся устройство, для которого создаётся подключение. Если этого не сделать, то возникнет StackOverflow если мы создаём подключения для устройства, у которого оно само выбрано в качестве коммуникатора. Смотри #16713

    Returns
    Type Description
    IPollConnection

    GetById(EntityIdentifier<PollConnection>)

    Возвращает подключение по идентификатору или null если такое подключение не найдено.

    Declaration
    IPollConnection GetById(EntityIdentifier<PollConnection> id)
    Parameters
    Type Name Description
    EntityIdentifier<Lers.Models.PollConnection> id

    Идентификатор запрошенного подключения.

    Returns
    Type Description
    IPollConnection

    GetByIdChecked(EntityIdentifier<PollConnection>)

    Возвращает подключение по идентификатору. В случае если подключение не найдено, выдаётся исключение.

    Declaration
    IPollConnection GetByIdChecked(EntityIdentifier<PollConnection> id)
    Parameters
    Type Name Description
    EntityIdentifier<Lers.Models.PollConnection> id

    Идентификатор запрошенного подключения.

    Returns
    Type Description
    IPollConnection
    Exceptions
    Type Condition
    ItemNotFoundException

    Подключение с таким идентификатором не найдено.

    GetList()

    Возвращает полный список подключений в виде словаря.

    Declaration
    IDictionary<int, IPollConnection> GetList()
    Returns
    Type Description
    IDictionary<System.Int32, IPollConnection>

    Все подключения в виде словаря. Ключ - идентификатор подключения, значение - объект, представляющий собой подключение.

    GetListByEquipment(IEquipment)

    Возвращает список подключений для оборудования.

    Declaration
    IList<IPollConnection> GetListByEquipment(IEquipment equipmentId)
    Parameters
    Type Name Description
    IEquipment equipmentId

    Оборудование, для которого нужно вернуть список подключений.

    Returns
    Type Description
    IList<IPollConnection>

    Список подключений для оборудования.

    GetListByIntegrationId(EntityIdentifier<IntegrationParameters>)

    Возвращает список подключений для указанной интеграции.

    Declaration
    IEnumerable<IPollConnection> GetListByIntegrationId(EntityIdentifier<IntegrationParameters> integrationId)
    Parameters
    Type Name Description
    EntityIdentifier<Lers.Models.IntegrationParameters> integrationId
    Returns
    Type Description
    IEnumerable<IPollConnection>

    GetListByIntegrationTypeId(Int32)

    Возвращает список подключений для указанного типа интеграции.

    Declaration
    IEnumerable<IPollConnection> GetListByIntegrationTypeId(int integrationTypeId)
    Parameters
    Type Name Description
    System.Int32 integrationTypeId

    Тип интеграции для которого нужно получить список.

    Returns
    Type Description
    IEnumerable<IPollConnection>

    GetListByMeasurePoint(EntityIdentifier<MeasurePoint>, EntityIdentifier<IntegrationType>)

    Возвращает подключения для опроса интеграций точки учёта.

    Declaration
    IEnumerable<IPollConnection> GetListByMeasurePoint(EntityIdentifier<MeasurePoint> measurePointId, EntityIdentifier<IntegrationType> integrationTypeId)
    Parameters
    Type Name Description
    EntityIdentifier<Lers.Models.MeasurePoint> measurePointId
    EntityIdentifier<Lers.Models.IntegrationType> integrationTypeId
    Returns
    Type Description
    IEnumerable<IPollConnection>

    GetListByNode(INode, Boolean)

    Возвращает список подключений для объекта учёта.

    Declaration
    IList<IPollConnection> GetListByNode(INode node, bool withEquipment)
    Parameters
    Type Name Description
    INode node

    Объект учёта, подключения которого необходимо вернуть.

    System.Boolean withEquipment

    Отмечает необходимость возврата подключений с оборудованием.

    Returns
    Type Description
    IList<IPollConnection>

    Список подключений для объекта учёта.

    GetNodeEquipmentPollConnections(INode)

    Возвращает связь устройств, установленных на указанном объекте, с подключениями.

    Declaration
    ILookup<int, IPollConnection> GetNodeEquipmentPollConnections(INode node)
    Parameters
    Type Name Description
    INode node
    Returns
    Type Description
    ILookup<System.Int32, IPollConnection>
    In This Article
    Back to top ©2018 - 2026, ООО "ЛЭРС УЧЁТ"