Example #1
0
        public void WhenClear_ShouldRemoveObjects()
        {
            ObjectStore.Add("item", "test");
            ObjectStore.Add("item2", "test2");

            ObjectStore.Clear();

            Assert.Throws <NNXException>(() => ObjectStore.Get <string>("item"));
            Assert.Throws <NNXException>(() => ObjectStore.Get <string>("item2"));
        }
Example #2
0
 /// <summary>
 /// Stop the server
 /// </summary>
 public void Stop()
 {
     RPCServer.Stop();
     StreamServer.Stop();
     ObjectStore.Clear();
 }
Example #3
0
 public virtual void Dispose()
 {
     ObjectStore.Clear();
 }
Example #4
0
 /// <summary>
 /// Stop the server
 /// </summary>
 public void Stop()
 {
     rpcServer.Stop();
     streamServer.Stop();
     ObjectStore.Clear();
 }
Example #5
0
 public void Dispose()
 {
     ObjectStore.Clear();
     ExcelFunctions.SupportedObjects = ExcelFunctions.DefaultSupportedObjects;
 }