Beispiel #1
0
        public RootQueryType(IAsyncBatch batch, RoscoeDb db)
        {
            this.batch = batch;
            this.db    = db;

            provider     = batch.Add(new RoscoeAsyncOperation <RoscoeDb>(db));
            enumProvider = batch.Add(new ObjectDataProvider <OrgType>(token => Task.FromResult(OrgType.Sme)));
        }