Show / Hide Table of Contents

Interface ISubscriptionsList

Base interface for subscriptions lists (may be thread-safe or thread-unsafe list implementation). It also may support pooling.

Namespace: Eco.Shared.View
Assembly: Eco.Shared.dll
Syntax
public interface ISubscriptionsList : IEnumerable<ISubscription>, IEnumerable

Methods

AddSubscription(ISubscription)

Adds new subscription to ISubscriptionsList.

Declaration
void AddSubscription(ISubscription subscription)
Parameters
Type Name Description
ISubscription subscription

ReleaseSubscription(ISubscription)

Releases unsubscribed subscription.

Declaration
static void ReleaseSubscription(ISubscription subscription)
Parameters
Type Name Description
ISubscription subscription

RemoveSubscription(ISubscription)

Unsubscribes specific subscription.

Declaration
bool RemoveSubscription(ISubscription subscription)
Parameters
Type Name Description
ISubscription subscription
Returns
Type Description
System.Boolean

UnsubscribeAll()

Unsubscribes all previously added subscriptions and cleans subscription collection.

Declaration
void UnsubscribeAll()

UnsubscribeAll<TPredicate>(TPredicate)

Unsubscribe all subscriptions matching predicate.

Declaration
void UnsubscribeAll<TPredicate>(TPredicate predicate)
    where TPredicate : IPredicate<ISubscription>
Parameters
Type Name Description
TPredicate predicate
Type Parameters
Name Description
TPredicate

UnsubscribeFirst<TPredicate>(TPredicate)

Unsubscribes fist subscription matching predicate.

Declaration
bool UnsubscribeFirst<TPredicate>(TPredicate predicate)
    where TPredicate : IPredicate<ISubscription>
Parameters
Type Name Description
TPredicate predicate
Returns
Type Description
System.Boolean

true if a match was found and unsubscribed.

Type Parameters
Name Description
TPredicate

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