.NET Client Documentation
5.5.0
Search Results for

    Show / Hide Table of Contents

    ServiceFactory Class

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

    Provides methods to create instances of services.

    public static class ServiceFactory
    Inheritance
    object
    ServiceFactory
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Remarks

    The provided methods rely on the Activator.CreateInstance method to create the new instances and are not optimized for performance. It is fine to use them for e.g. creating singletons when the application starts, but they should not be used for intensive creation of objects.

    Methods

    Name Description
    CreateInstance(string, IDictionary<string, string>, params object[])

    Creates a new instance of type typeName.

    CreateInstance(Type, IDictionary<string, string>, params object[])

    Creates a new instance of type type.

    CreateInstance<TService>(IDictionary<string, string>, params object[])

    Creates a new instance of type TService.

    CreateInstance<TService>(string, IDictionary<string, string>, params object[])

    Creates a new instance of type typeName as TService.

    CreateInstance<TService>(Type, IDictionary<string, string>, params object[])

    Creates a new instance of type type as TService.

    CreateInstance<TService, TActual>(IDictionary<string, string>, params object[])

    Creates a new instance of type TActual as TService.

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