protected override void Execute(NativeActivityContext context)
        {
            HiringRequestInfo hiringRequestInfo = this.HiringRequestInfo.Get(context);

            hiringRequestInfo.IsCompleted = this.IsCompleted.Get(context);
            hiringRequestInfo.IsCancelled = this.IsCancelled.Get(context);
            hiringRequestInfo.IsSuccess   = this.IsSuccess.Get(context);
            HiringRequestRepository.Save(hiringRequestInfo);
        }
예제 #2
0
        protected override IAsyncResult BeginOnSave(IDictionary <System.Xml.Linq.XName, object> readWriteValues, IDictionary <System.Xml.Linq.XName, object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state)
        {
            HiringRequestInfo info = ExtractHiringRequestInfoFromValues(writeOnlyValues);

            if (info != null)
            {
                HiringRequestRepository.Save(info);
            }
            // save the hiring request data here
            return(base.BeginOnSave(readWriteValues, writeOnlyValues, timeout, callback, state));
        }