C# Class NSoft.NFramework.WindowsSystem.MsmqTool

Microsoft Message Queue에 대한 Utility Class 입니다.
显示文件 Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
CreatePrivateQueue ( string queueName ) : System.Messaging.MessageQueue

새로운 개인 대기열을 생성합니다.

CreatePrivateQueue ( string queueName, bool transactional ) : System.Messaging.MessageQueue

개인 대기열을 생성합니다.

CreatePrivateQueue ( string queueName, string label ) : System.Messaging.MessageQueue

개인 대기열을 생성합니다.

CreatePrivateQueue ( string queueName, string label, bool transactional ) : System.Messaging.MessageQueue

새로운 개인 대기열을 생성합니다.

CreateQueue ( string path ) : System.Messaging.MessageQueue

지정된 경로에 공개 메시지 대기열을 만듭니다.

CreateQueue ( string path, bool transactional ) : System.Messaging.MessageQueue

지정된 경로에 공개 메시지 대기열을 만듭니다.

CreateQueue ( string path, string queueLabel ) : System.Messaging.MessageQueue

지정된 경로에 공개 메시지 대기열을 만듭니다.

CreateQueue ( string path, string label, bool transactional ) : System.Messaging.MessageQueue

지정된 경로에 공개 메시지 대기열을 만듭니다.

Exists ( string path ) : bool

메시지 큐가 지정된 경로에 존재하는지 확인합니다.

GetAllMessages ( string path ) : System.Messaging.Message[]

지정된 대기열에 있는 모든 메시지의 복사본을 가져온다.

GetMessageEnumerator ( string path ) : System.Messaging.MessageEnumerator

지정된 대기열에서 foreach 구문을 위한 System.Messaging.MessageEnumerator 개체를 반환
기본적으로 대기열안의 본문 내용이 문자열로 가정한다.

GetMessageEnumerator ( string path, Type types ) : System.Messaging.MessageEnumerator

지정된 대기열에서 foreach 구문을 위한 System.Messaging.MessageEnumerator 개체를 반환
개체(사용자가 정의한 일반 Class) 를 사용할 수도 있도록 Type[] 개체를 받음 이때의 Type은 XmlMessageFormatter를 이용하여 XML로 serialize/deserialize되므로 SerializableAttribute 특성이 지정되었거나 ISerializable 인터페이스를 구현한 Class여야 한다.

GetPrivateQueue ( List list ) : void

현 시스템의 비공개 큐들을 제공된 리스트에 추가한다.

GetPrivateQueues ( ) : System.Messaging.MessageQueue[]

현 시스템의 비공개 큐들을 1차원 배열로 반환한다.

GetPrivateQueues ( string machineName ) : System.Messaging.MessageQueue[]

지정된 컴퓨터이름을 가진 시스템의 비공개 큐들을 1차원 배열로 반환한다.

타 컴퓨터의 경우 보안이 제대로 설정되어 있지 않다면, 실패할 것이다.

GetPrivateQueues ( string machineName, List list ) : void

지정된 컴퓨터이름을 가진 시스템의 비공개 큐들을 제공된 리스트에 추가한다.

타 컴퓨터의 경우 보안이 제대로 설정되어 있지 않다면, 실패할 것이다.

GetPublicQueues ( ) : System.Messaging.MessageQueue[]

가동 시스템의 공개 큐들을 1차원 배열로 반환한다.

GetPublicQueues ( string machineName ) : System.Messaging.MessageQueue[]

지정된 머신의 공개 큐들을 1차원 배열로 반환한다.

GetPublicQueues ( List list ) : void

가동 시스템의 공개 큐들을 지정된 리스트에 추가한다.

GetPublicQueues ( string machineName, List list ) : void

가동 시스템의 공개 큐들을 지정된 리스트에 추가한다.

Send ( string path, object body ) : void

message body를 인자로 대기열에 전송

Send ( string path, object body, string label ) : void

message body를 인자로 대기열에 전송

Send ( string path, object body, string label, int appSpec ) : void

System.Messaging.Message 객체를 Message Queue에 전송한다.

SendMessage ( string path, System.Messaging.Message message ) : void

System.Messaging.Message 형식의 객체를 지정된 대기열에 전송한다.

Method Details

CreatePrivateQueue() public static method

새로운 개인 대기열을 생성합니다.
public static CreatePrivateQueue ( string queueName ) : System.Messaging.MessageQueue
queueName string
return System.Messaging.MessageQueue

CreatePrivateQueue() public static method

개인 대기열을 생성합니다.
public static CreatePrivateQueue ( string queueName, bool transactional ) : System.Messaging.MessageQueue
queueName string 개인대기열 이름
transactional bool Transaction 지원 유무
return System.Messaging.MessageQueue

CreatePrivateQueue() public static method

개인 대기열을 생성합니다.
public static CreatePrivateQueue ( string queueName, string label ) : System.Messaging.MessageQueue
queueName string 대기열 이름
label string 대기열 라벨
return System.Messaging.MessageQueue

CreatePrivateQueue() public static method

새로운 개인 대기열을 생성합니다.
public static CreatePrivateQueue ( string queueName, string label, bool transactional ) : System.Messaging.MessageQueue
queueName string 개인대기열 이름
label string 라벨
transactional bool Transaction 지원 유무
return System.Messaging.MessageQueue

CreateQueue() public static method

지정된 경로에 공개 메시지 대기열을 만듭니다.
public static CreateQueue ( string path ) : System.Messaging.MessageQueue
path string 대기열 경로
return System.Messaging.MessageQueue

