how to register all classes of a particular interface using .net core default service container
<p>In unity I can register all types of an interface from an assembly using this way.</p>

<pre><code>    public static void RegisterTypes(IUnityContainer container)
    {

        container.RegisterTypes(
            AllClasses.FromLoadedAssemblies().
                Where(
                    type =&gt;
                        typeof (IRunAtInit).IsAssignableFrom(type),
            WithMappings.FromAllInterfaces,
            WithName.TypeName);

              }
</code></pre>

<p>Is it possible to implement it .net core  like this way using its own default service container ? </p>