コード例 #1
0
        public static SyndicationFeed GetBuildEventCode()
        {
            string urlOfList = string.Format("{0}{1}/{2}", Framework.Web.WebFormApplicationApplicationVariables.WebAppRootUrl, "BuildEventCode", "WPCommonOfBuildEventCode");

            SyndicationFeed feed = new SyndicationFeed(MSBuildLogsExtended.Resources.UIStringResourcePerEntityBuildEventCode.Rss_Title_of_BuildEventCode, MSBuildLogsExtended.Resources.UIStringResourcePerEntityBuildEventCode.Rss_Description_of_BuildEventCode, new Uri(urlOfList));

            //feed.Authors.Add(new SyndicationPerson(MSBuildLogsExtended.Resources.UIStringResourcePerEntityBuildEventCode.));
            //feed.Categories.Add(new SyndicationCategory(MSBuildLogsExtended.Resources.UIStringResourcePerEntityBuildEventCode.));

            MSBuildLogsExtended.CommonBLL.BuildEventCodeService instance = new MSBuildLogsExtended.CommonBLL.BuildEventCodeService();

            var request = new MSBuildLogsExtended.CommonBLLEntities.BuildEventCodeRequestMessageUserDefinedOfAll();

            request.QueryPagingSetting            = new Framework.EntityContracts.QueryPagingSetting(1, 10);
            request.QueryOrderBySettingCollection = new Framework.EntityContracts.QueryOrderBySettingCollection("LastModifiedDateTime:DESC");
            var fromDataSource = instance.GetCollectionOfRssItemOfAll(request);

            List <SyndicationItem> items = new List <SyndicationItem>();

            if (fromDataSource.BusinessLogicLayerResponseStatus == Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.MessageOK)
            {
                foreach (var datasourceItem in fromDataSource.Message)
                {
                    //string urlOfEntityRelated = string.Format("{0}{1}/{2}?{3}", MSBuildLogsExtended.Resources.UIStringResourcePerEntityBuildEventCode.HomeOwner, "BuildEventCode", "WPEntityRelatedOfBuildEventCode", "{Query String Parameters}");
                    SyndicationItem item1 = new SyndicationItem(
                        datasourceItem.Title,
                        datasourceItem.Description,
                        new Uri(urlOfList), // should be urlOfEntityRelated, should enter query string parameters
                        datasourceItem.IdentifierInString,
                        datasourceItem.PubDate);

                    items.Add(item1);
                }
            }

            feed.Items = items;
            return(feed);
        }
コード例 #2
0
 /// <summary>
 /// Gets the single of entity of "All".
 /// </summary>
 /// <param name="request">The request.</param>
 /// <returns></returns>
 public Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageRssItemCollection GetSingleOfRssItemOfAll(
     MSBuildLogsExtended.CommonBLLEntities.BuildEventCodeRequestMessageUserDefinedOfAll request)
 {
     return(base.Channel.GetSingleOfRssItemOfAll(request));
 }
コード例 #3
0
 /// <summary>
 /// Exists the of entity of "All".
 /// </summary>
 /// <param name="request">The request.</param>
 /// <returns>true if exists any, otherwise false</returns>
 public Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageBoolean ExistsOfRssItemOfAll(
     MSBuildLogsExtended.CommonBLLEntities.BuildEventCodeRequestMessageUserDefinedOfAll request)
 {
     return(base.Channel.ExistsOfRssItemOfAll(request));
 }
コード例 #4
0
 /// <summary>
 /// Gets the collection of entity of "All".
 /// </summary>
 /// <param name="request">The request.</param>
 /// <returns></returns>
 public Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageNameValuePairCollection GetCollectionOfNameValuePairOfAll(
     MSBuildLogsExtended.CommonBLLEntities.BuildEventCodeRequestMessageUserDefinedOfAll request)
 {
     return(base.Channel.GetCollectionOfNameValuePairOfAll(request));
 }
コード例 #5
0
 /// <summary>
 /// Gets the single of entity of "All".
 /// </summary>
 /// <param name="request">The request.</param>
 /// <returns></returns>
 public MSBuildLogsExtended.CommonBLLEntities.BuildEventCodeResponseMessageBuiltIn GetSingleOfEntityOfAll(
     MSBuildLogsExtended.CommonBLLEntities.BuildEventCodeRequestMessageUserDefinedOfAll request)
 {
     return(base.Channel.GetSingleOfEntityOfAll(request));
 }
コード例 #6
0
 /// <summary>
 /// Gets the count of entity of "All".
 /// </summary>
 /// <param name="request">The request.</param>
 /// <returns>the count</returns>
 public Framework.CommonBLLEntities.BusinessLogicLayerResponseMessageInteger GetCountOfEntityOfAll(
     MSBuildLogsExtended.CommonBLLEntities.BuildEventCodeRequestMessageUserDefinedOfAll request)
 {
     return(base.Channel.GetCountOfEntityOfAll(request));
 }
コード例 #7
0
        public void GetDropDownContentsOfBuildEventCode_1()
        {
            MSBuildLogsExtended.WcfContracts.IBuildEventCodeServiceAsyn _Instance = MSBuildLogsExtended.WcfContracts.WcfServiceResolverAsyn.ResolveWcfServiceBuildEventCode();

            AsyncCallback asyncCallback = delegate(IAsyncResult result)
            {
                try
                {
#if WINDOWS_PHONE
                    DispatcherHelper.Initialize();
#endif
                    DispatcherHelper.CheckBeginInvokeOnUI((Action) delegate()
                    {
                        var responseMessage = _Instance.EndGetCollectionOfNameValuePairOfAll(result);
                        Framework.NameValueCollection collection = responseMessage.Message;
                        this.DropDownContentsOfBuildEventCode_1.Clear();
                        if (collection != null)
                        {
                            foreach (Framework.NameValuePair item in collection)
                            {
                                this.DropDownContentsOfBuildEventCode_1.Add(item);
                            }
                        }
                    });
                }
                catch (Exception ex)
                {
                }
            };

            try
            {
                MSBuildLogsExtended.CommonBLLEntities.BuildEventCodeRequestMessageUserDefinedOfAll _Request = new MSBuildLogsExtended.CommonBLLEntities.BuildEventCodeRequestMessageUserDefinedOfAll()
                {
                    Critieria                      = new MSBuildLogsExtended.CommonBLLEntities.BuildEventCodeChainedQueryCriteriaAll(),
                    QueryPagingSetting             = new Framework.EntityContracts.QueryPagingSetting(-1, -1),
                    QueryOrderBySettingCollection  = new Framework.EntityContracts.QueryOrderBySettingCollection(null),
                    BusinessLogicLayerRequestID    = Guid.NewGuid().ToString(),
                    BusinessLogicLayerRequestTypes = Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Search,
                };

                _Instance.BeginGetCollectionOfNameValuePairOfAll(_Request, asyncCallback, null);
            }
            catch (Exception ex)
            {
            }
        }