public ServiceInfo2(ServiceInfo2Wrapped s) { this.Name = s.Name; this.NodeID = new NodeID(s.NodeID.ToString()); this.NodeName = s.NodeName; this.RootObjectType = s.RootObjectType; List <string> impl = new List <string>(); foreach (string impl2 in s.RootObjectImplements) { impl.Add(impl2); } this.RootObjectImplements = impl.ToArray(); this.Attributes = (Dictionary <string, object>)RobotRaconteurNode.s.UnpackVarType(s.Attributes); if (s.Attributes != null) { s.Attributes.Dispose(); } List <string> con = new List <string>(); foreach (string con2 in s.ConnectionURL) { con.Add(con2); } this.ConnectionURL = con.ToArray(); }
public override void ServiceLost(WrappedServiceInfo2Subscription subscription, WrappedServiceSubscriptionClientID id, ServiceInfo2Wrapped info) { var s = (ServiceInfo2Subscription)subscription1.Target; if (s == null) { return; } var info1 = new ServiceInfo2(info); var id1 = new ServiceSubscriptionClientID(id); if (s.ServiceLost == null) { return; } try { s.ServiceLost(s, id1, info1); } catch {} }
public override bool Predicate(ServiceInfo2Wrapped info) { var info2 = new ServiceInfo2(info); return(_f(info2)); }