<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Integration service :: Juice&#39;s documentation</title>
    <link>https://docs.pavellis.com/core/integration/index.html</link>
    <description>ℹ v9 update This feature has been updated in Juice v9. See Messaging for the current API. The original v8.5.0 content is preserved here.&#xA;Integration event service In the IntegrationEventLog section, we talked about atomicity and resiliency when publishing to the event bus, followed by each step of the process. In this section, we will package the steps of publishing events and updating event states into IIntegrationEventService service, and then combine them with MediatR behavior for transaction processing.</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 03 Apr 2023 20:24:09 +0700</lastBuildDate>
    <atom:link href="https://docs.pavellis.com/core/integration/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Integration service (v8.5.0)</title>
      <link>https://docs.pavellis.com/core/integration/v8.5.0/index.html</link>
      <pubDate>Mon, 03 Apr 2023 20:24:09 +0700</pubDate>
      <guid>https://docs.pavellis.com/core/integration/v8.5.0/index.html</guid>
      <description>⚠ Archived — v8.5.0 This page describes the pre-v9 Juice API. For current documentation see Messaging.&#xA;Integration event service In the IntegrationEventLog section, we talked about atomicity and resiliency when publishing to the event bus, followed by each step of the process. In this section, we will package the steps of publishing events and updating event states into IIntegrationEventService service, and then combine them with MediatR behavior for transaction processing.&#xA;public interface IIntegrationEventService { Task PublishEventsThroughEventBusAsync(Guid transactionId); Task AddAndSaveEventAsync(IntegrationEvent evt); } public interface IIntegrationEventService&lt;out TContext&gt; : IIntegrationEventService where TContext : DbContext, IUnitOfWork { TContext DomainContext { get; } /// &lt;summary&gt; /// Use specified transaction when working with transient DbContext /// &lt;/summary&gt; /// &lt;param name=&#34;evt&#34;&gt;&lt;/param&gt; /// &lt;param name=&#34;transaction&#34;&gt;&lt;/param&gt; /// &lt;returns&gt;&lt;/returns&gt; Task AddAndSaveEventAsync(IntegrationEvent evt, IDbContextTransaction transaction); }&#xD;Now the process steps will look like this:</description>
    </item>
  </channel>
</rss>