Last active
February 25, 2020 03:19
-
-
Save carloscds/0d13a30ba6d22fd25b14365bed8cfd2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace InjecaoDependenciaASPNETCore | |
{ | |
public class Servico : IServico | |
{ | |
private int contador; | |
public Servico() | |
{ | |
contador = 0; | |
} | |
public string RetornaValor() | |
{ | |
contador++; | |
return $"Servico: {contador}"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment