/// <summary> /// This is the default constructor. /// </summary> /// <param name="serviceHandlers">The service handler container.</param> /// <param name="collector">The data collector.</param> /// <param name="sharedServices">The shared service context.</param> /// <param name="originatorId">This is the Microservice identifiers.</param> /// <param name="outgoingRequest">This is the outgoing request initiator.</param> public OnDataCollectionContext( IServiceHandlers serviceHandlers , IDataCollection collector , ISharedService sharedServices , MicroserviceId originatorId , IMicroserviceDispatch outgoingRequest) : base(serviceHandlers, collector, sharedServices, originatorId, outgoingRequest) { }
/// <summary> /// Initializes a new instance of the <see cref="DispatchWrapper"/> class. /// </summary> /// <param name="serviceHandlers">The service handler collection.</param> /// <param name="executeOrEnqueue">The execute or enqueue action.</param> /// <param name="getStatus">The get status function.</param> /// <param name="traceEnabled">if set to <c>true</c> trace is enabled for payloads.</param> protected internal DispatchWrapper(IServiceHandlers serviceHandlers, Action <TransmissionPayload, string> executeOrEnqueue, Func <ServiceStatus> getStatus, bool traceEnabled) : base(getStatus) { Name = GetType().Name; ExecuteOrEnqueue = executeOrEnqueue; ServiceHandlers = serviceHandlers; PayloadTraceEnabled = traceEnabled; }
/// <summary> /// This is the default constructor. /// </summary> /// <param name="rq">The incoming request.</param> /// <param name="rsCol">The outgoing response collection.</param> /// <param name="serviceHandlers">The service handler container.</param> /// <param name="collector">The data collector.</param> /// <param name="sharedServices">The shared service context.</param> /// <param name="originatorId">This is the Microservice identifiers.</param> /// <param name="outgoingRequest">This is the outgoing request initiator.</param> public CommandMethodRequestContext(TransmissionPayload rq, List <TransmissionPayload> rsCol , IServiceHandlers serviceHandlers , IDataCollection collector , ISharedService sharedServices , MicroserviceId originatorId , ICommandOutgoing outgoingRequest) : base(rq, rsCol, serviceHandlers, collector, sharedServices, originatorId, outgoingRequest) { }
/// <summary> /// This is the default constructor. /// </summary> /// <param name="rq">The incoming request.</param> /// <param name="rsCol">The outgoing response collection.</param> /// <param name="serviceHandlers">The service handlers container.</param> /// <param name="collector">The data collector.</param> /// <param name="sharedServices">The shared service context.</param> /// <param name="originatorId">This is the Microservice identifiers.</param> /// <param name="outgoingRequest">This is the outgoing request initiator.</param> public CommandRequestContextBase(TransmissionPayload rq, List <TransmissionPayload> rsCol , IServiceHandlers serviceHandlers , IDataCollection collector , ISharedService sharedServices , MicroserviceId originatorId , O outgoingRequest) : base(serviceHandlers, collector, sharedServices, originatorId, outgoingRequest) { Request = rq; Responses = rsCol; }
internal CommandHarnessDispatchWrapper(CommandPolicy policy , IServiceHandlers serviceHandlers , Action <TransmissionPayload, string> executeOrEnqueue , Func <ServiceStatus> getStatus , bool traceEnabled , string originatorServiceId = null) : base(serviceHandlers, executeOrEnqueue, getStatus, traceEnabled) { DefaultOriginatorServiceId = originatorServiceId; Policy = policy; }
/// <summary> /// This is the default constructor. /// </summary> /// <param name="schedule">The incoming schedule.</param> /// <param name="token">The cancellation token.</param> /// <param name="serviceHandlers">The service handler container.</param> /// <param name="collector">The data collector.</param> /// <param name="sharedServices">The shared service context.</param> /// <param name="originatorId">This is the Microservice identifiers.</param> /// <param name="outgoingRequest">This is the outgoing request initiator.</param> public CommandScheduleInlineContext(Schedule schedule, CancellationToken token , IServiceHandlers serviceHandlers , IDataCollection collector , ISharedService sharedServices , MicroserviceId originatorId , ICommandOutgoing outgoingRequest) : base(serviceHandlers, collector, sharedServices, originatorId, outgoingRequest) { Schedule = schedule; Token = token; }
/// <summary> /// This is the default constructor. /// </summary> /// <param name="serviceHandlers">The service handler container.</param> /// <param name="collector">The data collector.</param> /// <param name="sharedServices">The shared service context.</param> /// <param name="originatorId">This is the Microservice identifiers.</param> /// <param name="outgoingRequest">This is the outgoing request initiator.</param> public CommandContextBase( IServiceHandlers serviceHandlers , IDataCollection collector , ISharedService sharedServices , MicroserviceId originatorId , O outgoingRequest) { ServiceHandlers = serviceHandlers; Collector = collector; SharedServices = sharedServices; OriginatorId = originatorId; Outgoing = outgoingRequest; }