protected void DispatchVLogEvent(Object obj, VLogType type, string message)
 {
     if (OnLogEvent != null)
     {
         OnLogEvent(new VLog()
         {
             vLogType      = type,
             validatorName = TypeName,
             message       = message,
             objectPath    = ObjectUtility.GetObjectPath(obj)
         });
     }
 }
Ejemplo n.º 2
0
 protected VLog CreateVLog(Object obj,
                           VLogType type,
                           string message,
                           string scenePath  = "",
                           VLogSource source = VLogSource.Scene)
 {
     return(new VLog()
     {
         vLogType = type,
         source = source,
         validatorName = TypeName,
         message = message,
         objectPath = ObjectUtility.GetObjectPath(obj),
         scenePath = scenePath
     });
 }
Ejemplo n.º 3
0
 protected void DispatchVLogEvent(Object obj,
                                  VLogType type,
                                  string message,
                                  string scenePath  = "",
                                  string objectPath = "")
 {
     if (OnLogEvent != null)
     {
         OnLogEvent(new VLog()
         {
             vLogType      = type,
             source        = VLogSource.Project,
             validatorName = TypeName,
             message       = message,
             objectPath    = string.IsNullOrEmpty(objectPath) ? ObjectUtility.GetObjectPath(obj) : objectPath,
             scenePath     = scenePath
         });
     }
 }
Ejemplo n.º 4
0
 protected void DispatchVLogEvent(Object obj,
                                  VLogType type,
                                  string message,
                                  string scenePath  = "",
                                  VLogSource source = VLogSource.Scene)
 {
     if (OnLogEvent != null)
     {
         OnLogEvent(new VLog()
         {
             vLogType      = type,
             source        = source,
             validatorName = TypeName,
             message       = message,
             objectPath    = ObjectUtility.GetObjectPath(obj),
             scenePath     = scenePath
         });
     }
 }