public NoThrowCustomDataSourceConfiguration(ICustomDataSourcePlugin inner, IServiceContainer serviceContainer)
 {
     try
     {
         Inner = inner.CreateConfiguration(serviceContainer);
     }
     catch (Exception e)
     {
         Log.ErrorFormat("Caught unexpected exception: {0}", e);
     }
 }
 private ILogSource TryCreateCustomWith(ICustomDataSourcePlugin plugin, ICustomDataSourceConfiguration configuration)
 {
     try
     {
         var logFile = plugin.CreateLogSource(_services, configuration);
         return(logFile);
     }
     catch (Exception e)
     {
         Log.ErrorFormat("Caught exception while trying to create custom log file: {0}", e);
         return(null);
     }
 }
        public NoThrowCustomDataSourcePlugin(ICustomDataSourcePlugin inner)
        {
            _inner = inner;

            try
            {
                _name = inner.DisplayName;
                _id   = inner.Id;
            }
            catch (Exception e)
            {
                Log.ErrorFormat("Caught unexpected exception: {0}", e);
                _name = inner.GetType().Name;
                _id   = null;
            }
        }