CreateQueue() public static method

지정된 경로에 공개 메시지 대기열을 만듭니다.
public static CreateQueue ( string path, bool transactional ) : System.Messaging.MessageQueue
path string 대기열 경로
transactional bool Transaction 지원 유무
return System.Messaging.MessageQueue

CreateQueue() public static method

지정된 경로에 공개 메시지 대기열을 만듭니다.
public static CreateQueue ( string path, string queueLabel ) : System.Messaging.MessageQueue
path string 대기열 경로
queueLabel string 대기열 라벨
return System.Messaging.MessageQueue

CreateQueue() public static method

지정된 경로에 공개 메시지 대기열을 만듭니다.
public static CreateQueue ( string path, string label, bool transactional ) : System.Messaging.MessageQueue
path string 대기열 경로
label string 대기열 라벨
transactional bool Transaction 지원 유무
return System.Messaging.MessageQueue

Exists() public static method

메시지 큐가 지정된 경로에 존재하는지 확인합니다.
public static Exists ( string path ) : bool
path string
return bool

GetAllMessages() public static method

지정된 대기열에 있는 모든 메시지의 복사본을 가져온다.
public static GetAllMessages ( string path ) : System.Messaging.Message[]
path string 지정된 대기열
return System.Messaging.Message[]

GetMessageEnumerator() public static method

지정된 대기열에서 foreach 구문을 위한 System.Messaging.MessageEnumerator 개체를 반환
기본적으로 대기열안의 본문 내용이 문자열로 가정한다.
public static GetMessageEnumerator ( string path ) : System.Messaging.MessageEnumerator
path string 지정된 대기열 위치
return System.Messaging.MessageEnumerator

GetMessageEnumerator() public static method

지정된 대기열에서 foreach 구문을 위한 System.Messaging.MessageEnumerator 개체를 반환
개체(사용자가 정의한 일반 Class) 를 사용할 수도 있도록 Type[] 개체를 받음 이때의 Type은 XmlMessageFormatter를 이용하여 XML로 serialize/deserialize되므로 SerializableAttribute 특성이 지정되었거나 ISerializable 인터페이스를 구현한 Class여야 한다.
public static GetMessageEnumerator ( string path, Type types ) : System.Messaging.MessageEnumerator
path string 지정된 대기열 위치
types System.Type XmlMessageFormatter 형식
return System.Messaging.MessageEnumerator

GetPrivateQueue() public static method

현 시스템의 비공개 큐들을 제공된 리스트에 추가한다.
public static GetPrivateQueue ( List list ) : void
list List 큐를 저장할 리스트 객체
return void

GetPrivateQueues() public static method

현 시스템의 비공개 큐들을 1차원 배열로 반환한다.
public static GetPrivateQueues ( ) : System.Messaging.MessageQueue[]
return System.Messaging.MessageQueue[]

GetPrivateQueues() public static method

지정된 컴퓨터이름을 가진 시스템의 비공개 큐들을 1차원 배열로 반환한다.
타 컴퓨터의 경우 보안이 제대로 설정되어 있지 않다면, 실패할 것이다.
public static GetPrivateQueues ( string machineName ) : System.Messaging.MessageQueue[]
machineName string
return System.Messaging.MessageQueue[]

GetPrivateQueues() public static method

지정된 컴퓨터이름을 가진 시스템의 비공개 큐들을 제공된 리스트에 추가한다.
타 컴퓨터의 경우 보안이 제대로 설정되어 있지 않다면, 실패할 것이다.
public static GetPrivateQueues ( string machineName, List list ) : void
machineName string 큐가 있는 컴퓨터이름
list List 큐를 저장할 리스트 객체
return void

GetPublicQueues() public static method

가동 시스템의 공개 큐들을 1차원 배열로 반환한다.
public static GetPublicQueues ( ) : System.Messaging.MessageQueue[]
return System.Messaging.MessageQueue[]

GetPublicQueues() public static method

지정된 머신의 공개 큐들을 1차원 배열로 반환한다.
public static GetPublicQueues ( string machineName ) : System.Messaging.MessageQueue[]
machineName string 컴퓨터 이름
return System.Messaging.MessageQueue[]

GetPublicQueues() public static method

가동 시스템의 공개 큐들을 지정된 리스트에 추가한다.
public static GetPublicQueues ( List list ) : void
list List 큐를 저장할 리스트 객체
return void

GetPublicQueues() public static method

가동 시스템의 공개 큐들을 지정된 리스트에 추가한다.
public static GetPublicQueues ( string machineName, List list ) : void
machineName string 컴퓨터 이름
list List 큐 리스트
return void

Send() public static method

message body를 인자로 대기열에 전송
public static Send ( string path, object body ) : void
path string 보낼 대기열 경로
body object 보낼 내용
return void

Send() public static method

message body를 인자로 대기열에 전송
public static Send ( string path, object body, string label ) : void
path string 보낼 대기열 경로
body object 보낼 내용
label string 메시지 라벨
return void

Send() public static method

System.Messaging.Message 객체를 Message Queue에 전송한다.
public static Send ( string path, object body, string label, int appSpec ) : void
path string 전송할 대기열 위치
body object 본문 내용
label string 메시지 라벨
appSpec int 메시지 구분을 위한 Message AppSpecific
return void

SendMessage() public static method

System.Messaging.Message 형식의 객체를 지정된 대기열에 전송한다.
public static SendMessage ( string path, System.Messaging.Message message ) : void
path string 지정된 대기열 위치
message System.Messaging.Message 전송할 메시지 객체
return void