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")); }
/// <summary> /// Stop the server /// </summary> public void Stop() { RPCServer.Stop(); StreamServer.Stop(); ObjectStore.Clear(); }
public virtual void Dispose() { ObjectStore.Clear(); }
/// <summary> /// Stop the server /// </summary> public void Stop() { rpcServer.Stop(); streamServer.Stop(); ObjectStore.Clear(); }
public void Dispose() { ObjectStore.Clear(); ExcelFunctions.SupportedObjects = ExcelFunctions.DefaultSupportedObjects; }