I am overriding the AuthorizeChangeSet
method and return false
. The change set is not applied to the data context as expected, but how is the client notiied about this authorization error? The returned SubmitOperation
has no error, and I cannot find any information elsewhere inside.
(Still using the Nov 2009 beta with VS2008 and net3.5)
Actually, no one cares. With reflector I finally found the place in the framework, where my false
is being swallowed: DomainService.AuthorizeChangeSet
is called by DomainService.Submit
, which is still returning the outcome of DomainService.AuthorizeChangeSet
. But see what the ChangeSetProcessor.Process
is doing with it:
public static IEnumerable<ChangeSetEntry> Process(DomainService domainService, IEnumerable<ChangeSetEntry> changeSetEntries)
{
ChangeSet changeSet = CreateChangeSet(changeSetEntries);
domainService.Submit(changeSet);
return GetSubmitResults(changeSet);
}
... nothing.