Udostępnij za pośrednictwem


MsmqIntegrationBindingElement.BuildChannelFactory<TChannel> Metoda

Definicja

Tworzy fabrykę kanałów przy użyciu podanego kontekstu.

public:
generic <typename TChannel>
 override System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingContext context);
override this.BuildChannelFactory : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Overrides Function BuildChannelFactory(Of TChannel) (context As BindingContext) As IChannelFactory(Of TChannel)

Parametry typu

TChannel

Typ kanału.

Parametry

context
BindingContext

Element BindingContext , za pomocą którego należy utworzyć fabrykę kanałów.

Zwraca

IChannelFactory<TChannel>

Fabryka kanałów integracji MSMQ, która może służyć do tworzenia kanałów do wysyłania komunikatów do istniejących aplikacji MSMQ.

Wyjątki

Wartość kontekstu to null.

Nie jest to TChannel IOutputChannel.

ExactlyOnce jest i true Durable jest false.

-lub-

Element CustomDeadLetterQueue nie ma wartości null, a funkcja DeadLetterQueue nie jest niestandardowa.

-lub-

Właściwość DeadLetterQueue jest ustawiona na Wartość niestandardowa w dniu Windows 2003/XP.

-lub-

DokładnieOnce jest fałszywe, a DeadLetterQueue jest niestandardowy.

-lub-

Właściwość CustomDeadLetterQueue jest ustawiona i jeśli nie ma uprawnień do zapisu w kolejce lub jeśli kolejka nie istnieje.

-lub-

Jeśli element CustomDeadLetterQueue nie jest transakcyjny.

-lub-

MsmqAuthenticationMode jest ustawiona na Wartość WindowsDomain i jeśli środowisko MSMQ jest zainstalowane bez integracji z usługą Active Directory.

-lub-

MsmqAuthenticationMode to None i MsmqProtectionLevel nie ma żadnego.

-lub-

MsmqAuthenticationMode to Certificate lub WindowsDomain i MsmqProtectionLevel ma wartość None.

Uwagi

Ta metoda tworzy fabrykę kanałów, która umożliwia deweloperowi utworzenie kanału klienta w celu komunikowania się z usługą. Fabryka kanałów nie jest kanałem, ale fabryką, która może utworzyć kanał. Kanał można utworzyć przez wywołanie metody IChannelFactory<TChannel>.CreateChannel.

Dotyczy