Skip to content

Commit de8e251

Browse files
committed
Fix double implementation of ErrorResilientDialogContextStore after the merge from develop
1 parent 69bd245 commit de8e251

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

CSharp/Library/Dialogs/DialogContextStore.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -150,33 +150,4 @@ void IDialogContextStore.Save(IDialogContextInternal context)
150150
this.store.Save(context);
151151
}
152152
}
153-
154-
public sealed class ErrorResilientDialogContextStore : IDialogContextStore
155-
{
156-
private readonly IDialogContextStore store;
157-
158-
public ErrorResilientDialogContextStore(IDialogContextStore store)
159-
{
160-
SetField.NotNull(out this.store, nameof(store), store);
161-
}
162-
163-
public void Save(IDialogContext context, IBotDataBag bag, string key)
164-
{
165-
this.store.Save(context, bag, key);
166-
}
167-
168-
public bool TryLoad(IBotDataBag bag, string key, out IDialogContext context)
169-
{
170-
try
171-
{
172-
return this.store.TryLoad(bag, key, out context);
173-
}
174-
catch (Exception)
175-
{
176-
// exception in loading the serialized context data
177-
context = null;
178-
return false;
179-
}
180-
}
181-
}
182153
}

0 commit comments

Comments
 (0)