Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace InjecaoDependenciaASPNETCore
{
public class ExecutaServico
{
private readonly IServico _servico;
public ExecutaServico(IServico servico)
{
_servico = servico;
}
public string RetornaServicoExecutado() => _servico.RetornaValor();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment