public FileObjectAccess(string path, ITypeRegistry typeRegistry) { Path = path; _buffer = new DataAccessBuffer(); TypeRegistry = typeRegistry; }
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."); } }