Пример #1
0
        public static void StepInOrThrow(
            this ICyclicAccessGuard <AccessTrace> guard,
            AccessContext context,
            object sender,
            string propertyName
            )
        {
            var trace = new AccessTrace()
            {
                Context = context, Sender = sender, PropertyName = propertyName
            };

            guard.StepInOrThrow(trace);
        }
Пример #2
0
        public static void RecordStepIn(
            this ICyclicAccessRecord <AccessTrace> record,
            AccessContext context,
            object sender,
            string propertyName
            )
        {
            var trace = new AccessTrace()
            {
                Context = context, Sender = sender, PropertyName = propertyName
            };

            record.RecordStepIn(trace);
        }
Пример #3
0
        public static bool TryStepIn(
            this ICyclicAccessGuard <AccessTrace> guard,
            AccessContext context,
            object sender,
            string propertyName
            )
        {
            var trace = new AccessTrace()
            {
                Context = context, Sender = sender, PropertyName = propertyName
            };

            return(guard.TryStepIn(trace));
        }