Ejemplo n.º 1
0
        /// <summary>
        /// Handles the specified arguments.
        /// </summary>
        /// <param name="args">The arguments.</param>
        public void Handle(ChunkCopyingEvent args)
        {
            if (args == null)
            {
                throw new ArgumentNullException("args");
            }

            Console.WriteLine(Resources.StartingCopyMessageFormat, args.TargetName);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles the specified arguments.
        /// </summary>
        /// <param name="args">The arguments.</param>
        public void Handle(ChunkCopyingEvent args)
        {
            if (args == null)
            {
                throw new ArgumentNullException("args");
            }

            var properties = new Dictionary <string, string>
            {
                { "OperationId", args.OperationId.ToString() },
                { "Target", args.TargetName },
            };

            var metrics = new Dictionary <string, double>
            {
                { "Rows", args.RowCount },
                { "Chunks", args.ResultCount }
            };

            this.telemetry.TrackEvent("Chunk Started", properties, metrics);
        }