public Result(bool _isError, string _Message, IDetailedLog _LogSystem, OrganizationResponse _Response) { Message = _Message; isError = _isError; Response = _Response; LogSystem = _LogSystem; if (Message != null && Message != string.Empty) { System.Diagnostics.EventLogEntryType logType = System.Diagnostics.EventLogEntryType.Information; if (isError) logType = System.Diagnostics.EventLogEntryType.Error; if (LogSystem != null) LogSystem.CreateLog(Message, logType); } }
/// <summary> /// Default constractor of Result Class for Object /// </summary> /// <param name="_isError">if method send an object as a result, it will be in this object file</param> /// <param name="_Message">if there is an error result of a method you can see the detail of error in this property</param> /// <param name="_BusinessObject">if method send an object as a result, it will be in this object file</param> /// <param name="_LogSystem">The _ log system.</param> public Result(bool _isError, string _Message, Object _BusinessObject, IDetailedLog _LogSystem) { Message = _Message; isError = _isError; BusinessObject = _BusinessObject; LogSystem = _LogSystem; if (Message != null && Message != string.Empty) { System.Diagnostics.EventLogEntryType logType = System.Diagnostics.EventLogEntryType.Information; if (isError) logType = System.Diagnostics.EventLogEntryType.Error; if (LogSystem != null) LogSystem.CreateLog(Message, logType); } }
/// <summary> /// Default constractor of Result Class for Object /// </summary> /// <param name="_isError">if method send an object as a result, it will be in this object file</param> /// <param name="_Message">if there is an error result of a method you can see the detail of error in this property</param> /// <param name="_BusinessObject">if method send an object as a result, it will be in this object file</param> /// <param name="_LogSystem">The _ log system.</param> public Result(bool _isError, string _Message, Object _BusinessObject, IDetailedLog _LogSystem) { Message = _Message; isError = _isError; BusinessObject = _BusinessObject; LogSystem = _LogSystem; if (Message != null && Message != string.Empty) { System.Diagnostics.EventLogEntryType logType = System.Diagnostics.EventLogEntryType.Information; if (isError) { logType = System.Diagnostics.EventLogEntryType.Error; } if (LogSystem != null) { LogSystem.CreateLog(Message, logType); } } }
public Result(bool _isError, string _Message, IDetailedLog _LogSystem, OrganizationResponse _Response) { Message = _Message; isError = _isError; Response = _Response; LogSystem = _LogSystem; if (Message != null && Message != string.Empty) { System.Diagnostics.EventLogEntryType logType = System.Diagnostics.EventLogEntryType.Information; if (isError) { logType = System.Diagnostics.EventLogEntryType.Error; } if (LogSystem != null) { LogSystem.CreateLog(Message, logType); } } }