Example #1
0
        public void WatchToReminder(ActionBusContext ctx, int delayInMinute, string message)
        {
            var a = new WakeUpRequestModel()
            {
                Uuid          = Guid.NewGuid(),
                Binding       = string.Empty,
                DelayInMinute = delayInMinute,
                Message       = message,
            };


            _reminder.Watch(a);
        }
Example #2
0
        public bool PushParent(Guid uuid, string binding, string address, string message, int delayInMinute, string headers)
        {
            var model = new WakeUpRequestModel()
            {
                Uuid          = uuid,
                Binding       = binding,
                Address       = address,
                Message       = message,
                DelayInMinute = delayInMinute,
                Headers       = headers
            };

            _service.Watch(model);

            return(true);
        }