예제 #1
0
        public void Save(Scope scope)
        {
            BsonDocument doc = new ScopeSerializer().Serialize(scope);
            MongoCollection <BsonDocument> collection = _db.GetCollection(_settings.ScopeCollection);

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