Beispiel #1
0
        protected override AdminService CreateAdminService(NetworkStoreType storeType)
        {
            IServiceFactory serviceFactory = null;
            if (storeType == NetworkStoreType.Memory) {
                serviceFactory = new MemoryServiceFactory();
            } else if (storeType == NetworkStoreType.FileSystem) {
                serviceFactory = new FileSystemServiceFactory(TestPath);
            }

            return new HttpAdminService(serviceFactory, Local);
        }
Beispiel #2
0
        protected override AdminService CreateAdminService(NetworkStoreType storeType)
        {
            IServiceFactory serviceFactory = null;

            if (storeType == NetworkStoreType.Memory)
            {
                serviceFactory = new MemoryServiceFactory();
            }
            else if (storeType == NetworkStoreType.FileSystem)
            {
                serviceFactory = new FileSystemServiceFactory(TestPath);
            }

            return(new HttpAdminService(serviceFactory, Local));
        }