Example #1
0
 public void AddIdentity(string key, string ident)
 {
     if (_handles.Keys.Contains(key))
     {
         AllJoynRemoteObject obj = null;
         obj          = _handles[key];
         obj.Identity = ident;
     }
 }
Example #2
0
        public bool NewParticipant(string UID)
        {
            if (_handles.Keys.Contains(UID))
            {
                return(false);
            }
            AllJoynRemoteObject p = new AllJoynRemoteObject(UID);

            _handles.Add(UID, p);
            return(true);
        }
Example #3
0
        public void FreeProxy(string UID, int proxyIndex)
        {
            if (!_handles.Keys.Contains(UID))
            {
                return;
            }
            AllJoynRemoteObject proxy = _handles[UID];

            _ajBus.ReleaseProxyIndex(UID, proxy.ProxyIndex);
            proxy.ProxyIndex = -1;
        }
Example #4
0
        public int CreateProxy(string UID)
        {
            string name = UID;

            if (!_handles.Keys.Contains(UID))
            {
                return(-1);
            }
            AllJoynRemoteObject proxy = _handles[UID];

            proxy.ProxyIndex = _ajBus.CreateProxyIndex(name);
            return(proxy.ProxyIndex);
        }
Example #5
0
 public bool NewParticipant(string UID, string identity)
 {
     if (_handles.Keys.Contains(UID))
     return false;
     AllJoynRemoteObject p = new AllJoynRemoteObject(UID, identity);
     _handles.Add(UID, p);
     AddIdentity(UID, identity);
     return true;
 }