public override Task Activate()
 {
     CalledMethods |= CalledMethod.Activate;
     CheckBasicPropeties();
     Assert.NotNull(AuthorizationToken);
     return(Task.FromResult(0));
 }
 public override Task FollowUp()
 {
     CalledMethods |= CalledMethod.Configure;
     CheckBasicPropeties();
     Assert.NotNull(AuthorizationToken);
     return(Task.FromResult(0));
 }
        public override Task Run()
        {
            CalledMethods |= CalledMethod.Run;
            CheckBasicPropeties();
            Assert.NotNull(AuthorizationToken);
            Assert.NotNull(Payload);
            Assert.NotNull(OperationalState);

            return(Task.FromResult(0));
        }
Exemplo n.º 4
0
        public CalledMethod Clone()
        {
            CalledMethod method = new CalledMethod
            {
                ClassName  = ClassName,
                MethodName = MethodName,
                Count      = Count
            };

            return(method);
        }
        protected override Task Validate()
        {
            CalledMethods |= CalledMethod.Validate;

            CheckBasicPropeties();
            Assert.NotNull(AuthorizationToken);

            if (!ValidationState)
            {
                ValidationManager.SetError("Error");
            }

            return(Task.FromResult(0));
        }
 public override Task Deactivate()
 {
     CalledMethods |= CalledMethod.Deactivate;
     CheckBasicPropeties();
     return(Task.FromResult(0));
 }