Exemplo n.º 1
0
        protected override void DoExecute(CodeActivityContext context)
        {
            var myInternalId = InternalId.Get(context);
            var myAdapter    = Adapter.Get(context);

            devlog.Debug(string.Format("would call for '{0}' and '{1}'", myInternalId, myAdapter));
            var app = AdapterAppointmentRepository.Get(myInternalId, myAdapter.Id);

            devlog.Debug(string.Format("found '{0}'", app));
            try
            {
                appointment.Set(context, app.Value);
            }
            catch (NullReferenceException)
            {
                appointment.Set(context, null);
            }
        }
        protected override void DoExecute(System.Activities.CodeActivityContext context)
        {
            var internalId = InternalId.Get(context);

            devlog.DebugFormat("Entered for '{0}'", internalId);
            var found = Repository.EventByInternalId(internalId);

            try
            {
                CalDAVEvent.Set(context, found.Value);
                devlog.DebugFormat("found '{0}'", found.Value);
            }
            catch (NullReferenceException)
            {
                CalDAVEvent.Set(context, null);
                devlog.DebugFormat("found nothing");
            }
        }
        protected override void DoExecute(CodeActivityContext context)
        {
            var internalId = InternalId.Get(context);

            devlog.DebugFormat("Entered for '{0}'", internalId);
            var found = ExchangeRepository.ExchangeAppointmentByInternalId(internalId);

            try
            {
                ExchangeAppointment.Set(context, found.Value);
                devlog.DebugFormat("found '{0}'", found.Value);
            }
            catch (NullReferenceException)
            {
                ExchangeAppointment.Set(context, null);
                devlog.DebugFormat("found nothing");
            }
        }