예제 #1
0
 /// <summary>
 /// Start the cache functionality.
 /// </summary>
 protected override void Start(CacheRenderer renderer, bool twoPhaseInitialization)
 {
     base.Start(renderer, twoPhaseInitialization);
 }
예제 #2
0
 /// <summary>
 /// Start the cache functionality.
 /// </summary>
 public void StartInstance(CacheRenderer renderer, bool twoPhaseInitialization)
 {
     Start(renderer, twoPhaseInitialization);
 }
예제 #3
0
파일: Cache.cs 프로젝트: javithalion/NCache
 /// <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;
     }
 }
예제 #4
0
파일: Cache.cs 프로젝트: javithalion/NCache
 /// <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);
 }
예제 #5
0
파일: Cache.cs 프로젝트: javithalion/NCache
 /// <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;
 }
예제 #6
0
		/// <summary>
		/// Start the cache functionality.
		/// </summary>
		public void StartInstance(CacheRenderer renderer, bool twoPhaseInitialization)
		{
            Start(renderer, twoPhaseInitialization);
		}
예제 #7
0
		/// <summary>
		/// Start the cache functionality.
		/// </summary>
        protected override void Start(CacheRenderer renderer, bool twoPhaseInitialization)
		{
            base.Start(renderer, twoPhaseInitialization);
		}