1
There is a difference in performance or best practice between the two examples?
Example1:
private void Teste()
{
using (var scope = Container.BeginLifetimeScope())
{
scope.Resolve<MyViewModel>().ShowName();
}
}
Exemplo2:
private void Teste2()
{
Resolver.Resolve<MyViewModel>().ShowName();
}