public void Start(IBundleContext context)
 {
     Context = context;
     ExtensionService = context.GetFirstOrDefaultService<IExtensionService>();
     WeChatProxyContainer = new WeChatProxyContainer();
     WeChatMenuContainer = new WeChatMenuContainer();
     WeChatProxyService = new WeChatProxyService();
     context.AddService<IWeChatProxyService>(WeChatProxyService);
 }
Esempio 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);
 }