Dev2.DynamicServices.DsfDataObject.IsDebugMode C# (CSharp) Method

IsDebugMode() public method

public IsDebugMode ( ) : bool
return bool
        public bool IsDebugMode()
        {
            return (IsDebug || WorkflowLoggger.ShouldLog(ResourceID) || RemoteInvoke ) && !RunWorkflowAsync;
        }

Usage Example

示例#1
0
 public void DataObject_IsDebugMode_RemoteInvokeIsTrueAndRunWorkflowAsyncIsFalse_IsDebugModeIsTrue()
 {
     //------------Setup for test--------------------------
     IDSFDataObject dataObject = new DsfDataObject(string.Empty, Guid.NewGuid(), "<x>1</x>");
     dataObject.RunWorkflowAsync = false;
     dataObject.RemoteInvoke = true;
     //------------Execute Test---------------------------
     var isDebug = dataObject.IsDebugMode();
     //------------Assert Results-------------------------
     Assert.IsTrue(isDebug);
 }
All Usage Examples Of Dev2.DynamicServices.DsfDataObject::IsDebugMode