public override Task <bool> InitWrapperAsync(bool useHttps) { try { OmDbWrapper wrapper = new OmDbWrapper(); if (wrapper.Init(CACHE_PATH, useHttps)) { _wrapper = wrapper; return(Task.FromResult(true)); } } catch (Exception ex) { ServiceRegistration.Get <ILogger>().Error("SeriesOmDbMatcher: Error initializing wrapper", ex); } return(Task.FromResult(false)); }
public override bool InitWrapper(bool useHttps) { try { OmDbWrapper wrapper = new OmDbWrapper(); if (wrapper.Init(CACHE_PATH, useHttps)) { _wrapper = wrapper; return(true); } } catch (Exception ex) { ServiceRegistration.Get <ILogger>().Error(Id + ": Error initializing wrapper", ex); } return(false); }