8.1 - Need behavior of a task FIFO queue that can update the UI

I need behavior of a task FIFO queue that can update the UI.
Background Task seems a bit overkill.
ThreadPool is not available in 8.1.
I was considering an implementation using ConcurrentQueue<Action> in a long running task.
Design pattern suggestions?
Thanks

Use the Windows Runtime's Windows.System.Threading.ThreadPool
, not .Net's System.Threading.ThreadPool.
You can use Intellisense to help find the reference if you don't explicitly fully qualify the class. Select the red-squiggled ThreadPool symbol in the editor and a lightbulb (on VS2015) or a blue box (on VS2013) widget will appear to offer fixes. Click for
a dropdown or use the Ctrl+. keyboard accelerator. Here's the VS2015 version:
See my video blog
http://channel9.msdn.com/Series/Windows-Store-Developer-Solutions/Visual-Studios-Red-Squigglies for a visual overview of this feature.

Similar Messages

  • Need name of a function module or BAPI to update the Tax Classification val

    Hi Guru's
    Need name of a function module or BAPI to update the Tax Classification value for Material master.
    Thanks in advance.

    Hi
    U can try to use BAPI_MATERIAL_SAVEREPLICA
    Max

  • Need help unjailbreaking my iphone 3GS so I can update to iOS5

    My BIL helped me jailbreak a few months ago so I could tether.  I no longer need to tether, and I do need to update the iOS.  I have tried updating, and keep getting error message 1394.  I looked up the fix for that, and everyone says to download Tiny Umbrella.  I did that (v5.01.00).  But is that ok to use if I originally used redsnow to jailbreak? I'm worried I'm messing up my iphone, and won't be able to get my stuff back.  Please assist.  Thanks!
    Oh, and I have iOS version 4.3.1. 

    That's not a problem bro... all you need to do is to hold on your power bottom for 3 sec. (keep hold) after hold your home bottom for 7 sec. (with your power bottom). after 7 sec. release power bottom (only) and keep hold press your home bottom. then DFU mode... now you can update the latest software,,, keep watching youtube for more info.

  • Need to know of a method / process that can be used to send the same msg to all those appearing in my email listings with the same extension after the "@" sign in their address(es) on my macbook [e.g., with "@gov.ca"; Snow Leopard].

    Need to know of a method / process that can be used to send the same msg to all those appearing in my email listings with the same extension after the "@" sign in their address(es) on my macbook [Snow Leopard].

    If you simply want to send the exact same message to everyone in your address book with emails ending in "@whatever.com", you can do the following:
    Create an email with subject, message and attachments but no addresses
    Open Address Book, All Contacts
    Search in Address Book for @whatever.com
    Select the results and drag them into the To: or Bcc: field of the email. If Bcc: then put your email address in the To: field.
    Send the email
    This will not personalize the emails (such as with "Dear firstname:" at the top of the message) but it will let you send an idential message to everyone who meets your criteria.

  • My phone has just gone dead need to revive my phone, someone calling me can hear the dailer tone but i am not able to hear any ring, kindly suggest. the monitor is all blank

    my phone has just gone dead need to revive my phone, someone calling me can hear the dailer tone but i am not able to hear any ring, kindly suggest. the monitor is all blank

    Thank you so much you really hepled, my phone is working again phew!!!

  • SharePoint Provider Hosted App that can update existing SharePoint Task List

    Note: I am unable to take advantage of the Microsoft.SharePoint library directly. Adding a reference results in a 32bit/64bit library mismatch error.
    I have to find a solution that uses only the Microsoft.SharePoint.Client extension. 
    I am looking for example code where provider-hosted SharePoint App loads a SharePoint Task List View that allows users to interact with the tasks.
    So far I have only been able to programmatically create and then load the SharePoint tasks list, create and populate a DataTable object and set the datasource of a GridView object to that DataTable.
    I am unable to trigger my method linked to my checkbox within the gridview.
    Ideally I would like to just customize a Task View that already has this functionality.
    Here is my default.aspx.cs code-behind file:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Data;
    using SP = Microsoft.SharePoint.Client;
    namespace SPAppBasicWeb
    public partial class Default : System.Web.UI.Page
    protected void Page_PreInit(object sender, EventArgs e)
    Uri redirectUrl;
    switch (SharePointContextProvider.CheckRedirectionStatus(Context, out redirectUrl))
    case RedirectionStatus.Ok:
    return;
    case RedirectionStatus.ShouldRedirect:
    Response.Redirect(redirectUrl.AbsoluteUri, endResponse: true);
    break;
    case RedirectionStatus.CanNotRedirect:
    Response.Write("An error occurred while processing your request.");
    Response.End();
    break;
    protected void Page_Load(object sender, EventArgs e)
    // The following code gets the client context and Title property by using TokenHelper.
    // To access other properties, the app may need to request permissions on the host web.
    var spContext = SharePointContextProvider.Current.GetSharePointContext(Context);
    using (var clientContext = spContext.CreateUserClientContextForSPHost())
    //clientContext.Load(clientContext.Web, web => web.Title);
    //clientContext.ExecuteQuery();
    //Response.Write(clientContext.Web.Title);
    SP.ClientContext cc = new SP.ClientContext("http://server/sites/devapps");
    SP.Web web = cc.Web;
    SP.List list = web.Lists.GetByTitle("General Tasks");
    SP.CamlQuery caml = new SP.CamlQuery();
    Microsoft.SharePoint.Client.ListItemCollection items = list.GetItems(caml);
    cc.Load<Microsoft.SharePoint.Client.List>(list);
    cc.Load<Microsoft.SharePoint.Client.ListItemCollection>(items);
    //try
    //const int ColWidth = 40;
    cc.ExecuteQuery();
    DataTable dt = new DataTable();
    dt.Columns.Add("Task Name", typeof(string));
    dt.Columns.Add("ID", typeof(int));
    foreach (Microsoft.SharePoint.Client.ListItem liTask in items)
    DataRow dr = dt.NewRow();
    dr["Task Name"] = liTask["Title"];
    dr["ID"] = liTask["ID"];
    //dr["chkTask"] = liTask["Checkmark"];
    dt.Rows.Add(dr);
    GridView1.DataSource = dt;
    GridView1.DataBind();
    protected void chkTask_CheckedChanged(object sender, EventArgs e)
    //add code here to update Task Item by ID
    Response.Write("checkbox event triggered");
    Here is my simple default.aspx:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SPAppBasicWeb.Default" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:GridView ID="GridView1" runat="server">
    <Columns>
    <asp:TemplateField>
    <ItemTemplate>
    <asp:CheckBox ID="chkTask" runat="server" OnCheckedChanged="chkTask_CheckedChanged" AutoPostBack="true" />
    </ItemTemplate>
    </asp:TemplateField>
    </Columns>
    </asp:GridView>
    </div>
    </form>
    </body>
    </html>
    http://www.net4geeks.com Who said I was a geek?

    Hi,
    Please try to modify your code as below:
    using (var clientContext = spContext.CreateUserClientContextForSPHost())
    SP.Web web = clientContext.Web;
    SP.List list = web.Lists.GetByTitle("General Tasks");
    SP.CamlQuery caml = new SP.CamlQuery();
    Microsoft.SharePoint.Client.ListItemCollection items = list.GetItems(caml);
    clientContext.Load(items);
    clientContext.ExecuteQuery();
    If the code still not works, I suggest you debug the code or following the blog below to create a Provider-Hosted App for SharePoint and read list items from SharePoint list.
    http://blogs.msdn.com/b/steve_fox/archive/2013/02/22/building-your-first-provider-hosted-app-for-sharepoint-part-2.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Need help with selecting an LCD TV that can wirelessly connect to my laptop

    I specifically need to have the ability to view my laptop's display wirelessly on the tv.  My office is going to use it as a presentation display so when I'm in a power point presentation on my laptop it is actually displayed on the tv.  Please let me know what tv's allow this or if there is an accessory I can purchase to make the connection.  I'm hoping there is a blue tooth type option or a USB receiver that can be used.

    I have an LG 55" TV that allows me to stream from my router to the TV via cat5.  It isDLNA compatible, so it can receive signals from any compatible device.
    If you find my post useful or informative, please click the icon below with the plus sign and star to give kudos. Thank you!

  • Need to know plugins name and matchname that run on the GPU

    Hi,
    I need to find all plugins (name and matchname) that works on the GPU.
    Currently I found Mettle ShapeShifter and VideoCopilot Elements.
    If you have a one of those plugins that run on the GPU, can you place it on a timeline, run this script and paste the result here ?
    Thanks
    function findFX(){
        function gothruEachLayer(comp){
            var compFX = []
            for (var i = 1; i <= comp.numLayers; i++) {
                var fx = comp.layer(i).property("Effects")
                    for (var ii = 1; ii <= fx.numProperties; ii++) {
                         var fxName = fx.property(ii).matchName;
                         compFX.push("[" +fx.property(ii).matchName +":"+fx.property(ii).name+"]")
            return compFX
        var myWindow = new Window ("dialog");
        var myMessage = myWindow.add ("edittext", [0, 0, 1200, 1000], gothruEachLayer(app.project.activeItem), {multiline: true});
        myWindow.show ( );
    findFX()

    thanks, there might be a some of those that run on the GPU. I'll need to finish my search in the next week or so.
    I think I'll have to download some trials to do that. But first I'll have to find out which plugin are GPU accelerated.
    Right now, I know that VideoCopilot Element is, as both Mettle plugins Freeform and Shapeshifter, there is both CROSSPHERE .Koizumi plugins that are available on aescripts.com.
    There is also the new CS6 renderer, ADBE Picasso.

  • Where do I look to find the purchases I am told I need to transfer to iTunes Library before I can update from 7.0.4 to 7.0.6.

    Before I can update  my iPad from 7.0.4 to 7.0.6 I am told I must transfer some purchases to iTunes library. How do I identify these purchases, find them and then transfer them to the iTunes library?

    You don't need to find them or identify them. iTunes does it for you. When that dialog box pops up, just click on Transfer Purchases to begin the process and iTunes will take care of all of it for you.
    New apps, songs, books, etc, ...anything that you downloaded since you last synced with iTunes will be transferred.

  • I designed a template in Indesign but need to save it in a format that can be easily updated by my client. What are my options?

    I designed a template in Indesign and tried to save it in Word for my client but the formatting is all messed up. I'm not surprised since Word has quite a bit of formatting restrictions. I am now thinking about PowerPoint. Do I have any other options? Thank you!

    helencia wrote:
    Do I have any other options?
    Other options for your InDesign-built template? Not really. It's only of use to a user of InDesign. If your client's need was an MS-Office template, you really should have just built it properly in the appropriate MS-Office application. There is no reason you can't; and it's your only remaining, truly viable "other option."

  • I need a newer version of pages. You can download the latest version of Pages from the Mac App Store.

    When I try to open up a page file, I am told to download a newer version, but when I go to Apps it tells me I am already instaled. So now I can not open any page files.  Please HELP!

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5/5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
    Pages 5.1 sometimes can not open its own files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has not only managed to confuse all its users, but also itself.
    Note: Apple has removed over 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • ???need to link 2 adobe ID's that belong to the same person. have over 100 books from old adobe id that will not open with new id??? jan

    ????i have an old and a new adobe ID and a new one. need to link them . i have over 100 books from old id that will not open now on my ereader.
    please help

    Hello,
    Yes this is possible.
    You can join both the adobe id's at: https://adeactivate.adobe.com/adept/en/JoinAccountLoginForm.jsp
    Thanks

  • I have had iPhoto on for days saying that its importing, but nothing is being imported, i  have tried the commas shif q and everything, its eating my battery and i need to turn off my mack so i can update my laptop.

    ive tried everything and nothing is working by the time i have wrote this 3 % of it is gone and its been 5 min, need help asap

    Apple Menu ==> force quit
    LN

  • I need DVD Studio Pro and another app that can do .*** or .ssa Files

    Are there any good Mac OS X apps (preferably free to cheap?) that will export .*** or .ssa files of my subtiles?

    To answer the question of why retail DVDs look so good... because they have more money at their disposal. You don't really think these are compressed with a program included with a $79 suite? Or even DVDSP. Commercial DVDs typically use a hardware encoder. And they ain't cheap.
    In any case, we would need a better defination than "looks like sh*t". Color? Transistions? Pixelated? What resolution are you using? Next, are you using any motion (Ken Burns effect) on the images. If not, you should, even if only a little. DV was developed for moving images, not stills. I create slideshows fairly regularly with acceptable reuslts. Either we need to find something in your workflow, or maybe you do have too high an expectation. This may provide some insights into the complexities of a DVD:
    http://docs.info.apple.com/article.html?artnum=24485
    Mike

  • Can my colleagues access my itunes account and all of the apps in there from their own pcs? What we really need is a shared itunes account so that anyone in the office can add apps to the account and everyone else will be able to access it?

    I have an itunes account to update the office ipad. Now we have more of them can my colleagues access my itunes account including the apps to update their ipads with? it seems silly for everyone to have a seperate account and purchase apps that i have already bought.  We just want to share and update one account that everyone can use and access from their own pc.

    Unless I am missing the point here - or in the event that there are different terms and conditions for the use of iPad in the Enterprise with regard to iTunes purchases - once you have purchased an app - you are free to download that app again - at no charge - to as many iDevices as you desire - as long as you are using the same Apple ID and iTunes account that you used to make the original purchase.
    So the short answer to the question - IMHO - is Yes! My wife, my daughter and I share one iTunes account and we download apps onto four different iDevices - and only pay for the apps once. The purchases are tied to the Apple/iTunes account and not to the PC or the iDevice.
    The only caveat to this point is - I have no idea how Apple handles purchase for businesses meaning that I don't know if businesses are subject to the same terms and conditions as we "everyday" users.
    Maybe the company could set up one iTunes account and you could all share from there but I still don't see why this can't be done. However, that is why I suggest that this question might be better served being posted in the iPad in the Enterprise section of the ASC.

Maybe you are looking for

  • 10.5.5 makes xterm fg/bg colors reversed

    I've had several command lines for starting xterms from the Applications menu in the X11 menu for years. On a MacBook and an iMac I had to reverse the colors for the -bg and -fg flags to get the xterms to look the same today (after 10.5.5) as they di

  • A  tracking program

    I need some help please. I want to develop an application that can track somebody's movement with the help of a mobile phone that is possessed by the person being tracked. I should be able to see an icon moving on a map as the person moves from place

  • System Status check boxes into Quick view (using Tables)

    Dear Experts, Please suggest, whether there is any method to get System Status Checkboxes, into the selection screen, while creating a Quck View /Infoset query using Tables only. Regards Jogeswara Rao

  • Info Record Updates - Mass Update PO prices t-code?

    several info records were adjusted and i seem to recall a way to update any POs out there? is there a transaction that allows you to mass update PO pricing??

  • The application checks in file with RIDC slowly.

    When I checkin a 6.3MB file, my system is get into halted processing state. So I had no idea what's the problem.But when I checkin a small file, it works fine. If I check the same file with CIS, it is very fast. Do you have idea about it? Thank you v