Ejemplo n.º 1
0
        public FileObjectAccess(string path, ITypeRegistry typeRegistry)
        {
            Path    = path;
            _buffer = new DataAccessBuffer();

            TypeRegistry = typeRegistry;
        }
Ejemplo n.º 2
0
        public FileObjectAccess(string path)
        {
            Path    = path;
            _buffer = new DataAccessBuffer();

            if (ServiceLocator.IsInitialised())
            {
                TypeRegistry = ServiceLocator.Instance.Resolve <ITypeRegistry>();
            }
            else
            {
                throw new ApplicationException("Type Registry is not registered, cannot create FileObjectAccess via service-locator constructor.");
            }
        }