Beispiel #1
0
        public void Save(Client client)
        {
            BsonDocument doc = new ClientSerializer().Serialize(client);
            MongoCollection <BsonDocument> collection = _db.GetCollection(_settings.ClientCollection);

            collection.Save(doc);
        }
Beispiel #2
0
 public TokenSerializer()
 {
     _claimsSetSerializer = new ClaimSetSerializer();
     _clientSerializer    = new ClientSerializer();
 }
 public ClientStore(MongoDatabase db, string collectionName) : base(db, collectionName)
 {
     _serializer = new ClientSerializer();
 }
 public AuthorizationCodeSerializer()
 {
     _clientSerializer   = new ClientSerializer();
     _scopeSerializer    = new ScopeSerializer();
     _claimSetSerializer = new ClaimSetSerializer();
 }