Ejemplo n.º 1
0
 private void SendTo(Chunk chunk)
 {
     Send(chunk.Payload, chunk.Size, _deviceId, SourceEndpoint.ToString());
     if (!chunk.HasPostSend)
     {
         return;
     }
     Send(chunk.Payload2, chunk.Size2, _deviceId, SourceEndpoint.ToString());
     chunk.Size2 = 0;
 }
Ejemplo n.º 2
0
 public Connection(SourceEndpoint source, TargetEndpoint target)
 {
     Source = source;
     Target = target;
 }
Ejemplo n.º 3
0
        private void ScheduleNextActivities(WorkflowExecutionContext workflowContext, SourceEndpoint endpoint)
        {
            var completedActivity = workflowContext.CurrentActivity;
            var connections       = workflowContext.Workflow.Connections.Where(x => x.Source.Activity == completedActivity && (x.Source.Outcome ?? OutcomeNames.Done) == endpoint.Outcome);
            var activities        = connections.Select(x => x.Target.Activity);

            workflowContext.ScheduleActivities(activities);
        }
Ejemplo n.º 4
0
        private void ScheduleNextActivities(WorkflowExecutionContext workflowContext, SourceEndpoint endpoint)
        {
            var completedActivity = workflowContext.CurrentActivity;
            var connections       = workflowContext.Workflow.Connections.Where(x => x.Source.Activity == completedActivity &&
                                                                               (x.Source.Outcome ?? OutcomeNames.Done).Equals(endpoint.Outcome, StringComparison.OrdinalIgnoreCase));
            var activities = connections.Select(x => x.Target.Activity);

            workflowContext.ScheduleActivities(activities);
        }