ServiceManager.Publish ServiceManager.Publish ServiceManager.Publish ServiceManager.Publish Method

정의

지정한 서비스 형식을 게시하지만 인스턴스를 선언하지는 않습니다.Publishes the given service type, but does not declare an instance. 서비스가 요청된 경우 인스턴스를 만들기 위해 게시 서비스 콜백이 호출됩니다.When the service is requested, the Publish service callback will be invoked to create the instance. 콜백은 한 번만 호출됩니다.The callback is invoked only once. 그 후에는 캐시된 인스턴스가 반환됩니다.After that, the instance it returned is cached.

오버로드

Publish(Type, Object) Publish(Type, Object) Publish(Type, Object) Publish(Type, Object)

지정한 서비스를 게시합니다.Publishes the given service. 게시된 후에는 편집 컨텍스트가 삭제될 때까지 서비스 인스턴스가 서비스 관리자에 유지됩니다.After it is published, the service instance remains in the service manager until the editing context is disposed of.

Publish(Type, PublishServiceCallback) Publish(Type, PublishServiceCallback) Publish(Type, PublishServiceCallback) Publish(Type, PublishServiceCallback)

지정한 서비스 형식을 게시하지만 인스턴스를 선언하지는 않습니다.Publishes the specified service type, but does not declare an instance. 서비스가 요청된 경우 인스턴스를 만들기 위해 게시 서비스 콜백이 호출됩니다.When the service is requested, the Publish service callback will be invoked to create the instance. 콜백은 한 번만 호출됩니다.The callback is invoked only once. 그 후에는 캐시된 인스턴스가 반환됩니다.After that, the instance it returned is cached.

Publish<TServiceType>(PublishServiceCallback<TServiceType>) Publish<TServiceType>(PublishServiceCallback<TServiceType>) Publish<TServiceType>(PublishServiceCallback<TServiceType>) Publish<TServiceType>(PublishServiceCallback<TServiceType>)

지정한 서비스 형식을 게시하지만 인스턴스를 선언하지는 않습니다.Publishes the given service type, but does not declare an instance yet. 서비스가 요청될 경우 인스턴스를 만들기 위해 PublishServiceCallback이 호출됩니다.When the service is requested, the PublishServiceCallback will be invoked to create the instance. 콜백은 한 번만 호출됩니다.The callback is invoked only once. 그 후에는 캐시된 인스턴스가 반환됩니다.After that, the instance it returned is cached.

Publish<TServiceType>(TServiceType) Publish<TServiceType>(TServiceType) Publish<TServiceType>(TServiceType) Publish<TServiceType>(TServiceType)

지정한 서비스를 게시합니다.Publishes the given service. 게시된 후에는 편집 컨텍스트가 삭제될 때까지 서비스 인스턴스가 서비스 관리자에 유지됩니다.After it is published, the service instance remains in the service manager until the editing context is disposed of.

Publish(Type, Object) Publish(Type, Object) Publish(Type, Object) Publish(Type, Object)

지정한 서비스를 게시합니다.Publishes the given service. 게시된 후에는 편집 컨텍스트가 삭제될 때까지 서비스 인스턴스가 서비스 관리자에 유지됩니다.After it is published, the service instance remains in the service manager until the editing context is disposed of.

public:
 abstract void Publish(Type ^ serviceType, System::Object ^ serviceInstance);
public abstract void Publish (Type serviceType, object serviceInstance);
abstract member Publish : Type * obj -> unit
Public MustOverride Sub Publish (serviceType As Type, serviceInstance As Object)

매개 변수

serviceType
Type Type Type Type

게시할 서비스의 형식입니다.The type of service to publish.

serviceInstance
Object Object Object Object

서비스 인스턴스입니다.An instance of the service.

예외

serviceType 또는 serviceInstancenull인 경우serviceType or serviceInstance is null.

serviceInstanceserviceType에서 파생되지 않거나 구현하지 않는 경우 또는 serviceType이 이미 게시된 경우serviceInstance does not derive from or implement serviceType, or serviceType has already been published.

Publish(Type, PublishServiceCallback) Publish(Type, PublishServiceCallback) Publish(Type, PublishServiceCallback) Publish(Type, PublishServiceCallback)

