/// <summary> /// Implementation of SchemaSpiOp /// </summary> /// <returns></returns> public Schema Schema() { try { LOG.Info("Exchange.Schema method"); if (_schema != null) { LOG.Info("Returning cached schema"); } else { _schema = SchemaUtils.BuildSchema(this, GetSupportedObjectClasses, GetObjectClassInfo, GetSupportedOperations, GetUnSupportedOperations); LOG.Info("Returning newly created schema"); } return(_schema); } catch (Exception e) { LOG.Error(e, "Exception while executing Schema operation: {0}"); throw; } }
/// <summary> /// Implementation of SchemaSpiOp /// </summary> /// <returns></returns> public Schema Schema() { try { LOGGER_API.TraceEvent(TraceEventType.Information, CAT_DEFAULT, "Exchange.Schema method"); if (_schema != null) { LOGGER_API.TraceEvent(TraceEventType.Information, CAT_DEFAULT, "Returning cached schema"); } else { _schema = SchemaUtils.BuildSchema(this, GetSupportedObjectClasses, GetObjectClassInfo, GetSupportedOperations, GetUnSupportedOperations); LOGGER_API.TraceEvent(TraceEventType.Information, CAT_DEFAULT, "Returning newly created schema"); } return(_schema); } catch (Exception e) { LOGGER.TraceEvent(TraceEventType.Error, CAT_DEFAULT, "Exception while executing Schema operation: {0}", e); throw; } }