Skip to content

Instantly share code, notes, and snippets.

@carloscds

carloscds/Servico.cs

Last active Feb 25, 2020
Embed
What would you like to do?
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