Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
Questionabout c# command for oralce Pin
yuscq15-Oct-14 18:26
professionalyuscq15-Oct-14 18:26 
QuestionRe: about c# command for oralce Pin
Eddy Vluggen16-Oct-14 0:27
professionalEddy Vluggen16-Oct-14 0:27 
AnswerRe: about c# command for oralce Pin
Praneet Nadkar16-Oct-14 0:45
Praneet Nadkar16-Oct-14 0:45 
GeneralRe: about c# command for oralce Pin
yuscq16-Oct-14 16:47
professionalyuscq16-Oct-14 16:47 
QuestionEdge.js problem driving me crazy | I can call code through WebApi route but not from node server Pin
Alaric_15-Oct-14 15:52
professionalAlaric_15-Oct-14 15:52 
AnswerRe: Edge.js problem driving me crazy | I can call code through WebApi route but not from node server Pin
Alaric_16-Oct-14 6:42
professionalAlaric_16-Oct-14 6:42 
GeneralRe: Edge.js problem driving me crazy | I can call code through WebApi route but not from node server Pin
Alaric_16-Oct-14 7:21
professionalAlaric_16-Oct-14 7:21 
AnswerRe: Edge.js problem driving me crazy | I can call code through WebApi route but not from node server Pin
Alaric_16-Oct-14 9:24
professionalAlaric_16-Oct-14 9:24 
For completeness' sake, I thought I'd provide some additional clarification.

Notice in the original code that I posted that in the GetUsers() method that calls the data connector, I did not await the Resolution of the promise. In fact, I didn't need to resolve that manually, so I changed the code that read like this...
C#
var connector = new Data.SqlServer();
 
            Task.Factory.StartNew(() =>
                {
                    source.SetResult(connector.GetUsersSync());
                });
 
            return await task;


to instead read like:
C#
DataConnector connector = new DataConnector();
return connector.GetUsers();

and then, to keep the async task from "completing before another async task could complete", I had to await the call to the data connector
C#
DataConnector connector = new DataConnector();
return await connector.GetUsers();


It was really easy once I was able to spot it. I just skipped over the StartNew(() call every time I was analyzing; took way too many looks to notice that it was not executing asynchronously.
"I need build Skynet. Plz send code"

Questionunable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Member 245846714-Oct-14 23:40
Member 245846714-Oct-14 23:40 
AnswerRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Pete O'Hanlon14-Oct-14 23:49
mvePete O'Hanlon14-Oct-14 23:49 
AnswerRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Dave Kreskowiak15-Oct-14 2:18
mveDave Kreskowiak15-Oct-14 2:18 
GeneralRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Member 245846715-Oct-14 16:10
Member 245846715-Oct-14 16:10 
GeneralRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Dave Kreskowiak15-Oct-14 17:23
mveDave Kreskowiak15-Oct-14 17:23 
AnswerRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Gerry Schmitz15-Oct-14 10:07
mveGerry Schmitz15-Oct-14 10:07 
GeneralRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Dave Kreskowiak15-Oct-14 11:09
mveDave Kreskowiak15-Oct-14 11:09 
Questionexcel listview c# Pin
Kalay1614-Oct-14 23:33
Kalay1614-Oct-14 23:33 
SuggestionRe: excel listview c# Pin
Eddy Vluggen15-Oct-14 9:00
professionalEddy Vluggen15-Oct-14 9:00 
GeneralRe: excel listview c# Pin
Kalay1619-Oct-14 20:36
Kalay1619-Oct-14 20:36 
GeneralRe: excel listview c# Pin
Eddy Vluggen20-Oct-14 1:57
professionalEddy Vluggen20-Oct-14 1:57 
GeneralRe: excel listview c# Pin
Kalay1620-Oct-14 2:54
Kalay1620-Oct-14 2:54 
GeneralRe: excel listview c# Pin
Eddy Vluggen20-Oct-14 5:27
professionalEddy Vluggen20-Oct-14 5:27 
GeneralRe: excel listview c# Pin
Kalay1620-Oct-14 20:50
Kalay1620-Oct-14 20:50 
GeneralRe: excel listview c# Pin
Eddy Vluggen21-Oct-14 2:25
professionalEddy Vluggen21-Oct-14 2:25 
GeneralRe: excel listview c# Pin
Kalay1621-Oct-14 2:59
Kalay1621-Oct-14 2:59 
GeneralRe: excel listview c# Pin
Eddy Vluggen21-Oct-14 5:35
professionalEddy Vluggen21-Oct-14 5:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.