AnnouncementClient AnnouncementClient AnnouncementClient AnnouncementClient Class

정의

서비스에서 검색 알림 메시지를 보내는 데 사용됩니다.Used by services to send discovery announcement messages. 클라이언트는 검색 메커니즘, 특히 해당 AnnouncementService 클래스를 사용하여 알림 메시지를 수신하고 이에 대해 동작을 수행할 수 있습니다.Clients can use the discovery mechanism, specifically the corresponding AnnouncementService class to listen and act on the announcement messages. 알림 메시지에는 정규화된 계약 이름, 서비스의 동작 범위 및 서비스에서 보내려고 하는 사용자 지정 메타데이터 등과 같은 서비스에 관한 정보가 들어 있습니다.An announcement message contains information about the service such as its fully-qualified contract name, any scopes that the service is operating in as well as any custom metadata the service wants to send.

public ref class AnnouncementClient sealed : IDisposable, System::ServiceModel::ICommunicationObject
public sealed class AnnouncementClient : IDisposable, System.ServiceModel.ICommunicationObject
type AnnouncementClient = class
    interface ICommunicationObject
    interface IDisposable
Public NotInheritable Class AnnouncementClient
Implements ICommunicationObject, IDisposable
상속
AnnouncementClientAnnouncementClientAnnouncementClientAnnouncementClient
구현

설명

서비스에서 ServiceDiscoveryBehavior 동작을 추가하고 AnnouncementEndpoint를 지정하면 서비스가 온라인이나 오프라인이 될 때 서비스에서 자동으로 알림 메시지를 보냅니다.If a service adds the ServiceDiscoveryBehavior behavior and specifies an AnnouncementEndpoint the service automatically sends announcement messages when the service goes online or comes offline. 알림 메시지를 직접 명시적으로 보내려면 이 클래스를 사용합니다.Use this class when you want to explicitly send the announcement messages yourself.

생성자

AnnouncementClient() AnnouncementClient() AnnouncementClient() AnnouncementClient()

AnnouncementClient 클래스의 새 인스턴스를 만듭니다.Creates a new instance of the AnnouncementClient class.

AnnouncementClient(AnnouncementEndpoint) AnnouncementClient(AnnouncementEndpoint) AnnouncementClient(AnnouncementEndpoint) AnnouncementClient(AnnouncementEndpoint)

지정된 AnnouncementClient를 사용하여 AnnouncementEndpoint 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the AnnouncementClient class with the specified AnnouncementEndpoint.

AnnouncementClient(String) AnnouncementClient(String) AnnouncementClient(String) AnnouncementClient(String)

지정된 엔드포인트 구성을 사용하여 AnnouncementClient 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the AnnouncementClient class with the specified endpoint configuration.

속성

ChannelFactory ChannelFactory ChannelFactory ChannelFactory

AnnouncementClient와 연결된 채널 팩터리를 가져옵니다.Gets the channel factory associated with the AnnouncementClient.

ClientCredentials ClientCredentials ClientCredentials ClientCredentials

AnnouncementClient와 연결된 클라이언트 자격 증명을 가져옵니다.Gets the client credentials associated with the AnnouncementClient.

Endpoint Endpoint Endpoint Endpoint

ServiceEndpoint와 연결된 AnnouncementClient를 가져옵니다.Gets the ServiceEndpoint associated with the AnnouncementClient.

InnerChannel InnerChannel InnerChannel InnerChannel

AnnouncementClient와 연결된 내부 채널을 가져옵니다.Gets the inner channel associated with the AnnouncementClient.

MessageSequenceGenerator MessageSequenceGenerator MessageSequenceGenerator MessageSequenceGenerator

AnnouncementClient와 연결된 메시지 시퀀스 생성기를 가져오거나 설정합니다.Gets or sets the message sequence generator associated with the AnnouncementClient.

메서드

AnnounceOffline(EndpointDiscoveryMetadata) AnnounceOffline(EndpointDiscoveryMetadata) AnnounceOffline(EndpointDiscoveryMetadata) AnnounceOffline(EndpointDiscoveryMetadata)

