mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
35 lines
1.0 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Orleans;
|
|
|
|
namespace Squidex.Domain.Apps.Entities.Apps.Indexes
|
|
{
|
|
public interface IAppsByNameIndex : IGrainWithStringKey
|
|
{
|
|
Task<long> CountAsync();
|
|
|
|
Task<bool> ReserveAppAsync(Guid appId, string name);
|
|
|
|
Task AddAppAsync(Guid appId, string name);
|
|
|
|
Task RemoveAppAsync(Guid appId);
|
|
|
|
Task RebuildAsync(Dictionary<string, Guid> apps);
|
|
|
|
Task RemoveReservationAsync(Guid appId, string name);
|
|
|
|
Task<List<Guid>> GetAppIdsAsync();
|
|
|
|
Task<List<Guid>> GetAppIdsAsync(string[] names);
|
|
|
|
Task<Guid> GetAppIdAsync(string name);
|
|
}
|
|
}
|
|
|