Search Results for

    Show / Hide Table of Contents

    Interface IMessagePublisher

    Namespace: LemonEdge.Messaging.Core.Publishers.Abstractions
    Assembly: LemonEdge.Messaging.Core.dll
    Syntax
    public interface IMessagePublisher

    Methods

    InitializeAsync(CancellationToken)

    Performs all tasks required to initialize this message publisher

    Declaration
    Task InitializeAsync(CancellationToken token = default)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task

    PublishAsync<T>(string, T, CancellationToken)

    Publishes a message of type {T}

    Declaration
    Task PublishAsync<T>(string topicName, T message, CancellationToken token = default) where T : class
    Parameters
    Type Name Description
    string topicName

    The topic to which the message will be published

    T message

    The message to publish

    CancellationToken token
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.