SingletonServiceFactory<TService> Class
Namespace: Hazelcast.Core
Assembly: Hazelcast.Net.dll
Represents a singleton service factory.
public class SingletonServiceFactory<TService> : IDisposable where TService : class
  Inheritance
Implements
Inherited Members
Type Parameters
| TService | The type of the service.  | 
      
Remarks
The SingletonServiceFactory<TService> class supports defining how a service should be created, via its Creator property, and then provides a unique instance of that service via its Service property.
In a configuration file, it supports a typeName property which is the
name of the type, and a args property which is a dictionary of arguments for
the type constructor. For instance:
"service":
{
  "typeName": "My.Service,My.dll",
  "args":
  {
    "foo": 33
  }
}
Constructors
| SingletonServiceFactory() | Initializes a new instance of the SingletonServiceFactory<TService> class.  | 
      
| SingletonServiceFactory(SingletonServiceFactory<TService>, Boolean) | Initializes a new instance of the SingletonServiceFactory<TService> class.  | 
      
Properties
| Creator | Gets or sets the service creator.  | 
      
| IsConfigured | Determines whether this service factory has been configured and can create a service.  | 
      
| OwnsService | Whether the factory owns the service.  | 
      
| Service | Gets the singleton instance of the service.  | 
      
| ServiceProvider | Gets or sets the service provider.  | 
      
Methods
| Dispose() | |
| Dispose(Boolean) | Frees, releases or resets managed resources.  |