retroactiune/Retroactiune.WebAPI/Services/TokensService.cs

25 lines
718 B
C#
Raw Normal View History

2021-06-09 21:03:07 +00:00
using System.Collections.Generic;
using System.Threading.Tasks;
using MongoDB.Driver;
using Retroactiune.Models;
using Retroactiune.Settings;
// TODO: Test
namespace Retroactiune.Services
{
public class TokensService : ITokensService
{
private readonly IMongoCollection<Token> _collection;
public TokensService(IMongoClient client, IMongoDbSettings settings)
{
var database = client.GetDatabase(settings.DatabaseName);
_collection = database.GetCollection<Token>(settings.TokensCollectionName);
}
public async Task CreateManyAsync(IEnumerable<Token> items)
{
throw new System.NotImplementedException();
}
}
}