Exemplo n.º 1
0
 public void Start(IBundleContext context)
 {
     Context = context;
     ExtensionService = context.GetFirstOrDefaultService<IExtensionService>();
     WeChatProxyContainer = new WeChatProxyContainer();
     WeChatMenuContainer = new WeChatMenuContainer();
     WeChatProxyService = new WeChatProxyService();
     context.AddService<IWeChatProxyService>(WeChatProxyService);
 }
Exemplo n.º 2
0
 public void Start(IBundleContext context)
 {
     Context              = context;
     ExtensionService     = context.GetFirstOrDefaultService <IExtensionService>();
     WeChatProxyContainer = new WeChatProxyContainer();
     WeChatMenuContainer  = new WeChatMenuContainer();
     WeChatProxyService   = new WeChatProxyService();
     context.AddService <IWeChatProxyService>(WeChatProxyService);
 }