public void AddGlobalAttribute()

in src/Event/CustomEvent.cs [417:457]


        public void AddGlobalAttribute(string eventType, string attributeName, string attributeValue)
        {
            if(string.IsNullOrEmpty(eventType))
            {
                throw new ArgumentNullException("eventType");
            }
            
            if(string.IsNullOrEmpty(attributeName))
            {
                throw new ArgumentNullException("attributeName");
            }
            
            if( null == attributeValue)
            {
                throw new ArgumentNullException("attributeValue");
            }
            
            if(attributeName.Length > MAX_KEY_SIZE)
            {
                throw new ArgumentException("Length of attributeName " + attributeName+" is more than " + MAX_KEY_SIZE);
            }
            
            if(attributeValue.Length > MAX_ATTRIB_VALUE_SIZE)
            {
                throw new ArgumentException("Length of attributeValue is more than " + MAX_ATTRIB_VALUE_SIZE);
            }
            
            lock(_globalLock)
            {
                if(!_eventTypeGlobalAttributes.ContainsKey(eventType))
                {
                    _eventTypeGlobalAttributes.Add(eventType,new Dictionary<string, string>());
                    _eventTypeGlobalAttributes[eventType].Add(attributeName, attributeValue);
                }
                else if(_eventTypeGlobalAttributes.ContainsKey(eventType) && !_eventTypeGlobalAttributes[eventType].ContainsKey(attributeName))
                {
                    _eventTypeGlobalAttributes[eventType].Add(attributeName, attributeValue);
                }
                
            }
        }