public void Save(Scope scope) { BsonDocument doc = new ScopeSerializer().Serialize(scope); MongoCollection <BsonDocument> collection = _db.GetCollection(_settings.ScopeCollection); collection.Save(doc); }
public ScopeStore(MongoDatabase db, string collectionName) : base(db, collectionName) { _serializer = new ScopeSerializer(); }
public AuthorizationCodeSerializer() { _clientSerializer = new ClientSerializer(); _scopeSerializer = new ScopeSerializer(); _claimSetSerializer = new ClaimSetSerializer(); }