RSG.Metrics.Inc C# (CSharp) Method

Inc() public method

Sends an increment metric to the emitter.
public Inc ( string name ) : void
name string
return void
        public void Inc(string name)
        {
            if (name == null)
            {
                throw new ArgumentNullException();
            }
            if (name == String.Empty)
            {
                throw new ArgumentException();
            }

            // Set up the metric object
            var metric = new Metric()
            {
                Name = name,
                Type = incTypeName,
                TimeStamp = DateTimeOffset.Now
            };

            QueueMetric(metric);
        }