private static void InitEncryptionFactory()
 {
     using (ILogMethod method = Log.LogMethod(DYN_MODULE_NAME, "Method"))
     {
         try
         {
             EncryptionFactory = MEFHelper.GetExportedValue <IFreeformEncryptionFactory>("FreeformEncryptionFactory");
         }
         catch (Exception ex)
         {
             method.Exception(ex);
         }
     }
 }
        private static void InitLogger()
        {
#if !REF_BMC_COMMON
            try
            {
                _disableLogging = MEFHelper.GetExportedValue <bool>("DisableLogging");
            }
            catch (Exception)
            {
                InitLoggerFromXml();
            }
#else
            _disableLogging = ConfigApplicationFactory.DisableLogging;
#endif
        }
 public static IDataInterface GetInterface()
 {
     if (_object == null)
     {
         lock (_lock)
         {
             if (_object == null)
             {
                 try
                 {
                     _object = MEFHelper.GetExportedValue<IDataInterface>("DataInterface");
                 }
                 catch (Exception)
                 {
                     _object = new CommonDataInterface();
                 }
        			 }
         }
     }
     return _object;
 }
        private static IExMonitorServerConfigStore Create()
        {
            using (ILogMethod method = Log.LogMethod("ExMonitorServerConfigStoreFactory", "Create"))
            {
                IExMonitorServerConfigStore result = default(IExMonitorServerConfigStore);

                try
                {
                    try
                    {
                        result = MEFHelper.GetExportedValue <IExMonitorServerConfigStore>("ExMonitorServerConfigStore");
                    }
                    catch { result = new ExMonitorServerConfigStore(); }
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                }

                return(result);
            }
        }