Skip to content

Commit 30b2eb6

Browse files
committed
feat: trans options with SetPassthroughHeaders
1 parent feb1774 commit 30b2eb6

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/Dtmcli/Msg/Msg.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,11 @@ public Msg SetBranchHeaders(Dictionary<string, string> headers)
133133
this._transBase.BranchHeaders = headers;
134134
return this;
135135
}
136+
137+
public Msg SetPassthroughHeaders(List<string> headers)
138+
{
139+
this._transBase.PassthroughHeaders = headers;
140+
return this;
141+
}
136142
}
137143
}

src/Dtmcli/Saga/Saga.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,11 @@ public Saga SetBranchHeaders(Dictionary<string, string> headers)
9696
this._transBase.BranchHeaders = headers;
9797
return this;
9898
}
99+
100+
public Saga SetPassthroughHeaders(List<string> headers)
101+
{
102+
this._transBase.PassthroughHeaders = headers;
103+
return this;
104+
}
99105
}
100106
}

src/Dtmcli/Tcc/Tcc.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,11 @@ public Tcc SetBranchHeaders(Dictionary<string, string> headers)
9898
this._transBase.BranchHeaders = headers;
9999
return this;
100100
}
101+
102+
public Tcc SetPassthroughHeaders(List<string> headers)
103+
{
104+
this._transBase.PassthroughHeaders = headers;
105+
return this;
106+
}
101107
}
102108
}

0 commit comments

Comments
 (0)