Exemplo n.º 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);
        }
Exemplo n.º 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));
        }