-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Services_ServiceContainer_Publish
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
Publish service.
Namespace: CodeJam.Services
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0
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
- serviceType
- Type: System.Type
Type of service object to publish. - instanceFactory
- Type: System.Func(IServicePublisher, Object)
Factory to create service instance
Type: IDisposable
Disposable cookie to conceal published service
IServicePublisher.Publish(Type, Func(IServicePublisher, Object))
ServiceContainer Class
Publish Overload
CodeJam.Services Namespace