Example #1
0
        public static string subscribe(string sName, _Delegate _delegate)
        {
            if (!_globalSubscription.ContainsKey(sName))
            {
                _globalSubscription[sName] = new Dictionary <string, _Delegate>();
            }

            var id = Guid.NewGuid().ToString();

            _globalSubscription[sName][id] = _delegate;
            return(id);
        }
Example #2
0
 /// <summary>
 /// Create a new proxy for a method identified by a <see cref="MethodInfo"/> object.
 /// </summary>
 /// <param name="_methodInfo">
 /// The <see cref="FieldInfo"/> object used to construct this proxy
 /// </param>
 public MethodProxy(MethodInfo _methodInfo)
 {
     MethodInfo = _methodInfo;
     m_invoker  = CreateInvoker(_methodInfo);
 }
Example #3
0
 public _Function(_Delegate _del)
 {
     _delegate = _del;
 }