public override StringBuilder Execute(Dictionary <string, StringBuilder> values, IWorkspace theWorkspace) { var msg = new ExecuteMessage { HasError = false }; msg.SetMessage("Pong @ " + Now.Invoke().ToString("yyyy-MM-dd hh:mm:ss.fff")); var serializer = new Dev2JsonSerializer(); return(serializer.SerializeToBuilder(msg)); }
public virtual DateTime Now() { return(now?.Invoke() ?? DateTime.Now); }