コード例 #1
0
    void PostConstruct()
    {
        // Set defaults
        _resetInProgress = false;

        // Register the Injector first for lifecycle management. It will be the last instance Reset().
        Register(_injector);

        // Subscribe to OnInstantiate event. Instantiations that occur after this
        // subscription will will be monitored for lifecycle management
        _instantiator.Subscribe(HandleInstantiateEvent);

        _clientInitializing     = true;
        _clientStartupTimestamp = 0L;
    }