Yaaf.Xmpp.Runtime


Service

Defined in Yaaf.Xmpp.Runtime.Core.dll.
Provides some simple (extension-) methods for the IService interface.

Static members

Static memberDescription
AsTuple(service)
Signature: service:IService -> Type * obj
Creates a tuple from the given IService instance
AsTuple(service)
Signature: service:IPluginServiceProvider -> IEnumerable<Type * obj>
Creates a sequence of tuples from the given IPluginServiceProvider instance.
FromInstance(instance)
Signature: instance:'T -> IEnumerable<IService>
Type parameters: 'TService, 'T
Creates a sequence of IService containing exactly one element for the given instance (see Get method).
Get(instance)
Signature: instance:'T -> IService
Type parameters: 'TService, 'T
Creates a new IService isntance from the given instance prodiving the given service.
None
Signature: IEnumerable<IService>
Returns an empty Sequence of IService instances (Helper for plugins which provide no services).
Fork me on GitHub