public void AttachTo(AllJoynUnity.AllJoyn.BusAttachment bus) { foreach (Facet facet in _description.Facets) { AllJoynUnity.AllJoyn.InterfaceDescription interfaceDescription = bus.GetInterface(facet.Name); if (interfaceDescription != null) { AddInterface(interfaceDescription); foreach (Object.MethodHandler methodHandler in facet.MethodHandlers) { AllJoynUnity.AllJoyn.InterfaceDescription.Member interfaceMember = interfaceDescription.GetMember(methodHandler.Name); if (interfaceMember != null) { AddMethodHandler(interfaceMember, (member, message) => methodHandler.Action(member, message)); } } } } }
protected override bool AcceptSessionJoiner(ushort sessionPort, string joiner, AllJoynUnity.AllJoyn.SessionOpts opts) { return true; }