-
Notifications
You must be signed in to change notification settings - Fork 36
M_CodeJam_Services_ServiceProviderHelper_Publish__1_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,
T serviceInstance
)
where T : class
VB
<ExtensionAttribute>
Public Shared Function Publish(Of T As Class) (
publisher As IServicePublisher,
serviceInstance As T
) As IDisposable
F#
[<ExtensionAttribute>]
static member Publish :
publisher : IServicePublisher *
serviceInstance : 'T -> IDisposable when 'T : not struct
- publisher
- Type: CodeJam.Services.IServicePublisher
Service publisher. - serviceInstance
- Type: T
Instance of service of type T
- 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