Beispiel #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);
        }
Beispiel #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);
        }