Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new command event of the given name. Start of the
        /// command is tracked. When the event is disposed, it's completion is tracked.
        /// </summary>
        /// <param name="name">Command name</param>
        /// <param name="description">Event description</param>
        /// <param name="value">A metric value associated with the event</param>
        /// <returns>Event as IDisposable</returns>
        public static IDisposable TrackCommandEvent(string name, string description = "", int?value = null)
        {
            if (client == null)
            {
                return(DynamoAnalyticsClient.Disposable);
            }

            return(client.CreateCommandEvent(name, description, value));
        }