IEnumerable <IMethodDefinition> IMetadataProvider.RetrieveMethodDefinitions(bool shouldGetParameters) { using (new LogMethodExecution(ScriptRunnerConnector.ConnectorTypeDescription, methodInfo.GetCurrentMethodName())) { try { // No operation return(new List <IMethodDefinition>()); } catch (Exception exception) { ScriptRunnerConnector.unhandledExecptionHandler(methodInfo.GetCurrentMethodName(), exception); } } return(null); }
IObjectDefinition IMetadataProvider.RetrieveObjectDefinition(string objectName, bool shouldGetProperties, bool shouldGetRelations) { using (new LogMethodExecution(ScriptRunnerConnector.ConnectorTypeDescription, methodInfo.GetCurrentMethodName())) { try { if (service == null || service.IsConnected == false) { throw new ApplicationException("Must connect before calling " + methodInfo.GetCurrentMethodName()); } return(service.RetrieveObjectDefinition(objectName, shouldGetProperties, shouldGetRelations)); } catch (Exception exception) { ScriptRunnerConnector.unhandledExecptionHandler(methodInfo.GetCurrentMethodName(), exception); } } return(null); }
IEnumerable <IActionDefinition> IMetadataProvider.RetrieveActionDefinitions() { using (new LogMethodExecution(ScriptRunnerConnector.ConnectorTypeDescription, methodInfo.GetCurrentMethodName())) { try { if (service == null || service.IsConnected == false) { throw new ApplicationException("Must connect before calling " + methodInfo.GetCurrentMethodName()); } return(service.RetrieveActionDefinitions()); } catch (Exception exception) { ScriptRunnerConnector.unhandledExecptionHandler(methodInfo.GetCurrentMethodName(), exception); } } return(null); }