Aqueduct.Monitoring.Sensors.SensorBase.SetThreadScopedFeatureName C# (CSharp) Method

SetThreadScopedFeatureName() public static method

Sets feature name for all sensors in the current thread.
public static SetThreadScopedFeatureName ( string featureName, string groupName = null ) : void
featureName string Feature name to be used for all sensors in the current thread.
groupName string
return void
        public static void SetThreadScopedFeatureName(string featureName, string groupName = null)
		{
			var localDataStoreSlot = Thread.GetNamedDataSlot(FeatureNameSlotName);
            Thread.SetData(localDataStoreSlot, new FeatureDescriptor { Name = featureName, Group = groupName });
		}