Ejemplo n.º 1
0
 public MACapabilities GetCapabilitiesEx(KeyedCollection <string, ConfigParameter> configParameters)
 {
     try
     {
         Logging.SetupLogger(configParameters);
         ICapabilitiesProvider provider = InterfaceManager.GetProviderOrThrow <ICapabilitiesProvider>();
         return(provider.GetCapabilitiesEx(configParameters));
     }
     catch (Exception ex)
     {
         logger.Error(ex.UnwrapIfSingleAggregateException(), "Could not get capabilities");
         throw;
     }
 }
Ejemplo n.º 2
0
        public Schema GetSchema(KeyedCollection <string, ConfigParameter> configParameters)
        {
            try
            {
                Logging.SetupLogger(configParameters);
                SchemaContext context = new SchemaContext()
                {
                    ConfigParameters  = configParameters,
                    ConnectionContext = InterfaceManager.GetProviderOrDefault <IConnectionContextProvider>()?.GetConnectionContext(configParameters, ConnectionContextOperationType.Schema)
                };

                ISchemaProvider provider = InterfaceManager.GetProviderOrThrow <ISchemaProvider>();

                return(provider.GetMmsSchema(context));
            }
            catch (Exception ex)
            {
                logger.Error(ex.UnwrapIfSingleAggregateException(), "Could not retrieve schema");
                throw;
            }
        }