public static BotVarProvider CreateBotVarProvider(PlTerm bot, PlTerm nameSpace, PlTerm getter, PlTerm setter, PlTerm keyGetter) { BotVarProvider provider = new BotVarProvider("user", nameSpace.Name, getter.Name, setter.Name, keyGetter.Name); ScriptManager.AddGroupProvider((ICollectionRequester)PrologCLR.GetInstance(bot), provider); return(provider); }
public static BotVarProvider CreateBotVarProvider(PlTerm bot, PlTerm nameSpace, PlTerm getter, PlTerm setter, PlTerm keyGetter) { BotVarProvider provider = new BotVarProvider("user", nameSpace.Name, getter.Name, setter.Name, keyGetter.Name); ScriptManager.AddGroupProvider((ICollectionRequester) PrologCLR.GetInstance(bot), provider); return provider; }