private void RegisterServerBoundButton(IMethodCaller control) { if (!string.IsNullOrEmpty(control.MethodName)) { Buttons[control.MethodName] = control; } }
protected AjaxHandler(IMkJson json) { this._methodsLock = new object(); this._methodsCache = new Dictionary<string, MethodInfo>(31); this.InitMethods(); this._methodCaller = new MethodCaller(this, json); this._methodGenerator = new MethodsGenerator(this.GetType(), this.GetMethods()); }
public CheckingTilesState(IRoot root, ISignalSystem signalSystem, ISelectionSystem selectionSystem, IMethodCaller methodCaller) { this.root = root; this.signalSystem = signalSystem; this.selectionSystem = selectionSystem; this.methodCaller = methodCaller; }
private void PublishResponseMethodInvocation(XElement publishElement) { string childID = string.Empty; if (publishElement.Attribute(Common.IDAttrib) != null) { childID = publishElement.Attribute(Common.IDAttrib).Value; } if (FixedContext != null) { if (childID.StartsWith(FixedContext) && childID != FixedContext) { childID = childID.Remove(0, FixedContext.Length + 1); } } if (Buttons.ContainsKey(childID)) { IMethodCaller c = Buttons[childID]; if (publishElement.Attribute(Common.State) != null) { string state = publishElement.Attribute(Common.State).Value; if (state == Common.PublishFieldDisabled) { c.SetDisabled(true); } else if (state == Common.PublishFieldHidden) { c.SetVisible(false); } else { c.SetVisible(true); c.SetDisabled(false); } } } }
public void Setup() { this._methodCaller = new MethodCaller(null, new MkJson()); }
public void Call(IMethodCaller mc) { mc.CallMethod(); }
public void SetUp(int index, IMethodCaller mc) { mc.SetMethod(new MethodCall(), CallCount(index)); }
private void RegisterServerBoundButton(IMethodCaller control) { if (!string.IsNullOrEmpty(control.MethodName)) Buttons[control.MethodName] = control; }
public GetSocialJsonBridge(IMethodCaller methodCaller) { MethodCaller = methodCaller; }
public ElectricSensor(IMethodCaller caller) : base(caller) { }
internal static IMemberDefinition EmptyMethod(IMethodCaller caller, bool isVirtual = true) => new EmptyMethodMemberDefinition(caller, isVirtual);