protected virtual void ValidateInvoker(ITisInvokeParams oInvokeParams, string sInvokeType) { if (oInvokeParams.InvokeType != sInvokeType) { throw new TisException("Invalid invoke type [{0}]", oInvokeParams.InvokeType); } }
public ITisEventBinding AddBinding(object oEventSource, string sEventName, ITisInvokeParams oInvokeParams) { ITisEventBinding eventBinding = EventBindingsMngr.AddBinding(oEventSource, sEventName, oInvokeParams); UpdateEventSource(oEventSource, eventBinding, true); return(eventBinding); }
public override object Invoke(ITisInvokeParams oInvokeParams, ITisEventParams oEventParams, ref object[] InOutParams) { ValidateInvoker(oInvokeParams, TisCustomizationConsts.TIS_INVOKE_TYPE_DOTNET); return(m_oInvoker.InvokeMethod( oInvokeParams.ModuleName, oInvokeParams.ClassName, oInvokeParams.MethodName, ref InOutParams)); }
public ITisEventBinding Add(string sEventName, ITisInvokeParams oInvokeParams) { ITisEventBinding oEventBindingInfo = GetByEventName(sEventName); if (oEventBindingInfo == null) { oEventBindingInfo = new EventBindingInfo(sEventName, oInvokeParams); m_oEventsBindingInfo.Add(sEventName, oEventBindingInfo); } return(oEventBindingInfo); }
public ITisEventBinding AddBinding(object oEventSource, string sEventName, ITisInvokeParams oInvokeParams) { string oPersistKey = ObtainEventSourceBindingKey(oEventSource); EventBindingInfoMngr oBindingInfoMngr = ObtainBindingInfoMngr(oPersistKey); if (oBindingInfoMngr == null) { oBindingInfoMngr = new EventBindingInfoMngr(); } ITisEventBinding oEventBinding = oBindingInfoMngr.Add(sEventName, oInvokeParams); m_oBindings.Add(oPersistKey, oBindingInfoMngr); return(oEventBinding); }
abstract public ITisEventsBrowser GetEventsBrowser(ITisInvokeParams oInvokeParams);
public override ITisEventsBrowser GetEventsBrowser(ITisInvokeParams oInvokeParams) { return(null); }
private ITisEventInvoker GetEventsInvoker(object oEventSource, string sEventName, out ITisInvokeParams oInvokeParams) { oInvokeParams = GetBinding(oEventSource, sEventName); if (oInvokeParams != null) { ITisInvokeType oInvokeType = InvokeTypesMngr.GetInvokeType(oInvokeParams.InvokeType); if (oInvokeType != null) { return(oInvokeType.GetEventsInvoker()); } } return(null); }
public virtual object Invoke(ITisInvokeParams oInvokeParams, ITisEventParams oEventParams, ref object[] InOutParams) { return(null); }
public EventBindingInfo(string sEventName, ITisInvokeParams oInvokeParams) { EventName = sEventName; InvokeParams = oInvokeParams; }