public bool CreateServer(Action <IServiceCollection> configureServices) { if (_fomoApiFactory == null) { _fomoApiFactory = new FomoApiApplicationFactory(configureServices); return(true); } return(false); }
public void Dispose() { if (_httpClientNoAuth != null) { _httpClientNoAuth.Dispose(); _httpClientNoAuth = null; } if (_fomoApiFactory != null) { _fomoApiFactory.Dispose(); _fomoApiFactory = null; } Disposed = true; }