Class EventPublisherAbstract<Response>Abstract

Abstract class representing a event publisher

Export

Abstract

Implements

Since

1.0.0

Version

1.0.0

License

MIT

Author

Julian Andres Lasso Figueroa julian.lasso@sofka.com.co

MIT License

Copyright (c) 2023 Sofka Technologies

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Type Parameters

  • Response

    Type of response

Hierarchy

  • EventPublisherAbstract

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

_response: Response | Response[]

Response of the event publisher

Memberof

EventPublisherAbstract

eventPublisher: IEventPublisher

Event publisher

Accessors

Methods

  • Emits an event

    Returns

    {Observable} - Response of the event

    Memberof

    EventPublisherAbstract

    Type Parameters

    • Result = any

      Type of response

    • Input = Response

      Type of input

    Parameters

    • pattern: any

      Pattern of the event

    • data: Input

      Data of the event

    Returns Observable<Result>

  • Publishes an event

    Abstract

    Returns

    {Observable} - Response of the event

    Memberof

    EventPublisherAbstract

    Type Parameters

    • Result = any

      Type of response

    Returns Observable<Result>

Generated using TypeDoc