门户网站的移动应用 [英] Mobile app for a portal

查看:103
本文介绍了门户网站的移动应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我工作的公司有一个门户,现在我正计划为此门户开发Windows Phone 7应用程序.
有人建议可以使用Web请求或Web服务来完成此操作.
我的疑问是如何在Web服务中调用可在应用程序中使用的asp.net事件.

我不确定如何在Windows Phone应用程序和门户之间建立链接.
谁能建议我解决方案?

谢谢.

Hi,
The company in which I work has a portal and now I am planning to develop a windows phone 7 app for this portal.
Some one suggested that it can be done using web request or web service.
My doubt is how do I call a asp.net event in web service which I can use in the app.

I am not sure of how to establish a link between windows phone app and the portal.
Can anyone suggest me the solution?

Thanks.

推荐答案

未调用事件,它们不是方法.它们仅在声明它们的类中被调用.即使在派生类中也不能调用事件.顺便说一句,与为防止滥用事件机制而引入的重要防呆"功能常规"委托实例相比,这是一个非常重要的限制.

就是说,这根本不是针对客户端开发的活动.从使用事件的一侧使用事件的想法是向其添加处理程序.用户的代码可以将任意数量的事件处理程序添加到某个事件的调用列表中.该事件仅在声明它的地方被调用(引发").在这种情况下,将立即调用整个处理程序集.完全不关心服务器事件的调用.

我希望它给您一个基本的想法.因此,在开始为该门户网站开发客户端软件(以及几乎所有其他.NET开发)之前,您需要使用一些基本手册,很好地学习一些基础知识,特别是有关委托和事件的章节.目前,您可能还没有准备好.不用担心:您可以克服这个问题,并很快消除所有这些困惑.

—SA
Events are not called, they are not methods. They are invoked, and only in the class where they are declared. You cannot invoke a event even in the derived classes. By the way, this is a very important limitation compared to "regular" delegate instances, an important fool-proof feature, introduced to prevent the abuse of the event mechanism.

That said, this is not an activity for your client-side development at all. The idea of using events from the side where the events are used is adding handlers to it. The user''s code can add any number of event handlers to an invocation list of some event. The event is only invoked ("raised") where it was declared; in this case, the whole set of handlers is called at once. The invocation of the server''s event is not your concern at all.

I hope it gives you a basic idea. So, before getting to development of client-part software for that portal (and nearly any other .NET development), you need to learn some basics very well, in particular the chapters on delegates and events, using some elementary manuals. At this moment, you are probably not quite ready. Not to worry: you can overcome this and clear all those confusions pretty soon.

—SA


这篇关于门户网站的移动应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