Exemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public Member AddMember(IOperationContext pOpCtx, CreateMemberOperation pOper,
                                long pAppId, long pUserId)
        {
            var m = new CreateFabMember();

            m.DefinedByAppId  = pAppId;
            m.DefinedByUserId = pUserId;
            m.Type            = (byte)MemberType.Id.Member;

            pOpCtx.Auth.SetFabricActiveMember();
            Member newMem = pOper.Execute(
                pOpCtx, new CreateOperationBuilder(), new CreateOperationTasks(), m);

            pOpCtx.Auth.RemoveFabricActiveMember();
            return(newMem);
        }
Exemplo n.º 2
0
        /*--------------------------------------------------------------------------------------------*/
        protected override Member ExecuteOperation()
        {
            var op = new CreateMemberOperation();

            return(op.Execute(OpCtx, Build, Tasks, vCreateMember));
        }