public static ITelimena Construct(ITelimenaStartupInfo startupInfo) { try { Telimena instance = new Telimena(startupInfo); return(instance); } catch { return(GetNullObjectTeli(startupInfo)); } }
public static ITelimena Construct(ITelimenaStartupInfo startupInfo) { try { if (startupInfo.TelemetryApiBaseUrl != null) { Telimena instance = new Telimena(startupInfo); return(instance); } else { throw new TelimenaException("Error - Telimena URL is not specified. Telimena will not work. See logs for details."); } } catch { return(GetNullObjectTeli(startupInfo)); } }
/// <summary> /// New instance /// </summary> /// <param name="telimena"></param> public UpdatesModule(Telimena telimena) { this.telimena = telimena; }