Skip to content

M_CodeJam_Services_ServiceContainer_Publish

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

ServiceContainer.Publish Method (Type, Func(IServicePublisher, 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,
	Func<IServicePublisher, Object> instanceFactory
)

VB

Public Function Publish ( 
	serviceType As Type,
	instanceFactory As Func(Of IServicePublisher, Object)
) As IDisposable

F#

abstract Publish : 
        serviceType : Type * 
        instanceFactory : Func<IServicePublisher, Object> -> IDisposable 
override Publish : 
        serviceType : Type * 
        instanceFactory : Func<IServicePublisher, Object> -> IDisposable 

Parameters

 

serviceType
Type: System.Type
Type of service object to publish.
instanceFactory
Type: System.Func(IServicePublisher, Object)
Factory to create service instance

Return Value

Type: IDisposable
Disposable cookie to conceal published service

Implements

IServicePublisher.Publish(Type, Func(IServicePublisher, Object))

See Also

Reference

ServiceContainer Class
Publish Overload
CodeJam.Services Namespace

Clone this wiki locally