지정된 엔드포인트 검색 메타데이터를 사용하여 오프라인 알림 메시지(Bye)를 보냅니다.Causes an offline announcement message (Bye) to be sent with the specified endpoint discovery metadata.

AnnounceOfflineAsync(EndpointDiscoveryMetadata) AnnounceOfflineAsync(EndpointDiscoveryMetadata) AnnounceOfflineAsync(EndpointDiscoveryMetadata) AnnounceOfflineAsync(EndpointDiscoveryMetadata)

지정된 엔드포인트 검색 메타데이터를 사용하여 오프라인 알림 메시지(Bye)를 비동기적으로 보냅니다.Causes an offline announcement message (Bye) to be sent asynchronously with the specified endpoint discovery metadata.

AnnounceOfflineAsync(EndpointDiscoveryMetadata, Object) AnnounceOfflineAsync(EndpointDiscoveryMetadata, Object) AnnounceOfflineAsync(EndpointDiscoveryMetadata, Object) AnnounceOfflineAsync(EndpointDiscoveryMetadata, Object)

지정된 엔드포인트 검색 메타데이터 및 사용자 정의 상태를 사용하여 오프라인 알림 메시지(Bye)를 비동기적으로 보냅니다.Causes an offline announcement message (Bye) to be sent asynchronously with the specified endpoint discovery metadata and user-defined state.

AnnounceOfflineTaskAsync(EndpointDiscoveryMetadata) AnnounceOfflineTaskAsync(EndpointDiscoveryMetadata) AnnounceOfflineTaskAsync(EndpointDiscoveryMetadata) AnnounceOfflineTaskAsync(EndpointDiscoveryMetadata)

지정된 엔드포인트 검색 메타데이터를 사용하여 오프라인 작업 알림 메시지(Bye)를 비동기적으로 보냅니다.Causes an offline task announcement message (Bye) to be sent asynchronously with the specified endpoint discovery metadata.

AnnounceOnline(EndpointDiscoveryMetadata) AnnounceOnline(EndpointDiscoveryMetadata) AnnounceOnline(EndpointDiscoveryMetadata) AnnounceOnline(EndpointDiscoveryMetadata)

온라인 알림 메시지(Hello)를 보냅니다.Causes an online announcement message (Hello) to be sent.

AnnounceOnlineAsync(EndpointDiscoveryMetadata) AnnounceOnlineAsync(EndpointDiscoveryMetadata) AnnounceOnlineAsync(EndpointDiscoveryMetadata) AnnounceOnlineAsync(EndpointDiscoveryMetadata)

지정된 엔드포인트 검색 메타데이터를 사용하여 온라인 알림 메시지(Hello)를 비동기적으로 보냅니다.Causes an online announcement (Hello) message to be sent asynchronously with the specified endpoint discovery metadata.

AnnounceOnlineAsync(EndpointDiscoveryMetadata, Object) AnnounceOnlineAsync(EndpointDiscoveryMetadata, Object) AnnounceOnlineAsync(EndpointDiscoveryMetadata, Object) AnnounceOnlineAsync(EndpointDiscoveryMetadata, Object)

지정된 엔드포인트 검색 메타데이터 및 사용자 정의 상태를 사용하여 온라인 알림 메시지(Hello)를 비동기적으로 보냅니다.Causes an online announcement (Hello) message to be sent asynchronously with the specified endpoint discovery metadata and user-defined state.

AnnounceOnlineTaskAsync(EndpointDiscoveryMetadata) AnnounceOnlineTaskAsync(EndpointDiscoveryMetadata) AnnounceOnlineTaskAsync(EndpointDiscoveryMetadata) AnnounceOnlineTaskAsync(EndpointDiscoveryMetadata)

지정된 엔드포인트 검색 메타데이터를 사용하여 온라인 작업 알림 메시지(Hello)를 비동기적으로 보냅니다.Causes an online task announcement message (Hello) to be sent asynchronously with the specified endpoint discovery metadata.

