Beispiel #1
0
        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));
        }
Beispiel #2
0
 public virtual DateTime Now()
 {
     return(now?.Invoke() ?? DateTime.Now);
 }