Class MessageAddressBuilder
Facilitates the conversion of config into stream of Addressee entries
Inheritance
System.Object
MessageAddressBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Web.dll
Syntax
public sealed class MessageAddressBuilder
Constructors
MessageAddressBuilder(MessageAddressBuilder.Addressee)
Declaration
public MessageAddressBuilder(MessageAddressBuilder.Addressee addressee)
Parameters
MessageAddressBuilder(String, MessageBuilderChangeEventHandler)
Declaration
public MessageAddressBuilder(string config, MessageBuilderChangeEventHandler onChange = null)
Parameters
MessageAddressBuilder(String, String, String)
Declaration
public MessageAddressBuilder(string name, string channelName, string channelAddress)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
channelName |
|
System.String |
channelAddress |
|
Fields
ATTR_CHANNEL_ADDRESS
Declaration
public const string ATTR_CHANNEL_ADDRESS = "ca"
Field Value
Type |
Description |
System.String |
|
ATTR_CHANNEL_NAME
Declaration
public const string ATTR_CHANNEL_NAME = "cn"
Field Value
Type |
Description |
System.String |
|
ATTR_NAME
Declaration
public const string ATTR_NAME = "nm"
Field Value
Type |
Description |
System.String |
|
CONFIG_A_SECT
Declaration
public const string CONFIG_A_SECT = "a"
Field Value
Type |
Description |
System.String |
|
CONFIG_ROOT_SECT
Declaration
public const string CONFIG_ROOT_SECT = "as"
Field Value
Type |
Description |
System.String |
|
Properties
All
Enumerates all Addressee instances
Declaration
public IEnumerable<MessageAddressBuilder.Addressee> All { get; }
Property Value
Methods
AddAddressee(MessageAddressBuilder.Addressee)
Declaration
public void AddAddressee(MessageAddressBuilder.Addressee addressee)
Parameters
AddAddressee(String, String, String)
Declaration
public void AddAddressee(string name, string channelName, string channelAddress)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
channelName |
|
System.String |
channelAddress |
|
GetFirstOrDefaultMatchForChannels(IEnumerable<String>)
Declaration
public MessageAddressBuilder.Addressee GetFirstOrDefaultMatchForChannels(IEnumerable<string> channelNames)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
channelNames |
|
Returns
GetMatchesForChannels(IEnumerable<String>)
Declaration
public IEnumerable<MessageAddressBuilder.Addressee> GetMatchesForChannels(IEnumerable<string> channelNames)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
channelNames |
|
Returns
MatchNamedChannel(IEnumerable<String>)
Declaration
public bool MatchNamedChannel(IEnumerable<string> channelNames)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
channelNames |
|
Returns
Type |
Description |
System.Boolean |
|
OneAddressee(String, String, String)
Declaration
public static string OneAddressee(string name, string channelName, string channelAddress)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
channelName |
|
System.String |
channelAddress |
|
Returns
Type |
Description |
System.String |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Events
MessageBuilderChange
Subscribe to get change notifications
Declaration
public event MessageBuilderChangeEventHandler MessageBuilderChange
Event Type
Extension Methods