C# Класс Apache.NMS.NMSConnectionFactory

Implementation of a factory for IConnection instances.
Наследование: IConnectionFactory
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
factory IConnectionFactory
schemaProviderFactoryMap ProviderFactoryInfo>.Dictionary

Открытые методы

Метод Описание
CreateConnection ( ) : IConnection

Creates a new connection.

CreateConnection ( string userName, string password ) : IConnection

Creates a new connection with the given userName and password credentials.

CreateConnectionFactory ( Uri uriProvider ) : IConnectionFactory

Create a connection factory that can create connections for the given scheme in the URI.

NMSConnectionFactory ( Uri uriProvider ) : System

The ConnectionFactory object must define a constructor that takes as a minimum a Uri object. Any additional parameters are optional, but will typically include a Client ID string.

NMSConnectionFactory ( string providerURI ) : System

The ConnectionFactory object must define a constructor that takes as a minimum a Uri object. Any additional parameters are optional, but will typically include a Client ID string.

Приватные методы

Метод Описание
GetConfigSearchPaths ( ) : string[]

Get an array of search paths to look for config files.

GetTypeForScheme ( string scheme ) : Type

Finds the System.Type associated with the given scheme.

LookupConnectionFactoryInfo ( string paths, string scheme, string &assemblyFileName, string &factoryClassName ) : bool

Lookup the connection factory assembly filename and class name. Read an external configuration file that maps scheme to provider implementation. Load XML config files named: nmsprovider-{scheme}.config Following is a sample configuration file named nmsprovider-jms.config. Replace the parenthesis with angle brackets for proper XML formatting. (?xml version="1.0" encoding="utf-8" ?) (configuration) (provider assembly="MyCompany.NMS.JMSProvider.dll" classFactory="MyCompany.NMS.JMSProvider.ConnectionFactory"/) (/configuration) This configuration file would be loaded and parsed when a connection uri with a scheme of 'jms' is used for the provider. In this example the connection string might look like: jms://localhost:7222

MakeParameterArray ( object firstParam ) : object[]

Converts a params object[] collection into a plain object[]s, to pass to the constructor.

NMSConnectionFactory ( ) : System

Static class constructor

Описание методов

CreateConnection() публичный Метод

Creates a new connection.
public CreateConnection ( ) : IConnection
Результат IConnection

CreateConnection() публичный Метод

Creates a new connection with the given userName and password credentials.
public CreateConnection ( string userName, string password ) : IConnection
userName string The username to use when establishing the connection.
password string The password to use when establishing the connection.
Результат IConnection

CreateConnectionFactory() публичный статический Метод

Create a connection factory that can create connections for the given scheme in the URI.
public static CreateConnectionFactory ( Uri uriProvider ) : IConnectionFactory
uriProvider System.Uri The URI for the ActiveMQ provider.
Результат IConnectionFactory

NMSConnectionFactory() публичный Метод

The ConnectionFactory object must define a constructor that takes as a minimum a Uri object. Any additional parameters are optional, but will typically include a Client ID string.
public NMSConnectionFactory ( Uri uriProvider ) : System
uriProvider System.Uri The URI for the ActiveMQ provider.
Результат System

NMSConnectionFactory() публичный Метод

The ConnectionFactory object must define a constructor that takes as a minimum a Uri object. Any additional parameters are optional, but will typically include a Client ID string.
public NMSConnectionFactory ( string providerURI ) : System
providerURI string The URI for the ActiveMQ provider.
Результат System

Описание свойств

factory защищенное свойство

protected IConnectionFactory factory
Результат IConnectionFactory

schemaProviderFactoryMap защищенное статическое свойство

protected static Dictionary schemaProviderFactoryMap
Результат ProviderFactoryInfo>.Dictionary