में समर्थित नहीं है RavenDB InvalidOperationException
फेंकता है जब IsOperationAllowedOnDocument
एम्बेडेड मोड का उपयोग करके कॉल किया जाता है।RavenDB IsOperationAllowedOnDocument एम्बेडेड मोड
मैं IsOperationAllowedOnDocument
में एम्बेडेड मोड में कॉल के लिए क्लॉज जांच कार्यान्वित कर सकता हूं।
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.");
क्या एम्बेडेड मोड का उपयोग न करने के अलावा इस के लिए कोई कामकाज है?
आपके समय के लिए धन्यवाद।