change name
This commit is contained in:
parent
3b68ef75b6
commit
8c2b77b45d
|
|
@ -17,6 +17,6 @@ public interface IConversationStateService
|
|||
int activeRounds = -1, string valueType = StateDataType.String, string source = StateSource.User, bool readOnly = false);
|
||||
void SaveStateByArgs(JsonDocument args);
|
||||
bool RemoveState(string name);
|
||||
void CleanStates(params string[] keepStates);
|
||||
void CleanStates(params string[] excludedStates);
|
||||
void Save();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ public class ConversationStateService : IConversationStateService, IDisposable
|
|||
return true;
|
||||
}
|
||||
|
||||
public void CleanStates(params string[] keepStates)
|
||||
public void CleanStates(params string[] excludedStates)
|
||||
{
|
||||
var routingCtx = _services.GetRequiredService<IRoutingContext>();
|
||||
var curMsgId = routingCtx.MessageId;
|
||||
|
|
@ -279,7 +279,7 @@ public class ConversationStateService : IConversationStateService, IDisposable
|
|||
foreach (var key in _curStates.Keys)
|
||||
{
|
||||
// skip state
|
||||
if (keepStates.Contains(key))
|
||||
if (excludedStates.Contains(key))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue