Async task conversion

I have a method which invokes a while loop with a condition defined as a specified time. The body of the loop must remain synchronous up to the very end, the last couple commands are a brutally long call into some other api. I know I can execute the body
of the loop synchronously over and over and queue the object it produces to be consumed by a parallel foreach as one option.
I do not want to exceed a defined threshold on the number of objects produced by the while loop, so one neat approach I saw was the second answer to http://stackoverflow.com/questions/22492383/throttling-asynchronous-tasks by
Noseratio.
I admit, I am new to async tasks and really not clear on the best approach to move out the small bit of code at the end of the loop into an async method. I assume I could run the loop entirely with the using context of a SemaphoreSlim and await
_semaphore.WaitAsync(); *after* the object is submitted for asynchronous completion so as not exceed the max number of tasks.
My confusion comes from the format of the new method containing the long waiting call I want moved out? I see so much literature on async/await/Task.FromResult etc?
In his second code block where he speaks of TPL Dataflow or Rx, why do I mostly see the pattern of a method with an async Task signature called from a method with an async void sig? Why not dispatch an asynchronous method directly and if needed, grab the
return if one needs to utilize the result?
Thanks!

Async and tasks is tricky.
It's easy to do simple stuff.  Quite easy to mess it up though.
When you try and do hard things then it can easily go wrong and be quite difficult to work out what's up.
I don't like the sound of putting ( what sounds like ) a very long call into a task this way.
If it's a very long call I would prefer async and callback to tasks.
I'd consider decoupling and putting it in a wcf or windows service.
If there are a load of these potentially then I might even decouple further by message queue so the "main" app and this processing can carry on at different speeds.
If there's a bunch of processing then windows workflow might be useful.
If there's a shed load of processing then putting it on a different machine and maybe even appfabric is something to consider.
That's probably well over the top though.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML

