You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Directives that will let you access dependence injection and hosting
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
// <using> lets us dispose the object
// It gets rid of unmanaged resource slike database connections and streams
// This is an IHost
using var engine = TradingEngineServerHostBuilder.BuildTradingEngineServer();
// We've registerd the tradingEngine server in the host
// We're getting an object of type IHost when we get BuildTradingEngineServer, and we use services and we put that into ServiceProvider so that way we can always access engine.Services