Exemplo n.º 1
0
        private RemoteEventSubscription RemoveSubscription(Type interfaceType, string eventName, Delegate d)
        {
            var key = new RemoteEventSubscription(this.instanceId, interfaceType, eventName, d);
            var idk = BitConverter.GetBytes(key.GetHashCode());

            subscriptions.Remove(key);
            return(key);
        }
Exemplo n.º 2
0
        private RemoteEventSubscription AddSubscription(Type interfaceType, string eventName, Delegate d)
        {
            var key = new RemoteEventSubscription(this.instanceId, interfaceType, eventName, d);
            var idk = BitConverter.GetBytes(key.GetHashCode());

            if (!subscriptions.ContainsKey(key))
            {
                subscriptions.Add(key, d);
            }
            return(key);
        }