Click or drag to resize

ServiceProvider Constructor (IEnumerableType, IEnumerableType, Type, Type, SocketFlags)

Creates a new service provider which expands one service with an additional expansion service.

Namespace:  Demo3D.Net
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
protected ServiceProvider(
	IEnumerable<Type> supportedServices,
	IEnumerable<Type> requiredServices,
	Type expands,
	Type expansion,
	SocketFlags flags = SocketFlags.Default
)

Parameters

supportedServices
Type: System.Collections.GenericIEnumerableType
The list of services supported by this service provider. (Typically just one service.)
requiredServices
Type: System.Collections.GenericIEnumerableType
The list of services required by this service provider.
expands
Type: SystemType
The service being expanded.
expansion
Type: SystemType
The additional service that this service provider offers.
flags (Optional)
Type: Demo3D.NetSocketFlags
Flags to control connection sharing for connections that require this service.
Remarks
This constructor is for service providers whose primary role is to expand one service with additional services. For example, the NotifyMemoryServiceProvider looks for service providers that offer the IMemoryService but does not offer the INotifyMemoryService. NotifyMemoryServiceProvider then adds itself as a service provider offering both IMemoryService and INotifyMemoryService, replacing the original provider.
See Also