.NET Client Documentation
5.5.0
Search Results for

    Show / Hide Table of Contents

    SingletonServiceFactory<TService> Class

    Namespace: Hazelcast.Core
    Assembly: Hazelcast.Net.dll

    Represents a singleton service factory.

    public class SingletonServiceFactory<TService> : IDisposable where TService : class
    Inheritance
    object
    SingletonServiceFactory<TService>
    SingletonLoggerFactoryServiceFactory
    FactoryOptions<T>
    GlobalSerializerOptions
    SerializerOptions
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    Name Description
    SingletonServiceFactory()

    Initializes a new instance of the SingletonServiceFactory<TService> class.

    SingletonServiceFactory(SingletonServiceFactory<TService>, bool)

    Initializes a new instance of the SingletonServiceFactory<TService> class.

    Properties

    Name Description
    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

    Name Description
    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Dispose(bool)

    Frees, releases or resets managed resources.

    In this article
    Back to top Copyright © 2010-2024 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.