/// <summary> /// Start the cache functionality. /// </summary> protected override void Start(CacheRenderer renderer, bool twoPhaseInitialization) { base.Start(renderer, twoPhaseInitialization); }
/// <summary> /// Start the cache functionality. /// </summary> public void StartInstance(CacheRenderer renderer, bool twoPhaseInitialization) { Start(renderer, twoPhaseInitialization); }
/// <summary> /// Start the cache functionality. /// </summary> protected internal virtual void Start(CacheRenderer renderer, bool isStartingAsMirror, bool twoPhaseInitialization) { try { if (IsRunning) { Stop(); } ConfigReader propReader = new PropsConfigReader(ConfigString); _context.Render = renderer; if (renderer != null) { renderer.OnClientConnected += new CacheRenderer.ClientConnected(OnClientConnected); renderer.OnClientDisconnected += new CacheRenderer.ClientDisconnected(OnClientDisconnected); } Initialize(propReader.Properties, false, isStartingAsMirror, twoPhaseInitialization); } catch (Exception exception) { throw; } }
/// <summary> /// Starts the cache functionality. /// </summary> /// <param name="renderer">It provides the events like onCientConnected etc from the SocketServer. /// Also the portSocketServer is listenting for client connections.</param> protected internal virtual void Start(CacheRenderer renderer, bool twoPhaseInitialization) { Start(renderer, false, twoPhaseInitialization); }
/// <summary> /// Overlaoded constructor, used internally by Cache Manager. /// </summary> /// <param name="configString">property string used to create cache.</param> protected internal Cache(string configString, CacheRenderer renderer) { _context.CacheRoot = this; _cacheInfo = ConfigHelper.GetCacheInfo(configString); _context.Render = renderer; }