public object Clone() { var handler = Handler is ICloneable cloneable?cloneable.Clone() as IExternalEventHandler : Handler; RevitTask.Log($"{handler?.GetName()} cloned from {Handler.GetName()}"); return(new FutureExternalEvent(handler)); }
protected override ExternalEvent Handle(UIApplication app, IExternalEventHandler parameter) { RevitTask.Log($"creating ExternalEvent for {parameter.GetName()}"); return(ExternalEvent.Create(parameter)); }
private void LogRequest(ExternalEventRequest request) { RevitTask.Log($"{Handler.GetName()} {Enum.GetName(typeof(ExternalEventRequest), request)}"); }