File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments