Show / Hide Table of Contents

    Class ServiceBase

    Inheritance
    Object
    ServiceBase
    ActionService
    AddressableAssetService
    BindingService
    PlayerAuthService
    PlayerPrefsDataStoreService
    Implements
    IService
    IInjectable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class ServiceBase : IService, IInjectable

    Fields

    _isInitialized

    Declaration
    protected bool _isInitialized
    Field Value
    Type Description
    Boolean

    _unityEventListener

    Declaration
    protected IUnityEventListener _unityEventListener
    Field Value
    Type Description
    IUnityEventListener

    Properties

    IsInitialized

    Declaration
    public virtual bool IsInitialized { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Cleanup()

    Declaration
    public virtual void Cleanup()

    CleanupService()

    Declaration
    protected abstract void CleanupService()

    Initialize()

    In the default implementation, we initialize the service first before setting the _isInitialized. The order is important here.

    Declaration
    public virtual void Initialize()

    InitializeService()

    Declaration
    protected abstract void InitializeService()

    Inject(IResolver)

    Declaration
    public virtual void Inject(IResolver resolver)
    Parameters
    Type Name Description
    IResolver resolver

    Events

    OnInitialized

    Declaration
    public event Action<IService> OnInitialized
    Event Type
    Type Description
    Action<IService>

    Implements

    IService
    IInjectable
    Back to top Copyright © 2020 East Side Games Inc.