Beispiel #1
0
        public void AssignCondition(GenericToken token)
        {
            AssignedTokens.Add(token);

            token.WhenAssigned();
            Host.CallOnConditionIsAssigned(token.GetType());
        }
Beispiel #2
0
        public void AssignCondition(Type tokenType)
        {
            GenericToken token = (GenericToken)Activator.CreateInstance(tokenType, Host);

            AssignedTokens.Add(token);

            token.WhenAssigned();
            Host.CallOnConditionIsAssigned(token.GetType());
        }
Beispiel #3
0
        private void FinalizeAssignToken(Action callback)
        {
            if (TokenToAssign == null)
            {
                callback();
                return;
            }

            AssignedTokens.Add(TokenToAssign);

            TokenToAssign.WhenAssigned();
            Host.CallOnTokenIsAssigned(TokenToAssign, callback);
        }