BeginAnnounceOffline(EndpointDiscoveryMetadata, AsyncCallback, Object) BeginAnnounceOffline(EndpointDiscoveryMetadata, AsyncCallback, Object) BeginAnnounceOffline(EndpointDiscoveryMetadata, AsyncCallback, Object) BeginAnnounceOffline(EndpointDiscoveryMetadata, AsyncCallback, Object)

지정된 엔드포인트 검색 메타데이터 및 사용자 정의 상태를 사용하여 오프라인 알림 메시지(Bye)를 비동기적으로 보냅니다.Causes an offline announcement (Bye) message to be sent asynchronously with the specified endpoint discovery metadata and user-defined state. 작업이 완료되면 지정된 AsyncCallback이 호출됩니다.The specified AsyncCallback is called when the operation completes.

BeginAnnounceOnline(EndpointDiscoveryMetadata, AsyncCallback, Object) BeginAnnounceOnline(EndpointDiscoveryMetadata, AsyncCallback, Object) BeginAnnounceOnline(EndpointDiscoveryMetadata, AsyncCallback, Object) BeginAnnounceOnline(EndpointDiscoveryMetadata, AsyncCallback, Object)

지정된 엔드포인트 검색 메타데이터 및 사용자 정의 상태를 사용하여 온라인 알림 메시지(Hello)를 비동기적으로 보냅니다.Causes an online announcement (Hello) message to be sent asynchronously with the specified endpoint discovery metadata and user-defined state. 작업이 완료되면 지정된 AsyncCallback이 호출됩니다.The specified AsyncCallback is called when the operation completes.

Close() Close() Close() Close()

AnnouncementClient를 닫습니다.Closes the AnnouncementClient.

EndAnnounceOffline(IAsyncResult) EndAnnounceOffline(IAsyncResult) EndAnnounceOffline(IAsyncResult) EndAnnounceOffline(IAsyncResult)

보류 중인 비동기 오프라인 알림이 완료되기를 기다립니다.Waits for a pending asynchronous offline announcement to complete.

EndAnnounceOnline(IAsyncResult) EndAnnounceOnline(IAsyncResult) EndAnnounceOnline(IAsyncResult) EndAnnounceOnline(IAsyncResult)

보류 중인 비동기 온라인 알림이 완료되기를 기다립니다.Waits for a pending asynchronous online announcement to complete.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

지정한 개체와 현재 개체가 같은지 여부를 확인합니다.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

기본 해시 함수로 작동합니다.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object.

(Inherited from Object)
Open() Open() Open() Open()

AnnouncementClient를 엽니다.Opens the AnnouncementClient.

ToString() ToString() ToString() ToString()

현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object.

(Inherited from Object)

이벤트

AnnounceOfflineCompleted AnnounceOfflineCompleted AnnounceOfflineCompleted AnnounceOfflineCompleted

비동기 오프라인 알림(Bye)이 완료되면 발생합니다.Occurs when an asynchronous offline announcement (Bye) completes.

AnnounceOnlineCompleted AnnounceOnlineCompleted AnnounceOnlineCompleted AnnounceOnlineCompleted

비동기 온라인 알림(Hello)이 완료되면 발생합니다.Occurs when an asynchronous online announcement (Hello) completes.

명시적 인터페이스 구현

ICommunicationObject.Abort() ICommunicationObject.Abort() ICommunicationObject.Abort() ICommunicationObject.Abort()

통신 개체가 현재 상태에서 Closed 상태로 즉시 전환되도록 합니다.Causes a communication object to transition immediately from its current state into the closed state.

ICommunicationObject.BeginClose(AsyncCallback, Object) ICommunicationObject.BeginClose(AsyncCallback, Object) ICommunicationObject.BeginClose(AsyncCallback, Object) ICommunicationObject.BeginClose(AsyncCallback, Object)

통신 개체를 닫기 위한 비동기 작업을 시작합니다.Begins an asynchronous operation to close a communication object.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

지정된 제한 시간 내에서 통신 개체를 닫기 위한 비동기 작업을 시작합니다.Begins an asynchronous operation to close a communication object with a specified timeout.

