public IIOContainer CreateIOContainer(IIOFactory factory, IOBuildContext context) { if (FCanCreate(context)) { return(FCreate(factory, context)); } return(FRegistry.CreateIOContainer(factory, context)); }
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); }