Posted 12 years ago
by Jonathan Reis
Version: 12.2.0570
Platform: .NET 4.5
Environment: Windows 8 (64-bit)

Hello Bill,
I have the following defined:
public class ClinicalDevice : BaseDevice<FilingOptions>
{
public const string BeforeCommitEvent = "topic://ClinicalDevice/BeforeCommit";
}
and an Attribute
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class EventSubscriptionAttribute : Attribute
{
public EventSubscriptionAttribute(string topic)
{
Topic = topic;
}
public string Topic { get; private set; }
}
When I attempt to add the attribute to a function in another class
public class AnotherClass
{
[EventSubscription(ClinicalDevice.BeforeCommitEvent)]
public void OnBeforeCommit(object sender, EventArgs args)
{
}
}
There is no intellisense for:
ClinicalDevice within the attribute specification. Since BeforeCommitEvent is a public const. It is available in this context, but does not show up.