Hazelcast .NET
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>
    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

    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.

    In This Article
    Back to top Copyright © 2010-2021 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.