Skip to content

ConstructorChannelNamespacePredicateProvider Methods

Stream namespace predicate provider which supports objects which can be constructed and optionally accept a string as a constructor argument.

FormatPattern(Type, string)

static
View source
public static string FormatPattern(Type predicateType, string constructorArgument)
Formats a stream namespace predicate which indicates a concrete IChannelNamespacePredicate type to be constructed, along with an optional argument.

Parameters

predicateTypeType
constructorArgumentstring

TryGetPredicate(string, IChannelNamespacePredicate)

View source
public bool TryGetPredicate(string predicatePattern, out IChannelNamespacePredicate predicate)
Get the predicate matching the provided pattern. Returns false if this provider cannot match the predicate.

Parameters

predicatePatternstring
predicateIChannelNamespacePredicate