Skip to content

M_CodeJam_Services_ServiceContainer_Publish_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

ServiceContainer.Publish Method (Type, Object)

Publish service.

Namespace: CodeJam.Services
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0

Syntax

C#

public IDisposable Publish(
	Type serviceType,
	Object serviceInstance
)

VB

Public Function Publish ( 
	serviceType As Type,
	serviceInstance As Object
) As IDisposable

F#

abstract Publish : 
        serviceType : Type * 
        serviceInstance : Object -> IDisposable 
override Publish : 
        serviceType : Type * 
        serviceInstance : Object -> IDisposable 

Parameters

 

serviceType
Type: System.Type
Type of service object to publish.
serviceInstance
Type: System.Object
Instance of service of type serviceType.

Return Value

Type: IDisposable
Disposable cookie to conceal published service

Implements

IServicePublisher.Publish(Type, Object)

See Also

Reference

ServiceContainer Class
Publish Overload
CodeJam.Services Namespace

Clone this wiki locally