protected override ServiceResult ReadNonValueAttribute(
ISystemContext context,
uint attributeId,
ref object value)
{
ServiceResult result = null;
switch (attributeId)
{
case Attributes.Executable:
{
bool executable = m_executable;
if (OnReadExecutable != null)
{
result = OnReadExecutable(context, this, ref executable);
}
if (ServiceResult.IsGood(result))
{
value = executable;
}
return result;
}
case Attributes.UserExecutable:
{
bool userExecutable = m_userExecutable;
if (OnReadUserExecutable != null)
{
result = OnReadUserExecutable(context, this, ref userExecutable);
}
if (ServiceResult.IsGood(result))
{
value = userExecutable;
}
return result;
}
}
return base.ReadNonValueAttribute(context, attributeId, ref value);
}
#endregion