Exemplo n.º 1
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
     });
 }
Exemplo n.º 2
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
         });
     }
 }