コード例 #1
0
        public override void ApplyResources(IApplicationContext context)
        {
            if (Applied)
            {
                return;
            }

            ResourceLoader?.ApplyResources(context);

            context.Factory.Add <IThingFactory, ThingFactory> ();
            context.Factory.Add <IGraphModelFactory <IThing, ILink>, ThingFactory> ();

            var thingGraphContentPool = context.Pooled <ThingGraphIoPool>();

            thingGraphContentPool.Add(new XmlThingGraphIo());
            thingGraphContentPool.Add(new IoriThingGraphIo());

            Applied = true;
        }