Exemple #1
0
        public override void Execute()
        {
            Transactions.Transaction t;
            Transactions.Processes.ModifyResource process;

            process = new Transactions.Processes.ModifyResource(_request.Database, _resource,
                                                                _request.RequestingPartyType, _request.Session, _request.Database.Server.Timeout,
                                                                _request.Database.Server.Timeout, _request.Database.Server.BufferSize, _request.Database.Server.BufferSize);
            t = new Transactions.Transaction(process);

            AttachSubscriber(process, _request.OnActionChanged);
            AttachSubscriber(process, _request.OnAuthorizationDenied);
            AttachSubscriber(process, _request.OnComplete);
            AttachSubscriber(process, _request.OnError);
            AttachSubscriber(process, _request.OnProgress);
            AttachSubscriber(process, _request.OnTimeout);

            t.Execute();
        }
        public override void Execute()
        {
            Transactions.Transaction t;
            Transactions.Processes.ModifyResource process;

            process = new Transactions.Processes.ModifyResource(_request.Database, _resource,
                _request.RequestingPartyType, _request.Session, _request.Database.Server.Timeout,
                _request.Database.Server.Timeout, _request.Database.Server.BufferSize, _request.Database.Server.BufferSize);
            t = new Transactions.Transaction(process);

            AttachSubscriber(process, _request.OnActionChanged);
            AttachSubscriber(process, _request.OnAuthorizationDenied);
            AttachSubscriber(process, _request.OnComplete);
            AttachSubscriber(process, _request.OnError);
            AttachSubscriber(process, _request.OnProgress);
            AttachSubscriber(process, _request.OnTimeout);

            t.Execute();
        }