ICommunicationObject.BeginOpen(AsyncCallback, Object) ICommunicationObject.BeginOpen(AsyncCallback, Object) ICommunicationObject.BeginOpen(AsyncCallback, Object) ICommunicationObject.BeginOpen(AsyncCallback, Object)

통신 개체를 열기 위한 비동기 작업을 시작합니다.Begins an asynchronous operation to open a communication object.

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

지정된 시간 간격 내에서 통신 개체를 열기 위한 비동기 작업을 시작합니다.Begins an asynchronous operation to open a communication object within a specified interval of time.

ICommunicationObject.Close() ICommunicationObject.Close() ICommunicationObject.Close() ICommunicationObject.Close()

통신 개체가 현재 상태에서 Closed 상태로 전환되도록 합니다.Causes a communication object to transition from its current state into the closed state.

ICommunicationObject.Close(TimeSpan) ICommunicationObject.Close(TimeSpan) ICommunicationObject.Close(TimeSpan) ICommunicationObject.Close(TimeSpan)

통신 개체가 지정된 시간 간격 내에 현재 상태에서 Closed 상태로 전환되도록 합니다.Causes a communication object to transition from its current state into the closed state within a specified interval of time.

ICommunicationObject.Closed ICommunicationObject.Closed ICommunicationObject.Closed ICommunicationObject.Closed

통신 개체가 Closing 상태에서 Closed 상태로 전환을 완료할 때 발생합니다.Occurs when the communication object completes its transition from the closing state into the closed state.

ICommunicationObject.Closing ICommunicationObject.Closing ICommunicationObject.Closing ICommunicationObject.Closing

통신 개체가 처음 Closing 상태가 될 때 발생합니다.Occurs when the communication object first enters the closing state.

ICommunicationObject.EndClose(IAsyncResult) ICommunicationObject.EndClose(IAsyncResult) ICommunicationObject.EndClose(IAsyncResult) ICommunicationObject.EndClose(IAsyncResult)

통신 개체를 닫기 위한 비동기 작업을 완료합니다.Completes an asynchronous operation to close a communication object.

ICommunicationObject.EndOpen(IAsyncResult) ICommunicationObject.EndOpen(IAsyncResult) ICommunicationObject.EndOpen(IAsyncResult) ICommunicationObject.EndOpen(IAsyncResult)

통신 개체를 열기 위한 비동기 작업을 완료합니다.Completes an asynchronous operation to open a communication object.

ICommunicationObject.Faulted ICommunicationObject.Faulted ICommunicationObject.Faulted ICommunicationObject.Faulted

통신 개체가 처음 Faulted 상태가 될 때 발생합니다.Occurs when the communication object first enters the faulted state.

ICommunicationObject.Open() ICommunicationObject.Open() ICommunicationObject.Open() ICommunicationObject.Open()

통신 개체가 Created 상태에서 Opened 상태로 전환되도록 합니다.Causes a communication object to transition from the created state into the opened state.

ICommunicationObject.Open(TimeSpan) ICommunicationObject.Open(TimeSpan) ICommunicationObject.Open(TimeSpan) ICommunicationObject.Open(TimeSpan)

통신 개체가 지정된 시간 간격 내에 Created 상태에서 Opened 상태로 전환되도록 합니다.Causes a communication object to transition from the created state into the opened state within a specified interval of time.

ICommunicationObject.Opened ICommunicationObject.Opened ICommunicationObject.Opened ICommunicationObject.Opened

통신 개체가 Opening 상태에서 Opened 상태로 전환을 완료할 때 발생합니다.Occurs when the communication object completes its transition from the opening state into the opened state.

ICommunicationObject.Opening ICommunicationObject.Opening ICommunicationObject.Opening ICommunicationObject.Opening

통신 개체가 처음 Opening 상태가 될 때 발생합니다.Occurs when the communication object first enters the opening state.

ICommunicationObject.State ICommunicationObject.State ICommunicationObject.State ICommunicationObject.State

통신 지향 개체의 현재 상태를 가져옵니다.Gets the current state of the communication-oriented object.

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

적용 대상