title: On IServiceProvider what are the differences between the GetRequiredService and GetService methods?
body: <p>What are the differences between <code>IServiceProvider.GetRequiredService()</code> and <code>IServiceProvider.GetService()</code>?</p>
  
  <p>When is it a better idea to use <code>GetRequiredService()</code>? </p>