This question is locked. New answers and comments are not allowed.
Hi I have a web service method like this:
public IEnumerable<TagData> GetTagsByTagType(string tagType) {
Log.Debug("GetTagsByTagType Start");
IEnumerable<TagData> query = new List<TagData>();
try {
using (IObjectScope scope = new PhoenixObjectScopeProvider().GetNewObjectScope()) {
query = from tag in scope.Extent<Tag>()
join tagContent in scope.Extent<TagContent>()
on tag equals tagContent.Tag
where tag.TagType == tagType
select new TagData {
TagId = tag.TagId,
TagType = tag.TagType,
Tag = tagContent.TagData
};
}
}
catch (Exception e) {
Log.Error("GetTagsByTagType Exception.", e);
}
return query;
}
I use WCFStorm to call the method. In VS i set a break point at this method. When execution his the query line something strange happens. The return query line is never hit. An exception is not caught. It's like the method just stops executing at that point. Any ideas?
public IEnumerable<TagData> GetTagsByTagType(string tagType) {
Log.Debug("GetTagsByTagType Start");
IEnumerable<TagData> query = new List<TagData>();
try {
using (IObjectScope scope = new PhoenixObjectScopeProvider().GetNewObjectScope()) {
query = from tag in scope.Extent<Tag>()
join tagContent in scope.Extent<TagContent>()
on tag equals tagContent.Tag
where tag.TagType == tagType
select new TagData {
TagId = tag.TagId,
TagType = tag.TagType,
Tag = tagContent.TagData
};
}
}
catch (Exception e) {
Log.Error("GetTagsByTagType Exception.", e);
}
return query;
}
I use WCFStorm to call the method. In VS i set a break point at this method. When execution his the query line something strange happens. The return query line is never hit. An exception is not caught. It's like the method just stops executing at that point. Any ideas?