-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Services_ServiceProviderHelper_Publish__1
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 static IDisposable Publish<T>(
this IServicePublisher publisher,
Func<IServicePublisher, T> instanceFactory
)
where T : class
VB
<ExtensionAttribute>
Public Shared Function Publish(Of T As Class) (
publisher As IServicePublisher,
instanceFactory As Func(Of IServicePublisher, T)
) As IDisposable
F#
[<ExtensionAttribute>]
static member Publish :
publisher : IServicePublisher *
instanceFactory : Func<IServicePublisher, 'T> -> IDisposable when 'T : not struct
- publisher
- Type: CodeJam.Services.IServicePublisher
Service publisher. - instanceFactory
- Type: System.Func(IServicePublisher, T)
Factory to create service instance
- T
- Type of service object to publish.
Type: IDisposable
Disposable cookie to conceal published service
In Visual Basic and C#, you can call this method as an instance method on any object of type IServicePublisher. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
ServiceProviderHelper Class
Publish Overload
CodeJam.Services Namespace