/// <summary>
        /// Activate continuation for this activity. While in the context that is enabling continuation, this activity can
        /// still be updated and MUST be ended with a call to EndMessagingStepActivity().
        /// </summary>
        public string EnableContinuation()
        {
            string continuationId = ContinuationPrefix + _activityId;

            OrchestrationEventStream.EnableContinuation(nameof(MessagingStep), _activityId, continuationId);
            return(continuationId);
        }
Пример #2
0
        /// <summary>
        /// Activate continuation for this activity. While in the context that is enabling continuation, this activity can
        /// still be updated and MUST be ended with a call to EndMessagingStepActivity().
        /// </summary>
        public string EnableContinuation()
        {
            string continuationId = ContinuationPrefix + _activityId;

            OrchestrationEventStream.EnableContinuation(ActivityName, _activityId, continuationId);
            return(continuationId);
        }
        /// <summary>
        /// Write any data changes to the BAM activity. This must be called after any property changes.
        /// </summary>
        public void CommitMessagingStepActivity()
        {
            // We need to provide the key/value pairs to the BAM API
            var al = new List <object>();

            foreach (var kvp in _activityItems)
            {
                al.Add(kvp.Key);
                al.Add(kvp.Value);
            }
            // Update the BAM Activity with all of the data
            OrchestrationEventStream.UpdateActivity(nameof(MessagingStep), _activityId, al.ToArray());
        }
Пример #4
0
 /// <summary>
 /// Add a custom reference to this activity, this enables 'data' to be attached to an activity, such as a message body.
 /// </summary>
 /// <param name="referenceType">The related item type. Reference type identifiers are limited to 128 characters.</param>
 /// <param name="referenceName">The related item name. Reference names are limited to 128 characters.</param>
 /// <param name="referenceData">The related item data. Limited to 1024 characters of data.</param>
 /// <param name="longReferenceData">The related item data containing up to 512 KB of Unicode characters of data.</param>
 /// <remarks>See http://msdn.microsoft.com/en-us/library/aa956648(BTS.10).aspx</remarks>
 public void AddCustomReference(string referenceType, string referenceName, string referenceData, string longReferenceData)
 {
     // Add a reference to another activity
     OrchestrationEventStream.AddReference(ActivityName, _activityId, referenceType, referenceName, referenceData, longReferenceData);
 }
Пример #5
0
 /// <summary>
 /// End the BAM activity. No more changes will be permitted to this activity except by continuation.
 /// </summary>
 public void EndMessagingStepActivity()
 {
     // End this activity, no more data can be added.
     OrchestrationEventStream.EndActivity(ActivityName, _activityId);
 }
Пример #6
0
 /// <summary>
 /// Begins the BAM activity.
 /// </summary>
 public void BeginMessagingStepActivity()
 {
     // Begin the Activity using the passed identifier
     OrchestrationEventStream.BeginActivity(ActivityName, _activityId);
 }
 /// <summary>
 /// Add a custom reference to this activity, this enables 'data' to be attached to an activity, such as a message body.
 /// </summary>
 /// <param name="referenceType">The related item type. Reference type identifiers are limited to 128 characters.</param>
 /// <param name="referenceName">The related item name. Reference names are limited to 128 characters.</param>
 /// <param name="referenceData">The related item data. Limited to 1024 characters of data.</param>
 public void AddCustomReference(string referenceType, string referenceName, string referenceData)
 {
     // Add a reference to another activity
     OrchestrationEventStream.AddReference(nameof(MessagingStep), _activityId, referenceType, referenceName, referenceData);
 }
 /// <summary>
 /// End the BAM activity. No more changes will be permitted to this activity except by continuation.
 /// </summary>
 public void EndProcessMessagingStepActivity()
 {
     // End this activity, no more data can be added.
     OrchestrationEventStream.EndActivity(nameof(ProcessMessagingStep), _activityId);
 }
 public void UpdateActivity(string activityName, string activityInstance, params object[] data)
 {
     OrchestrationEventStream.UpdateActivity(activityName, activityInstance, data);
 }
 /// <summary>
 /// Begins the BAM activity.
 /// </summary>
 public void BeginProcessMessagingStepActivity()
 {
     // Begin the Activity using the passed identifier
     OrchestrationEventStream.BeginActivity(nameof(ProcessMessagingStep), _activityId);
 }
 public void EndActivity(string activityName, string activityInstance)
 {
     OrchestrationEventStream.EndActivity(activityName, activityInstance);
 }
 public void EnableContinuation(string activityName, string activityInstance, string continuationToken)
 {
     OrchestrationEventStream.EnableContinuation(activityName, activityInstance, continuationToken);
 }
 public void Clear()
 {
     OrchestrationEventStream.Clear();
 }
 public void AddRelatedActivity(string activityName, string activityID, string relatedActivityName, string relatedTraceID)
 {
     OrchestrationEventStream.AddRelatedActivity(activityName, activityID, relatedActivityName, relatedTraceID);
 }
 public void AddReference(string activityName, string activityID, string referenceType, string referenceName, string referenceData, string longreferenceData)
 {
     OrchestrationEventStream.AddReference(activityID, activityID, referenceType, referenceName, referenceData, longreferenceData);
 }