Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

TimWallace

@TimWallace
About
Posts
63
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • HttpContent.ReadAsStringAsync
    T TimWallace

    @Richard-Deeming said in HttpContent.ReadAsStringAsync:

    Your understanding is correct. It sounds like a problem with the server code. For example, you've got an endpoint declared as returning an IActionResult, and it returns an HttpResponseMessage object.

    This SO thread might point you in the right direction.

    This turned out to be the problem. Thanks for your post.

    .NET (Core and Framework)

  • HttpContent.ReadAsStringAsync
    T TimWallace

    I am wondering if I am misunderstanding what HttpContent.ReadAsStringAsync is supposed to return.

    I have an HttpPost that expects to receive a response with data in the Body (there is a reason behind this, but that is not what I want to discuss here). When I get the successful HttpResponseMessage, calling HttpResponseMessage.Content.ReadAsStringAsync() is returning a deserialized JSON object that contains all of the properties of HttpResponseMessage. The Uri being called initially is definitely setting the HttpResponseMessage.Content to a valid StringContent object.

    Is my understanding incorrect, or is ReadAsStringAsync() not behaving as it is supposed to?

    .NET (Core and Framework)

  • n-Tier Design Question
    T TimWallace

    It is generally a bad practice not to validate one's data that has been sent via the internet to an API before committing to a repository/database. If the volume of data being transmitted results in a sluggish UI, perhaps the core design is incorrect and should be reevaluated.

    Design and Architecture design question csharp mobile wpf

  • Be a team player
    T TimWallace

    There was no particular incident that triggered this post. I'm just passing along advice based on my 30 years on the industry. More than ever, teams need to be cohesive and supportive units in which the stronger senior developers mentor junior developers. Anyone who will not share knowledge that will benefit the team and/or the project is a detriment. Try to change their behavior first, but if they refuse to change then, in the long run, the team is better off without that coder.

    The Lounge collaboration json

  • Be a team player
    T TimWallace

    One would think that would be common sense, right? Unfortunately, I have run across many programmers throughout my career who want to "hoard" all of their knowledge. Whether it is because they want job security or just want to feel superior to other programmers, I don't know. I do know that when I encounter them, if I cannot change their outlook, I send 'em packing.

    The Lounge collaboration json

  • Be a team player
    T TimWallace

    I have observed during my decades as a programmer that if you possess certain knowledge/skills and refuse to share that with the rest of the development team, you are an impediment to the team's proper functioning and should be removed from the team.

    The Lounge collaboration json

  • WinForm launching a console application
    T TimWallace

    As OriginalGriff suggested, you should probably just run it as a thread in the process. But if you insist launching a console app, have your WinForms app create shared memory that your console app will look for when launched. If not found, terminate the console app.

    C# csharp question

  • Specification Pattern for validations
    T TimWallace

    Can you expand on your "antithesis of 'fluent'" comment, please?

    .NET (Core and Framework) business regex question discussion

  • Specification Pattern for validations
    T TimWallace

    What are your thoughts on an approach that uses Specifications for business logic validation? I know Fluent Validation is probably the most popular tool for doing validation these days, but is it inherently superior to a Specification-based approach?

    .NET (Core and Framework) business regex question discussion

  • Windows Mobile history question
    T TimWallace

    Back before iPhone hit the scene, there was a third-party service from which one could buy and download applications for Windows Mobile devices (not Microsoft's Mobile Marketplace...the service to which I am referring was before that). I cannot remember its name, though I think the word "Digital" was in the name. Does anyone remember that service's name?

    The Lounge question ios

  • SSO using WSTrustChannelFactory
    T TimWallace

    I have a client who wants to establish SSO with a Salesforce site (different domain) using ADFS as the IdP/STS. Unfortunately, they do not want to use the login page on ADFS - they want to continue to use their site's login page, taking away my option for using passive federation. I have already written code using WSTrustChannelFactory that is successfully authenticating the user via the ADFS server, decrypting the claims being returned, building the ClaimsIdentity, ClaimsPrincipal, SessionSecurityToken (SST) and using the FederatedAuthentication.SessionAuthenticationModule.WriteSessionTokenToCookie() to write the SST to the cookie. I now have two questions. First, do I need to do anything else so that when the user is redirected to the Salesforce site that site will be able to determine that the user was already authenticated on "my" site? Second, since I can't use WIF's FAM/SAM modules to "automatically" determine if authentication has already occurred, what steps do I need to take on the client's site to deal with the situation wherein the user authenticated on the Salesforce site then navigated to my client's site?

    Web Development sysadmin security question

  • Is it time for password-less login?
    T TimWallace

    Sneakers reference! Nice!

    The Insider News css com question

  • Do you have experience with Discountasp.net
    T TimWallace

    Does anyone here have any experience with Discountasp.net? If so, let me know your actual experience, good or bad. I'm looking for a different ASP.NET host, as my service with GoDaddy has become less than acceptable. I looked at the features on Discountasp.net's site and it looks like they offer everything my solution requires. But, then again, so does GoDaddy. Unfortunatley, I frequently have to wait 15 - 30 seconds to have a purely-HTML page with no database access served up from GoDaddy. If you have any other ASP.NET host suggestions, let me have 'em. Thanks. Tim

    The Lounge csharp html css asp-net database

  • Suddenly Microsoft is the Hippest Tech Company Around
    T TimWallace

    If it's so bad, why are you participating in a predominantly MS-centric development site?

    The Insider News com lounge

  • C# COM object and PowerBuilder
    T TimWallace

    Sadly, I have to create a COM object in C# that will be consumed by a PowerBuilder 11.5 application. Given some parameters, I need to return a byte array. I'm having trouble determining how to do this. I've tried including a ref parameter of type byte[]; no dice. I've tried declaring the parameter as "out"; again, no dice. I know the bytes I want to return are valid because I wrote them out to a file to verify. Can someone please tell me the best method to return a byte array to a calling application?

    C# csharp com data-structures tutorial question

  • Help with regular expression for reg ex validator
    T TimWallace

    Thanks, but that won't validate February or 30 versus 31 days properly.

    ASP.NET regex com sales help question

  • Help with regular expression for reg ex validator
    T TimWallace

    Thanks for the search suggestion, but that is to the site where I found Bernat's regex by searching already. His is the closest I found to what I need (it only needs to swap the month and date tests). When I have time (won't for a month), I'll check out the tool to which you sent me a link.

    ASP.NET regex com sales help question

  • Help with regular expression for reg ex validator
    T TimWallace

    Let me begin by saying I am not fluent in regex. I need a regex that will validate a date AND time value, not just date and not just time...both. I found a regex written by Bernat Sales at regexlib.com that will validate a date AND time entry, however, it only validates it in European formate (dd/mm/yyyy hh:mm:ss). I need it to validate only in American format (mm/dd/yyyy hh:ss:mm). Can someone, out of the goodness of their heart, please modify this regex to accomplish my goal of validating in American format. Here is Bernat's creation from which you can start: ^((((([0-1]?\d)|(2[0-8]))\/((0?\d)|(1[0-2])))|(29\/((0?[1,3-9])|(1[0-2])))|(30\/((0?[1,3-9])|(1[0-2])))|(31\/((0?[13578])|(1[0-2]))))\/((19\d{2})|([2-9]\d{3}))|(29\/0?2\/(((([2468][048])|([3579][26]))00)|(((19)|([2-9]\d))(([2468]0)|([02468][48])|([13579][26]))))))\s(([01]?\d)|(2[0-3]))(:[0-5]?\d){2}$ Again, I am not a regex guru, nor do I plan to be. I just need this regex for a current page I'm writing. Thanks in advance.

    ASP.NET regex com sales help question

  • SSL, but not via a web server
    T TimWallace

    I have an application that basically acts as a web server (it's more involved then that, but this gets the point across). I am putting the code in place to use SSL to secure the stream. I need to test this on my local PC, so of course I need a test cert. Try as I might, I cannot get makecert.exe create a certificate that will let me export it to a file as an X.509 certificate for use in my code (e.g. X509Certificate.CreateFromCertFile()). Can anyone point me toward a good tutorial on the whole process of doing this, please?

    Web Development sysadmin security cryptography tutorial question

  • what is the optimal method for handling time-triggered processing
    T TimWallace

    No, I am only looking for suggestions toanswer your #1. I know how I will code for your #2. Thanks for the suggestion.

    C# question css sysadmin help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups