public void ShouldAdvertiseProperty() { var called = false; var builder = new ObjectBuilder(); builder.AdvertiseProperty("testProperty", Signature.TypeString); using (var session = new Session()) { session.Connect(new Uri("tcp://127.0.0.1:9559")); var service = session.RegisterService("propertyService", builder.BuildObject()); var service2 = session.GetService("propertyService"); var future = service2.SetProperty("testProperty", new StringValue("toto")); future.ThrowIfError(); var future1 = service2.GetProperty("testProperty"); future.ThrowIfError(); var res = future1.Value; session.Close(); } }