Similar Messages

  • ORA-03120: two-task conversion routine: integer overflow

    Hello DB Gurus!!
    Need your comments and help once again...
    I am trying to import a DUMP file into My Local Database ie. Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    The file exported was by different user on different Dabase of Oracle 10g i.e. Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    but while I am trying to import, I getting the following error..
    Please help.. and suggest the alternate..
    Warning: the objects were exported by XYZABC , not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    IMP-00008: unrecognized statement in the export file:
    . importing NEXOS_ADMIN_OLTP_API's objects into SHRICHANDRA_ABC123
    IMP-00003: ORACLE error 3120 encountered
    ORA-03120: two-task conversion routine: integer overflow
    . importing NEXOS_ADMIN_OLTP_TAB's objects into SHRICHANDRA_XYZ123
    IMP-00003: ORACLE error 3120 encountered
    ORA-03120: two-task conversion routine: integer overflow
    Thanks in advance..

    Thank Rajneesh,
    I suspect the same issue as you did, But unfortunately I don't have much option available, as other side all are production DB so All I can do is pull from there that is export and import to my local where I am stuck!!!
    Thanks..

  • ORA-03120 :two-task conversion routine:integer overflow Vendor code 3120

    Hi,
    I got below mentioned error message, while i run the procedure in sql developer
    ORA-03120 :two-task conversion routine:integer overflow Vendor code 3120

    What version of the database are you on? 9.2.0.8 for a guess?
    >
    ORA-03120 is associated with bug 5671074 on Oracle Enterprise Edition; Version 9.2.0.8, occurring on any platform:
    After applying the 9.2.0.8 patchset, compilation of functions and/or materialized view refreshes that reference remote databases via database links start failing with:
    ORA-04052: error occurred when looking up remote object OMS.PREMISE@JEAUSER_OMPR_L.WORLD
    ORA-00604: error occurred at recursive SQL level 1
    ORA-03120: two-task conversion routine: integer overflow
    ORA-02063: preceding line from JEAUSER_OMPR_L
    Bug 5671074 "ORA-4052/ORA-3106 on Create / Refresh of Materialized View", can cause this problem. Contrary to the bug abstract and description, this bug does not just apply to materialized view creation and refresh. It can occur for any PL/SQL that references a remote object via database link where the 'Endianness' of the two platforms differs. If one platform is 'Big-Endian', and another platform is 'Little-Endian', then this bug can be triggered between them. A list of the endianness of different platforms can be obtained from the following query (note that the v$transportable_platform view is only available in 10.1 and above):
    To resolve ORA-03120, this solution is given:
    To implement the solution, it will be necessary to apply the one-off patch for Bug 5671074 to the 9.2.0.8 database. One-off patches to 9.2.0.8 for most platforms are already available for download on MOSC. Bug 5671074 to the 9.2.0.8 database. One-off patches to 9.2.0.8 for most platforms are already available for download on MOSC.
    >
    If not, post more information: {message:id=9360002}

  • Multiple Async Task Method in single worker role

    Hi all,
    I want to combine two more Async task method in single Worker role project .i.e.
          public override void Run()
                    this.RunAsyncForInvoice(this.cancellationTokenSource.Token).Wait();
                    this.RunAsyncForStatisticalJournal(this.cancellationTokenSource.Token).Wait();           
    but i tried something above like this but it starts only first async method, i want to start both methods, please give me a suggestion to do this requirement.
    jeganna

    Hi jeganna,
    Thanks for your posting!
    In additional, as Bhushan said, you also refer to this code sample from this page(https://azureproviders.codeplex.com/wikipage?title=MultiThreadedWorkerRole%20project
    Another way, I think you could add your Async method into the Task,
    public override void Run()
    var tasks = new List<Task>();
    tasks.Add(RunTask1Async());
    tasks.Add(RunTask2Async());
    Task.WaitAll(tasks.ToArray());
    Hope that helps.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can solve this ORA-03120: two-task conversion routine: integer overflow

    Hello everybody,
    I'm writing this query "SELECT rowid from <mytable>" and I get this error: ORA-03120
    Does anybody know how can i solve it?
    Thanks in advice

    Here is the cause and action as suggested in the Oracle Error Guide...please see if it helps you to fix the error
    ORA-03120:two-task conversion routine:integer overflow
    Cause: An integer value in an internal Oracle structure overflowed when being sent or received over a heterogeneous connection. This can happen when an invalid buffer length or too great a row count is specified. It usually indicates a bug in user application.
    Action: Check parameters to Oracle calls. If the problem recurs, reduce all integer parameters, column values not included, to less than 32767
    Regards,
    Murali Mohan

  • Async Task with WhenAll() performance is off.

    Can anyone explain to me why my TIMINGS for test #2 operation is so SCREWED up
    370ms
    310ms  <---  this one should not be this slow.
    143ms
    119ms
    I have two methods...BOTH write the exact same byte array to a specified filename....(I've tried 5M & 10M file)
    One is synchronous and uses stream.write()
    using (FileStream strm = new FileStream(path, FileMode.Create, FileAccess.Write,
    FileShare.None, 4096, useAsync: false))
    strm.Write(text, 0, text.Length);
    ...the other is async and uses await stream.WriteAsync
    public static async Task WriteBigFileAsync(string path,
    byte[] text)
    using (FileStream strm = new FileStream(path, FileMode.Create, FileAccess.Write,
    FileShare.None, 4096, useAsync: true))
    await strm.WriteAsync(text, 0, text.Length);
    4 different test methods:
    1 calls Synch method x times. (set at 25 right now)
    for (int i = 0; i < numTimes; i++)
    WriteBigFile(Path.Combine(dir,
    Path.GetRandomFileName()), text);
    Next calls Asynch x times....firing all of them concurrently (if poss)...and then waiting until all are complete
    var tasks = new List<Task>();
    for (int i = 0; i < numtimes; i++)
    Task t = WriteBigFileAsync(Path.Combine(dir, Path.GetRandomFileName()), text);
    tasks.Add(t);
    await Task.WhenAll(tasks.ToArray());
    3rd uses PLINQ to throw them out to the thread pool, but calls Synchronous method
    Parallel.For(0, numTimes, (x) => WriteBigFile(Path.Combine(dir, Path.GetRandomFileName()), text));
    4rd is the same but calls Asynchronous method.
    Parallel.For(0, numTimes, async (x) => await WriteBigFile(Path.Combine(dir, Path.GetRandomFileName()), text));
    I KNOW that the best practice method for I/O intensive operations is to use async await.
    I KNOW that Parallel.For has the potential to gain great performance, but at the expense of a bunch of new threads which will just end up SITTING there while the file writes anyway.
    But WHY is the performance for the Asynchronous call so poor?
    And ideas would be appreciated.

    >I KNOW that the best practice method for I/O intensive operations is to use async await.
    But you need to understand _why_ it's a best practice.  Writing to a file using asynchronous IO is no faster than writing with synchronous IO.  The only difference is whether your thread blocks while waiting on the IO to complete.  Not blocking
    threads can help make your middle tier application scale better, and it can help keep a UI responsive.  But it doesn't make the IO any faster.
    All these methods are going to be gated by the throughput of your storage device, not your choice of API.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Test Stand async Task bool

    I'm trying to learn more about NI Test Stand and calling a .NET Method in a test sequence.  I reviewed and understand the basic examples where you can call something like below...
    public bool DoSomething(out string result, out string error) { //...}
    I have a third-party libary and it includes some async Methods that must be called using the async/await feature that was introduced in .NET 4.5.  When using async, you can not use the out keyword in arguments, so I would have to modify the Method above to something like this...
    public Task<Tuple<bool, string, string>> DoSomething() { /.. }
    So my question is... does anyone know how to call into a .NET library with Test Stand and get the values that are returned via the async Task?  Any basic examples are appreciated.
    BTW, it does not have to be complex like above.  If you can explain something like Task<bool>, it would help, as well.
    Thanks.

    I haven't tried this specific case and am not familiar with the Task API, but you should be able to store the return value of that method in a TestStand Object Reference variable. Then, in a later step, select the class Task<Tuple<bool, string, string>> from your assembly and use the reference you got from the previous call as the class object and then just access the various methods and properties of that class.
    Hope this helps,
    -Doug

  • ORA-03120: two-task conversion

    Hi,
    I have been using OEE V8.1.6.0.0 on SUN solaris recently we installed OracleV8.1.7 on linux .I have been noticing following error message in webserver log at client end.
    "Error: ora8.c:2161:ora_get_row: error in `OCILobRead ()': ORA-03120: two-task conversion routine: integer overflow"
    I know patching the db at server end is solution.WOndering if anyone could help how to fix this problem without upgrdating at server end.Does any one have oracleV8.1.6 client on Linux ?
    Thx

    I receive the message "ORA-03120: two-task
    : conversion routine: integer overflow".
    I got this error message when I was parameters from
    a stored procedure and I had my parameter-ordinals
    reversed like this:
    if first parameter is string and second int for instance
    (I don't remember the actual call anymore) and I would get data
    with the following statements
    sText=stmt.getString(2);
    i=stmt.getInt(1);
    Hope this helps
    Jani
    null

  • Two-task conversion routine: integer overflow

    Hi!
    We're using JBuilder to connect an Oracle database remotely.
    Everything's fine when I do a stmt.executeQuery() with a single
    SQL command (like select field1 from table1). But when I use a
    SQL command using two or more fields (like Select field1, field2
    from table1) I receive the message "ORA-03120: two-task
    conversion routine: integer overflow".
    Can anyone help us with it ? We're needing this information
    fast for our graduation work of the college.
    Thanks!
    null

    I am using 8.1.6 database and 6.0.8.11.3 forms.
    I found that if I change the query stored procedure from passing the result set in a cursor variable, to a table variable the problem seems to go away. We are still testing though...
    When openning a cursor variable in a "open cursor_x for <select statement>" statement do you need to explicitly close the cursor?
    Thanks,
    Darryl

  • Async-Sync conversion: JMS-SOAP-MAIL

    Hi all,
    I'm making a async-sync scenario:
    JMS-SOAP-MAIL
    The SOAP interface is synchronous and JMS and MAIL are asynchrnouse.
    I have configured the sender JMS adapter as following:
    Modules
    <b>1- AF_Modules/RequestResponseBean - Local Enterprise Bean - 1
    2- CallSapAdapter-Local Enterprise Bean - 2
    3-AF_Modules/ResponseOnewayBean-3</b>
    Parameters
    <b>1 - passThrough - true
    3-receiverChannel - Receiver Mail Adapter Name
    3-receiverService - Receiver Business Service/ System</b>
    But I got such errors in the adapter:
    <i>2007-08-29 18:56:13     Success     Using connection JMS_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2007-08-29 18:56:13     Success     The XI response message for message bf7c9ea0-5650-11dc-8fae-001438c505fb(INBOUND) was successfully returned to the calling application.
    2007-08-29 18:56:13     Success     The message status set to DLVD.
    2007-08-29 18:56:13     Success     ROB: entering ResponseOnewayBean
    2007-08-29 18:56:13     Success     ROB: resuming the transaction
    2007-08-29 18:56:13     Success     ROB: calling the module processor ...
    2007-08-29 18:56:13     Success     MP: Entering module processor
    2007-08-29 18:56:13     Error     MP: Exception caught with cause com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId
    2007-08-29 18:56:13     Error     ROB: error during processing: com.sap.aii.af.mp.processor.ModuleProcessorException: Processing Error caused by: com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId</i>
    Any idea?
    Thanks!
    Regards,
    Hui

    Hi,
    Instead of using a JMS adapter can you try this with a File Adapter on the sender side?
    It worked for me with a File adapter or alternately try looking into this blog if it helps ( not sure if it will  tho)
    /people/sudheer.babu2/blog/2007/01/18/asyncsync-communication-using-jms-adapter-without-bpm-sp-19
    Regards
    Bhavesh

  • Servlet with async task

    I am looking for a solid example of a servlet that starts a task and then responds/forwards before the task completes (the task continues to run in another thread and may run for seconds or minutes). Then the servlet can be called again to check on the progress of the task. I have done this but it is sometimes a bit buggy.
    Any good examples would be appreciated.
    Thanks.

    I have done this but it is sometimes a bit buggy.You could post details for what you have done.

  • Async tcp client and server. How can I determine that the client or the server is no longer available?

    Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
    I thought I will get an exception if the client or the server is not available but this is not happening.
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    How can I determine that the client or the server is no longer available?
    Server
    public class Server
    private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
    private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
    private TcpListener tcpListener;
    private bool isStarted;
    public event Action<string> NewMessage;
    public async Task Start(int port)
    this.tcpListener = TcpListener.Create(port);
    this.tcpListener.Start();
    this.isStarted = true;
    while (this.isStarted)
    var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
    var cts = new CancellationTokenSource();
    this.cancellationTokens.Add(cts);
    await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
    public void Stop()
    this.isStarted = false;
    foreach (var cancellationTokenSource in this.cancellationTokens)
    cancellationTokenSource.Cancel();
    foreach (var tcpClient in this.clients.Values)
    tcpClient.GetStream().Close();
    tcpClient.Close();
    this.clients.Clear();
    public async Task SendMessage(string message, IPEndPoint endPoint)
    try
    var tcpClient = this.clients[endPoint];
    await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
    try
    var stream = tcpClient.GetStream();
    this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
    while (!cancellationToken.IsCancellationRequested)
    var data = await this.Receive(stream);
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(NetworkStream stream, byte[] buf)
    await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive(NetworkStream stream)
    var lengthBytes = new byte[4];
    await stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await stream.ReadAsync(buf, 0, buf.Length);
    return buf;
    Client
    public class Client
    private TcpClient tcpClient;
    private NetworkStream stream;
    public event Action<string> NewMessage;
    public async void Connect(string host, int port)
    try
    this.tcpClient = new TcpClient();
    await this.tcpClient.ConnectAsync(host, port);
    this.stream = this.tcpClient.GetStream();
    this.Process();
    catch (Exception exception)
    public void Disconnect()
    try
    this.stream.Close();
    this.tcpClient.Close();
    catch (Exception exception)
    public async void SendMessage(string message)
    try
    await this.Send(Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(byte[] buf)
    await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await this.stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive()
    var lengthBytes = new byte[4];
    await this.stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await this.stream.ReadAsync(buf, 0, buf.Length);
    return buf;

    Hi,
    Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
    According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    Console.WriteLine(exception.Message);
    Unable to read data from the transport connection: An existing   connection was forcibly closed by the remote host.
    By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Project Conversion from 11.03 to R12- need help

    Hi All,
    I need some information regarding conversion from 11.03 to R12 along with Capital Project's conversion, do we need to take care Asset Assignment and Assets information at the time of Project Conversion. Iam doing Project and Task conversion different. Is there any good mapping document or Conversion FD, if any body have please send my mail ID. [email protected]
    Thanks for your help.
    Thanks,
    Srini..

    Usually only Open Invoices and Unapplied Receipts are migrated from Old system to New Instance.
    Post Migration Reconciliation shall be tough in that scenario. Reconsider/Rediscuss with Client.
    Migration can be done using APIs or Custom Scripts using Standard Interfaces.
    Hope this is helpful
    Regards,
    Sridhar

  • Questions on async and sync's unit tests

    Hi All
    I write a API project and that have sync and async method.  
    Then I also write a unit tests for them.
    What I want to ask is how to write them is better ?
    public abstract class ApiProxyBase
            protected async Task<T>
    GetDataAsync<T>(IRestRequest restRequest, bool ignoreSslCertificateValidation
    = true) where T
    : ApiResponse, new()
            protected T
    GetData<T>(IRestRequest restRequest, bool ignoreSslCertificateValidation
    = true  where T
    : ApiResponse, new();
       public class GameServerApiProxy : ApiProxyBase, IGameServerApiProxy
    async Task<GetGameRedirectResponse>
    GetGameRedirectAsync(GetGameRedirectRequest request) ;
        public GetGameRedirectResponse GetGameRedirect(GetGameRedirectRequest request)
        public class GameServerApiProxyTest : TestsBase
            [Test]
            public async void Can_Get_Game_RedirectUrl_Async()
                await LogIn();
                var response
    = await _gameServerApiProxy.GetGameRedirectAsync(new GetGameRedirectRequest());
                response.Url.Should().NotBeNull();
                LogOut();
            [Test]
            public void Can_Get_Game_RedirectUrl()
                LogInSync();
                var response
    = _gameServerApiProxy.GetGameRedirect(new GetGameRedirectRequest());
                response.Url.Should().NotBeNull();
                LogOut();

    I have an
    article on asynchronous unit testing. I'd say your async unit test method should be async Task and not async void. Other than that, it looks good. In particular, since your interface has both synchronous and asynchronous APIs, you should have tests for
    both of them.
    Home page: <a href="http://stephencleary.com/">http://stephencleary.com/</a><br/> Programming blog: <a href="http://blog.stephencleary.com/">http://blog.stephencleary.com/</a><br/> <br/> <a
    href="http://www.landmarkbaptist.com/salvation">How to get to Heaven according to the Bible</a><br/>

  • How to use multi async method in Windows Runtime Component (C#)

    I want to migrate an async method into Windows Runtime Component.
    CookieContainer cc = await utility.GetCookieContainer();
    But the content of async method still contains async methods.
    public async Task<CookieContainer> GetCookieContainer()
    if (stsAuthToken != null)
    if (DateTime.Now > stsAuthToken.Expires)
    this.stsAuthToken = await GetMsoStsSAMLToken();
    AuthCookies cookies = await GetAuthCookies(this.stsAuthToken);
    CookieContainer cc = new CookieContainer();
    Cookie samlAuthCookie = new Cookie("FedAuth", cookies.FedAuth)
    Path = "/",
    Expires = this.stsAuthToken.Expires,
    Secure = cookies.Host.Scheme.Equals("https"),
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(this.spSiteUrl, samlAuthCookie);
    Cookie rtFACookie = new Cookie("rtFA", cookies.RtFA)
    Path = "/",
    Expires = this.stsAuthToken.Expires,
    Secure = cookies.Host.Scheme.Equals("https"),
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(this.spSiteUrl, rtFACookie);
    this.cookieContainer = cc;
    And even GetMsoStsSAMLToken and GetAuthCookies contain async methods...
    How to migrate it?

    Hi Matt,
    I'm sorry for my unclear description.
    My WinRT Component is for Javascript. If I use folloiong codes, error occurs.
    public static async Task<bool> GetInternal(string url, string username, string password)
    bool r = await AuthUtility.Create(new Uri(url), username, password);
    return r;
    The error is
    SharePointWindowsRuntimeComponent.Common.GetInternal(System.String, System.String, System.String)' has a parameter of type 'System.Threading.Tasks.Task<System.Boolean>' in its signature. Although this generic type is not a valid Windows Runtime type,
    the type or its generic parameters implement interfaces that are valid Windows Runtime types.  Consider changing the type 'Task' in the method signature to one of the following types instead: Windows.Foundation.IAsyncAction, Windows.Foundation.IAsyncOperation,
    or one of the other Windows Runtime async interfaces. The standard .NET awaiter pattern also applies when consuming Windows Runtime async interfaces. Please see System.Runtime.InteropServices.WindowsRuntime.AsyncInfo for more information about converting managed
    task objects to Windows Runtime async interfaces.
    Some articles said, Task<T> is not WinRT type and should be converted to IAsyncOperation<T>. Only stirng, int, bool, object, array of above types and some 'simple' type can be used. (The
    related article)
    Then I try to convert Task<bool>, but the codes don't work.
    Above is why I ask this question.
    If async method can be used in WinRT component directly, please let me know why I got above error.
    Thanks.

Maybe you are looking for

  • Camera Raw and Black & White Pictures

    I am using Potoshop Elements 7.0 and I just downloaded the latest camera raw (5.2). However, both with the old and new camera raw plug when I import black & white pictures from my Nikon D80 in NEF format I see them as colour pictures in the PSE organ

  • DW CS3, Templates & Flash paths

    Hello guys, I guess that everybody knows but I didn't find info about it... Seems DW won't update the path of a Flash file when using a Template. The result is that the path will always be the same as the file was located in /Templates. Do you guys k

  • Big problem with JFormattedTextField.

    When I use a JFormattedTextField to receive on input just letters when the JFormattedTextField loses focus it just clear the field! Why that? try  {          MaskFormatter mask = new MaskFormatter("????????????????????");          mask.setValidCharac

  • Win 8 to win 7 hp 15-g070nr usb

    need drivers for USB...one on right side works    rest are dead

  • Is it possible to drop animated files from edge cc into premier pro cc ?

    is it possible to drop animated files from edge cc into premier pro cc ?