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 });
}