Class Diffusion
The Diffusion factory of factories.
Static properties are available which return the singleton instance of each type of factory available.
Namespace: PushTechnology.ClientInterface.Client.Factories
Assembly: Diffusion.Client.dll
Syntax
public static class Diffusion : object
Properties
Credentials
Returns the singleton credentials factory
Declaration
public static ICredentialsFactory Credentials { get; }
Property Value
Type | Description |
---|---|
ICredentialsFactory |
DataTypes
Returns the IDataTypes implementations.
Declaration
public static IDataTypes DataTypes { get; }
Property Value
Type | Description |
---|---|
IDataTypes |
Remarks
Since 5.8
ProxyAuthentication
Returns a proxy authentication scheme factory.
Declaration
public static IProxyAuthenticationFactory ProxyAuthentication { get; }
Property Value
Type | Description |
---|---|
IProxyAuthenticationFactory |
Sessions
Returns the singleton session factory.
Declaration
public static ISessionFactory Sessions { get; }
Property Value
Type | Description |
---|---|
ISessionFactory |
TopicSelectors
Returns a parser for topic selector expressions.
Declaration
public static ITopicSelectors TopicSelectors { get; }
Property Value
Type | Description |
---|---|
ITopicSelectors |
Remarks
Caution
Deprecated since 6.4. Topic selectors are no longer verified locally by the client library.
Instead
UpdateConstraints
Gets the update constraint factory.
Declaration
public static IUpdateConstraintFactory UpdateConstraints { get; }
Property Value
Type | Description |
---|---|
IUpdateConstraintFactory | The update constraint factory. |
Methods
EscapeString(String)
Escapes special characters within a string.
Declaration
public static string EscapeString(string value)
Parameters
Type | Name | Description |
---|---|---|
String | value | The string value to be escaped. |
Returns
Type | Description |
---|---|
String | The escaped string. |
Remarks
The following characters will be escaped:
Special Character | Escaped Form |
---|---|
\" | \\\" |
\' | \\\' |
\\ | \\\\ |
\b | \\b |
\f | \\f |
\n | \\n |
\r | \\r |
\t | \\t |
Unicode character will not be escaped and UTF-16 as well as UTF-32 escape sequences will also remain.
NewBranchMappingTableBuilder()
Creates a new PushTechnology.ClientInterface.Client.Features.SessionTrees.BranchMappingTableBuilder.
Declaration
public static IBranchMappingTableBuilder NewBranchMappingTableBuilder()
Returns
Type | Description |
---|---|
IBranchMappingTableBuilder | The branch mapping table builder. |
NewRemoteServerBuilder()
Creates a new PushTechnology.ClientInterface.Client.Features.RemoteServers.RemoteServerBuilder.
Declaration
public static IRemoteServerBuilder NewRemoteServerBuilder()
Returns
Type | Description |
---|---|
IRemoteServerBuilder | The remote server builder. |
NewSessionMetricCollectorBuilder()
Creates a new PushTechnology.ClientInterface.Client.Features.Metrics.SessionMetricCollectorBuilder.
Declaration
public static ISessionMetricCollectorBuilder NewSessionMetricCollectorBuilder()
Returns
Type | Description |
---|---|
ISessionMetricCollectorBuilder | The session metric collector builder. |
NewSpecification(TopicType)
Creates a new ITopicSpecification for a given topic type.
Declaration
public static ITopicSpecification NewSpecification(TopicType topicType)
Parameters
Type | Name | Description |
---|---|---|
TopicType | topicType | The topic type. |
Returns
Type | Description |
---|---|
ITopicSpecification | The new immutable specification with no properties set. New specifications with properties set may be produced using the WithProperty(String, String) or WithProperties(IDictionary<String, String>) methods of the provided specification. |
NewTopicMetricCollectorBuilder()
Creates a new PushTechnology.ClientInterface.Client.Features.Metrics.TopicMetricCollectorBuilder.
Declaration
public static ITopicMetricCollectorBuilder NewTopicMetricCollectorBuilder()
Returns
Type | Description |
---|---|
ITopicMetricCollectorBuilder | The topic metric collector builder. |
RolesToString(IReadOnlyCollection<String>)
Converts a collection of roles to a escaped string representation.
Declaration
public static string RolesToString(IReadOnlyCollection<string> roles)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyCollection<String> | roles | The collection of roles. |
Returns
Type | Description |
---|---|
String | THe escaped string representation of the roles. |
Remarks
Every item in roles
will be quoted and escaped based on the same rules as
EscapeString(String).
Every item in roles
will be separated by a comma in the resulting string
.
Given a collection with two roles ("A"
and "B"
) the resulting role string
would be
"\"A\", \"B\""
.
StringToRoles(String)
Converts a string of roles to a collection of roles.
Declaration
public static IReadOnlyCollection<string> StringToRoles(string value)
Parameters
Type | Name | Description |
---|---|---|
String | value | The string value to convert to a collection of roles. |
Returns
Type | Description |
---|---|
IReadOnlyCollection<String> | The collection of roles. |
Remarks
The given string value
must quote and separate each role with a comma. Whitespace
characters in between the roles will be ignored.
Every role found in the given value
will also be unquoted.
A string value
of "\"A\", \"B\""
will result in a collection with the items
"A"
and "B"
.