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); } }
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; } }