MsmqIntegrationBindingElement 클래스

정의

이 바인딩 요소는 WCF(Windows Communication Foundation) 애플리케이션이 COM, MSMQ 네이티브 API 또는 System.Messaging API를 사용하는 기존 MSMQ 애플리케이션에 메시지를 보내고 받을 수 있도록 하는 데 사용할 수 있습니다. 이 클래스를 사용하여 MSMQ 기반 메시징 애플리케이션에서 메시지를 보내고 받습니다.

public ref class MsmqIntegrationBindingElement sealed : System::ServiceModel::Channels::MsmqBindingElementBase
public sealed class MsmqIntegrationBindingElement : System.ServiceModel.Channels.MsmqBindingElementBase
type MsmqIntegrationBindingElement = class
    inherit MsmqBindingElementBase
Public NotInheritable Class MsmqIntegrationBindingElement
Inherits MsmqBindingElementBase
상속

예제

// Get MSMQ queue name from appsettings in configuration.
string queueName = @".\private$\Orders";

// Create the transacted MSMQ queue if necessary.
if (!MessageQueue.Exists(queueName))
    MessageQueue.Create(queueName, true);

// Create a ServiceHost for the CalculatorService type.
using (ServiceHost serviceHost = new ServiceHost(typeof(OrderProcessorService)))
{

    MsmqIntegrationBindingElement msmqBindingElement = new MsmqIntegrationBindingElement();

    String strScheme = msmqBindingElement.Scheme;
    Console.WriteLine("Scheme = " + strScheme);

    Type[] types = msmqBindingElement.TargetSerializationTypes;

    CustomBinding binding = new CustomBinding(msmqBindingElement);

    serviceHost.AddServiceEndpoint(typeof(IOrderProcessor), binding, @"msmq.formatname:DIRECT=OS:.\private$\Orders");

    serviceHost.Open();

    // The service can now be accessed.
    Console.WriteLine("The service is ready.");
    Console.WriteLine("Press <ENTER> to terminate service.");
    Console.ReadLine();
}

생성자

Name Description
MsmqIntegrationBindingElement()

MsmqIntegrationBindingElement 클래스의 새 인스턴스를 초기화합니다.

속성

Name Description
CustomDeadLetterQueue

배달하지 못한 만료된 메시지 또는 메시지가 전송되는 사용자 지정 배달 못 한 편지 큐를 식별하는 값을 가져오거나 설정합니다 Uri .

(다음에서 상속됨 MsmqBindingElementBase)
DeadLetterQueue

이 바인딩에 DeadLetterQueue 대한 설정을 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)
Durable

이 바인딩을 사용하여 보낸 메시지가 지속성인지 휘발성인지 여부를 지정하는 값을 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)
ExactlyOnce

이 바인딩을 사용하여 보낸 메시지에 정확히 한 번 보증이 있는지 여부를 지정하는 값을 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)
ManualAddressing

메시지의 수동 주소 지정이 필요한지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 TransportBindingElement)
MaxBufferPoolSize

전송에 사용되는 버퍼 풀의 최대 크기(바이트)를 가져오거나 설정합니다.

(다음에서 상속됨 TransportBindingElement)
MaxReceivedMessageSize

수신할 수 있는 최대 허용 메시지 크기(바이트)를 가져오거나 설정합니다.

(다음에서 상속됨 TransportBindingElement)
MaxRetryCycles

받는 애플리케이션에 메시지 배달을 시도하는 최대 재시도 주기 수를 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)
MsmqTransportSecurity

MsmqTransportSecurity 이 바인딩 요소와 연결된 해당 요소를 가져옵니다.

(다음에서 상속됨 MsmqBindingElementBase)
ReceiveContextEnabled

수신 컨텍스트 동작이 요청되었는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)
ReceiveErrorHandling

포이즌 및 디스패치할 수 없는 다른 메시지를 처리하는 방법을 지정하는 열거형 값을 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)
ReceiveRetryCount

큐 관리자가 메시지를 다시 시도 큐로 전송하기 전에 메시지를 보내려고 시도하는 최대 횟수를 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)
RetryCycleDelay

배달할 수 없는 메시지를 배달하려고 할 때 다른 재시도 주기를 시도하기 전에 대기하는 시간을 지정하는 값을 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)
Scheme

String 바인딩 요소에서 사용하는 구성표를 포함하는 구성표를 가져옵니다.

SerializationFormat

MSMQ 메시지를 serialize할 때 사용할 값을 가져오거나 설정합니다 MsmqMessageSerializationFormat .

TargetSerializationTypes

메시지를 역직렬화해야 하는 형식을 포함하는 개체의 Type 배열을 가져오거나 설정합니다.

TimeToLive

메시지가 유효한 기간을 지정하는 값을 가져오거나 설정합니다. 이 시간이 경과하면 설정에 따라 메시지가 배달 못 한 편지 큐에 DeadLetterQueue 배치됩니다.

(다음에서 상속됨 MsmqBindingElementBase)
TransactedReceiveEnabled

이 바인딩을 사용하여 메시지를 받는 데 트랜잭션이 필요한지 여부를 지정하는 값을 가져옵니다.

(다음에서 상속됨 MsmqBindingElementBase)
UseMsmqTracing

MSMQ(메시지 큐) 기본 제공 메시지 추적 기능을 사용하거나 사용하지 않도록 설정하는 값을 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)
UseSourceJournal

이 바인딩에서 처리된 메시지의 복사본을 원본 저널 큐에 저장할지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)
ValidityDuration

수신 컨텍스트 기능에서 메시지를 잠글 기간을 지정하는 값을 가져오거나 설정합니다.

(다음에서 상속됨 MsmqBindingElementBase)

메서드

Name Description
BuildChannelFactory<TChannel>(BindingContext)

제공된 컨텍스트를 사용하여 채널 팩터리를 빌드합니다.

BuildChannelListener<TChannel>(BindingContext)

제공된 컨텍스트를 사용하여 채널 수신기를 빌드합니다.

CanBuildChannelFactory<TChannel>(BindingContext)

제공된 컨텍스트를 사용하여 채널 팩터리를 빌드할 수 있는지 여부를 나타내는 값을 반환합니다.

CanBuildChannelListener<TChannel>(BindingContext)

제공된 컨텍스트를 사용하여 채널 수신기를 빌드할 수 있는지 여부를 나타내는 값을 반환합니다.

Clone()

바인딩 요소의 복제본을 반환합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 사용됩니다.

(다음에서 상속됨 Object)
GetProperty<T>(BindingContext)

지정된 형식에서 요청된 BindingContext형식의 속성을 가져옵니다.

GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

Name Description
IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

바인딩에 대한 사용자 지정 정책 어설션을 내보냅니다.

(다음에서 상속됨 MsmqBindingElementBase)
IWsdlExportExtension.ExportContract(WsdlExporter, WsdlContractConversionContext)

계약에 대해 생성된 WSDL에 사용자 지정 WSDL(Web Services Description Language) 요소를 씁니다.

(다음에서 상속됨 MsmqBindingElementBase)
IWsdlExportExtension.ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext)

엔드포인트에 대해 생성된 WSDL에 사용자 지정 WSDL(Web Services Description Language) 요소를 씁니다.

(다음에서 상속됨 MsmqBindingElementBase)

적용 대상