Alexander Kozachenko
5598d0f898
refactoring #6 Co-authored-by: Alexander Kozachenko <119358312+Alex-Kozachenko@users.noreply.github.com> Reviewed-on: #7
18 lines
No EOL
579 B
C#
18 lines
No EOL
579 B
C#
using ProSol.Html.Contracts.Data;
|
|
using ProSol.Messaging;
|
|
using ProSol.Messaging.Filtering;
|
|
|
|
namespace ProSol.Html.Messaging;
|
|
|
|
public static class IPublisherExtensions
|
|
{
|
|
public static IPublisher<TagsProviderMessage> Filter(
|
|
this IPublisher<TagsProviderMessage> publisher,
|
|
string tagName)
|
|
=> publisher.Filter([tagName]);
|
|
|
|
public static IPublisher<TagsProviderMessage> Filter(
|
|
this IPublisher<TagsProviderMessage> publisher,
|
|
params string[] tagNames)
|
|
=> publisher.Filter(x => tagNames.Contains(x.CurrentTag.TagInfo.Name));
|
|
} |