지정한 서비스 형식을 게시하지만 인스턴스를 선언하지는 않습니다.Publishes the specified service type, but does not declare an instance. 서비스가 요청된 경우 인스턴스를 만들기 위해 게시 서비스 콜백이 호출됩니다.When the service is requested, the Publish service callback will be invoked to create the instance. 콜백은 한 번만 호출됩니다.The callback is invoked only once. 그 후에는 캐시된 인스턴스가 반환됩니다.After that, the instance it returned is cached.

public:
 abstract void Publish(Type ^ serviceType, System::Activities::Presentation::PublishServiceCallback ^ callback);
public abstract void Publish (Type serviceType, System.Activities.Presentation.PublishServiceCallback callback);
abstract member Publish : Type * System.Activities.Presentation.PublishServiceCallback -> unit
Public MustOverride Sub Publish (serviceType As Type, callback As PublishServiceCallback)

매개 변수

serviceType
Type Type Type Type

게시할 서비스의 형식입니다.The type of service to publish.

callback
PublishServiceCallback PublishServiceCallback PublishServiceCallback PublishServiceCallback

서비스 인스턴스가 필요한 경우 호출될 콜백입니다.A callback that will be invoked when an instance of the service is needed.

예외

serviceType 또는 callbacknull인 경우serviceType or callback is null.

serviceType이 이미 게시된 경우serviceType has already been published.

Publish<TServiceType>(PublishServiceCallback<TServiceType>) Publish<TServiceType>(PublishServiceCallback<TServiceType>) Publish<TServiceType>(PublishServiceCallback<TServiceType>) Publish<TServiceType>(PublishServiceCallback<TServiceType>)

지정한 서비스 형식을 게시하지만 인스턴스를 선언하지는 않습니다.Publishes the given service type, but does not declare an instance yet. 서비스가 요청될 경우 인스턴스를 만들기 위해 PublishServiceCallback이 호출됩니다.When the service is requested, the PublishServiceCallback will be invoked to create the instance. 콜백은 한 번만 호출됩니다.The callback is invoked only once. 그 후에는 캐시된 인스턴스가 반환됩니다.After that, the instance it returned is cached.

public:
generic <typename TServiceType>
 void Publish(System::Activities::Presentation::PublishServiceCallback<TServiceType> ^ callback);
public void Publish<TServiceType> (System.Activities.Presentation.PublishServiceCallback<TServiceType> callback);
member this.Publish : System.Activities.Presentation.PublishServiceCallback<'ServiceType> -> unit
Public Sub Publish(Of TServiceType) (callback As PublishServiceCallback(Of TServiceType))

형식 매개 변수

TServiceType

게시할 서비스의 형식입니다.The type of the service to publish.

매개 변수

callback
PublishServiceCallback<TServiceType> PublishServiceCallback<TServiceType> PublishServiceCallback<TServiceType> PublishServiceCallback<TServiceType>

서비스 인스턴스가 필요한 경우 호출될 콜백입니다.A callback that will be invoked when an instance of the service is needed.

예외

callbacknull인 경우callback is null.

Publish<TServiceType>(TServiceType) Publish<TServiceType>(TServiceType) Publish<TServiceType>(TServiceType) Publish<TServiceType>(TServiceType)

지정한 서비스를 게시합니다.Publishes the given service. 게시된 후에는 편집 컨텍스트가 삭제될 때까지 서비스 인스턴스가 서비스 관리자에 유지됩니다.After it is published, the service instance remains in the service manager until the editing context is disposed of.

public:
generic <typename TServiceType>
 void Publish(TServiceType serviceInstance);
public void Publish<TServiceType> (TServiceType serviceInstance);
member this.Publish : 'ServiceType -> unit
Public Sub Publish(Of TServiceType) (serviceInstance As TServiceType)

형식 매개 변수

TServiceType

게시할 서비스의 형식입니다.The type of the service to publish.

매개 변수

serviceInstance
TServiceType TServiceType TServiceType TServiceType

서비스 인스턴스입니다.An instance of the service.

예외

serviceInstancenull인 경우serviceInstance is null.

적용 대상