protected BaseMessagingActor(ActorService actorService, ActorId actorId,
                                     IBinaryMessageSerializer binaryMessageSerializer,
                                     IActorClient actorClient,
                                     IKeyValueStorage <string> storage,
                                     ILogger logger) : base(actorService, actorId, logger)
        {
            /*
             * Flow = BaseDependencyResolver.ResolveFlow();
             * if (Flow != null)
             * {
             *  CurrentRefStep = Flow.GetCurrentStep(CurrentActorServiceWithActorIdNotSpecified);
             *  NextStep = Flow.GetNextStep(CurrentRefStep);
             *  Orders = NextStep.Orders;
             * }*/

            Orders = OrchestrationOrderCollection.NoOrder();

            //resolve binary serializer

            BinaryMessageSerializer = binaryMessageSerializer ?? throw new ArgumentNullException(nameof(binaryMessageSerializer));
            ActorClient             = actorClient ?? throw new ArgumentNullException(nameof(actorClient));
            StorageService          = storage;

            //resolve storage
            //StorageService = BaseDependencyResolver.ResolveStorageService<string>();

            //resolve flowservice
            //AsyncFlowService = BaseDependencyResolver.ResolveFlowService();

            //resolve actorclient to be able to chain next
        }
Exemplo n.º 2
0
     get => new EndStep()
     {
         Id = new StepId(END_STEP_GUID), Orders = OrchestrationOrderCollection.NoOrder()
     };
 }
Exemplo n.º 3
0
     get => new NoStep()
     {
         Id = new StepId(NO_STEP_GUID), Orders = OrchestrationOrderCollection.NoOrder()
     };
 }
Exemplo n.º 4
0
 public Step()
 {
     Id       = new StepId(Guid.NewGuid().ToString());
     Orders   = OrchestrationOrderCollection.NoOrder();
     StepType = StepType.Normal;
 }