Example #1
0
 public ResultStatus LoadESigDetails(
     ChangeOwner changeOwner,
     ChangeOwner_Request request,
     out ChangeOwner_Result result)
 {
     return(this.LoadESigDetails(changeOwner, (ChangeOwner_Parameters)null, request, out result));
 }
Example #2
0
 public ResultStatus GetActions(
     ChangeOwner changeOwner,
     ChangeOwner_Request request,
     out ChangeOwner_Result result)
 {
     return(this.GetActions(changeOwner, (ChangeOwner_Parameters)null, request, out result));
 }
Example #3
0
 public ResultStatus CreateParametricData(
     ChangeOwner changeOwner,
     ChangeOwner_Request request,
     out ChangeOwner_Result result)
 {
     return(this.CreateParametricData(changeOwner, (ChangeOwner_Parameters)null, request, out result));
 }
Example #4
0
 public ResultStatus SetTriageComplete(
     ChangeOwner changeOwner,
     ChangeOwner_Request request,
     out ChangeOwner_Result result)
 {
     return(this.SetTriageComplete(changeOwner, (ChangeOwner_Parameters)null, request, out result));
 }
Example #5
0
 public ResultStatus ProcessComputation(
     ChangeOwner changeOwner,
     ChangeOwner_Request request,
     out ChangeOwner_Result result)
 {
     return(this.ProcessComputation(changeOwner, (ChangeOwner_Parameters)null, request, out result));
 }
Example #6
0
 public string ChangeCollectionOwner(ChangeOwner changeOwner, Address sender, string privateKey)
 {
     return(_nftClient.MakeCallWithReconnect(application => application.SubmitExtrinsicObject(
                                                 changeOwner,
                                                 Module,
                                                 ChangeOwnerMethod,
                                                 sender,
                                                 privateKey), _nftClient.Settings.MaxReconnectCount));
 }
Example #7
0
 public ChangeOwnerMethod(
     ChangeOwner Cdo,
     ChangeOwnerMethods Method,
     ChangeOwner_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Example #8
0
        public void ChangeOwner(ChangeOwner command)
        {
            if (Owner != default(Guid) && command.Requester != Owner)
                throw new DXGameException("unathorized_request");
            if (command.Password != Password)
                throw new DXGameException("invalid_password");
            if (!_players.Contains(command.NewOwner))
                throw new DXGameException("specified_player_is_not_a_member_of_playroom");

            ApplyEvent(new OwnerChanged(Id, command.NewOwner, Version, command.CommandId));
        }
Example #9
0
 public ResultStatus GetEnvironment(
     ChangeOwner cdo,
     ChangeOwner_Request request,
     out ChangeOwner_Result result)
 {
     result = (ChangeOwner_Result)null;
     try
     {
         return(((IChangeOwnerService)this._Channel).GetEnvironment(this._UserProfile, cdo, request, out result));
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
Example #10
0
        public ResultStatus AddDataTransaction(ChangeOwner cdo)
        {
            this.OnBeforeCall(nameof(AddDataTransaction), (DCObject)cdo, (Parameters)null, (Request)null);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? this.GetAddDataTransactionException() : this.AddMethod((Method) new ChangeOwnerMethod(cdo, ChangeOwnerMethods.AddDataTransaction, (ChangeOwner_Parameters)null));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                Result result;
                this.OnAfterCall(nameof(AddDataTransaction), res, (DCObject)cdo, (Parameters)null, (Request)null, result);
            }
            return(res);
        }
Example #11
0
        public ResultStatus ExecuteTransaction(
            ChangeOwner cdo,
            ChangeOwner_Request request,
            out ChangeOwner_Result result)
        {
            result = (ChangeOwner_Result)null;
            this.OnBeforeCall(nameof(ExecuteTransaction), (DCObject)cdo, (Parameters)null, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IChangeOwnerService)this._Channel).ExecuteTransaction(this._UserProfile, cdo, request, out result) : this.AddMethod((Method) new ChangeOwnerMethod(cdo, ChangeOwnerMethods.ExecuteTransaction, (ChangeOwner_Parameters)null));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(ExecuteTransaction), res, (DCObject)cdo, (Parameters)null, (Request)request, (Result)result);
            }
            return(res);
        }
Example #12
0
        public ResultStatus GetActions(
            ChangeOwner changeOwner,
            ChangeOwner_Parameters parameters,
            ChangeOwner_Request request,
            out ChangeOwner_Result result)
        {
            result = (ChangeOwner_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)changeOwner, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IChangeOwnerService)this._Channel).GetActions(this._UserProfile, changeOwner, parameters, request, out result) : this.AddMethod((Method) new ChangeOwnerMethod(changeOwner, ChangeOwnerMethods.GetActions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetActions), res, (DCObject)changeOwner, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }
Example #13
0
 public async Task <IActionResult> ChangeOwner([FromBody] ChangeOwner command)
 => await ProcessCommand(command);
Example #14
0
 void Start()
 {
     co = GetComponent <ChangeOwner> ();
 }
Example #15
0
 public ResultStatus GetActions(ChangeOwner changeOwner)
 {
     return(this.GetActions(changeOwner, (ChangeOwner_Parameters)null, (ChangeOwner_Request)null, out ChangeOwner_Result _));
 }
Example #16
0
 public ResultStatus CreateParametricData(ChangeOwner changeOwner)
 {
     return(this.CreateParametricData(changeOwner, (ChangeOwner_Parameters)null, (ChangeOwner_Request)null, out ChangeOwner_Result _));
 }
Example #17
0
 public ResultStatus ExecuteTransaction(ChangeOwner cdo)
 {
     return(this.ExecuteTransaction(cdo, (ChangeOwner_Request)null, out ChangeOwner_Result _));
 }
Example #18
0
 public ResultStatus LoadESigDetails(ChangeOwner changeOwner)
 {
     return(this.LoadESigDetails(changeOwner, (ChangeOwner_Parameters)null, (ChangeOwner_Request)null, out ChangeOwner_Result _));
 }