RavenDB ném InvalidOperationException
khi IsOperationAllowedOnDocument
được gọi bằng chế độ được nhúng.RavenDB IsOperationAllowedOnTài liệu không được hỗ trợ trong Chế độ nhúng
Tôi có thể thấy trong việc thực hiện IsOperationAllowedOnDocument
một điều khoản kiểm tra các cuộc gọi ở chế độ được nhúng.
namespace Raven.Client.Authorization
{
public static class AuthorizationClientExtensions
{
public static OperationAllowedResult[] IsOperationAllowedOnDocument(this ISyncAdvancedSessionOperation session, string userId, string operation, params string[] documentIds)
{
var serverClient = session.DatabaseCommands as ServerClient;
if (serverClient == null)
throw new InvalidOperationException("Cannot get whatever operation is allowed on document in embedded mode.");
Có một cách giải quyết cho khác này hơn là không sử dụng chế độ nhúng?
Cảm ơn thời gian của bạn.