Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum

CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • IAuthorizeDataPortal / IInterceptDataPortal and DataPortalOperations.Execute

    rated by 0 users
    Answered (Not Verified) This post has 0 verified answers | 1 Reply | 0 Followers

    Not Ranked
    6 Posts
    DrLik posted on Tue, Jun 25 2013 8:50 AM


    I have implemented both IAutorizeDataPortal and IInterceptDataPortal in my project. When commands are executed, IInterceptDataPortal methods gets DataPortalOperations.Execute parameter, but IAutorizeDataPortal.Authorize gets DataPortalOperations.Update. The difference is in server DataPortal class Update method:

    if (obj is Core.ICommandObject)
      operation = DataPortalOperations.Execute;
    Initialize(new InterceptArgs { ObjectType = objectType, Parameter = obj, Operation = operation, IsSync = isSync });

    AuthorizeRequest(new AuthorizeRequest(objectType, obj, DataPortalOperations.Update));

    Is it bug or feature? For my case it would be better to have both parameter the same... :)



    Zdenek Drlik

    All Replies

    Top 10 Contributor
    2,279 Posts
    Answered (Not Verified) JonnyBee replied on Tue, Jun 25 2013 11:37 AM
    Suggested by JonnyBee


    It is a bug. Thanks for reporting this.

    See: https://github.com/MarimerLLC/csla/issues/166

    Jonny Bekkum, Norway CslaContrib Coordinator

    Page 1 of 1 (2 items) | RSS

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems