从计划任务代理访问主项目中的数据 [英] accessing data in main project from a scheduledtaskagent

查看:31
本文介绍了从计划任务代理访问主项目中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从后台代理项目访问我的主项目中的数据.问题是我不能添加对后台代理项目的引用,因为它会创建一个循环引用并且这是不允许的(我在主项目中有一个对代理的引用).我该如何解决这个问题?能解决吗?

i would like to access data in my main project from the background agent project. The thing is that i can't add a refference to the background agent project because it will create a circular refference and that is not permited (i have a refference to the agent in the main project). How can i resolve this issue? Can it be resolved?

推荐答案

您的主应用程序不会与您的后台代理同时运行,因此您无法在两者之间进行通信.但是,您可以在它们之间共享代码,为此您应该将公共代码放在类库中.为此,请右键单击您的解决方案并选择添加项目"=>Windows Phone 类库"

Your main application will not be running at the same time as your background agent, so you cannot communicate between the two. You can however share code between them, to do this you should place your common code within a class library. To do this, right click your solution and select "Add Project" => "Windows Phone Class Library"

这篇关于从计划任务代理访问主项目中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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