public object Repeat(object instance) { var handler = SafeLeoHandleSwitcher.Switch(AlgorithmKind)(SourceType); handler.SetObjInstance(instance); _handleHistory?.Invoke(handler); return(handler.GetInstance()); }
public object Repeat(IDictionary <string, object> keyValueCollections) { var handler = SafeLeoHandleSwitcher.Switch(AlgorithmKind)(SourceType); handler.New(); if (keyValueCollections != null && keyValueCollections.Any()) { foreach (var keyValue in keyValueCollections) { handler[keyValue.Key] = keyValue.Value; } } _handleHistory?.Invoke(handler); return(handler.GetInstance()); }