Exemplo n.º 1
0
 public IIOContainer CreateIOContainer(IIOFactory factory, IOBuildContext context)
 {
     if (FCanCreate(context))
     {
         return(FCreate(factory, context));
     }
     return(FRegistry.CreateIOContainer(factory, context));
 }
Exemplo n.º 2
0
        public IIOContainer CreateIOContainer(IOBuildContext context)
        {
            var io = FIORegistry.CreateIOContainer(this, context);

            if (io == null)
            {
                throw new NotSupportedException(string.Format("Can't create container for build context '{1}'.", context));
            }
            return(io);
        }