本文整理汇总了C#中IPlugin.GetAttribute方法的典型用法代码示例。如果您正苦于以下问题:C# IPlugin.GetAttribute方法的具体用法?C# IPlugin.GetAttribute怎么用?C# IPlugin.GetAttribute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPlugin
的用法示例。
在下文中一共展示了IPlugin.GetAttribute方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public static void Init(IPlugin plugin)
{
app = plugin;
PluginAttr = plugin.GetAttribute();
initCfg(PluginAttr);
InitWeixin(PluginAttr.Settings);
//提供微信支付信息
var weixinPay_PartnerId = PluginAttr.Settings["WeixinPay_PartnerId"];
var weixinPay_Key = PluginAttr.Settings["WeixinPay_Key"];
var weixinPay_AppId = PluginAttr.Settings["WeixinPay_AppId"];
var weixinPay_AppKey = PluginAttr.Settings["WeixinPay_AppKey"];
var weixinPay_TenpayNotify = PluginAttr.Settings["WeixinPay_TenpayNotify"];
var tenPayV3_MchId = PluginAttr.Settings["TenPayV3_MchId"];
var tenPayV3_Key = PluginAttr.Settings["TenPayV3_Key"];
var tenPayV3_AppId = PluginAttr.Settings["TenPayV3_AppId"];
var tenPayV3_AppSecret = PluginAttr.Settings["TenPayV3_AppSecret"];
var tenPayV3_TenpayNotify = PluginAttr.Settings["TenPayV3_TenpayNotify"];
var weixinPayInfo = new TenPayInfo(weixinPay_PartnerId, weixinPay_Key, weixinPay_AppId, weixinPay_AppKey, weixinPay_TenpayNotify);
TenPayInfoCollection.Register(weixinPayInfo);
var tenPayV3Info = new TenPayV3Info(tenPayV3_AppId, tenPayV3_AppSecret, tenPayV3_MchId, tenPayV3_Key,
tenPayV3_TenpayNotify);
TenPayV3InfoCollection.Register(tenPayV3Info);
}