|
It will be the right ServiceCollection ; it just looks like you're missing some other references.
AddLogging is an extension method defined in the Microsoft.Extensions.Logging NuGet package.AddApplicationInsightsTelemetryWorkerService is an extension method defined in the Microsoft.ApplicationInsights.WorkerService NuGet package.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thank you. I owe you a beer. Or three.
The question I (and probably you) have now is, why couldn't I find that answer myself? My google-fu is normally black belt level.
But you have to admit the situation is complicated, even bizarre. IServiceCollection is in the Microsoft.Extensions.DependencyInjection namespace, but the methods attached to an object instantiated from that interface are in two other namespaces. I mean, what the actual elephant?
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
That part actually makes sense: the extension methods are defined in the assemblies they're used for. Otherwise, all of the classes to configure eg: logging would need to be included in the DI assembly, which would be an absolute mess.
For the Microsoft extensions I've seen, the class where the extension methods are defined is usually deliberately added to the Microsoft.Extensions.DependencyInjection namespace, even though that's not the correct namespace for the assembly. That way, you don't have to add extra using statements to your code to configure the services; you just need a reference to the assembly.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
My rig bombed out, and until I could get a cheap WinTel spare (while I look for my dream gamer rig), I was stuck surfing the 'net with my Android phone. Oh my, what a horrific experience, between all the junk ads and not being to use Firefox's Bypass Paywalls add-on. I am considering getting an Android pad, which would be for me just for use when I'm in public transport or eating at a restaurant, etc., but if with Android I will be stuck with this rotten experience, I'll just stay with my dinosaur era phone using Opera Mini (which is so old that ads are too sophisticated, and which isn't a problem since I am only interested in the text).
Any ideas that do not involve paying through the nose for an Apple?
|
|
|
|
|
|
Brave browser, AdBlock optional.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
swampwiz wrote: I was stuck surfing the 'net with my Android phone. Oh my, what a horrific experience A gross experience, was it?
|
|
|
|
|
144 what?
Software Zen: delete this;
|
|
|
|
|
Wrong
It is more along the lines of "gross income" or "gross taxes". The whole, with nothing taken away. As opposed to the "net income". You get the whole web page with all the ads, nothing taken away. swampwiz didn't want the gross page, he wanted to surf the net - that is, with the ads removed. And apparently, he thinks web pages with all the ads are rather gross.
|
|
|
|
|
I use Firefox with AdBlock Plus and I'm clean as can be while browsing the web...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Firefox with uBlock Origin works for me.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
This was a big problem for me too. I finally solved it by installing a VPN server at home (we have Gigabit fibre here) and a pi-hole DNS cleaner. The VPN is SoftEtherNet which is really simple to set up and doesn't need any client software. While I'm out and about I just fire up the VPN on the phone and get virtually ad-free browsing just like when I'm at home.
So old that I did my first coding in octal via switches on a DEC PDP 8
|
|
|
|
|
I use MS-Edge on my Android phone and have very little advertisement or spam in my Android browsing sessions.
|
|
|
|
|
I was able to download the Firefox App, and from there add the necessary addons. There is hope for the world.
|
|
|
|
|
Pi-hole. Set it up as your gateway going out to the internet, and suddenly every device on your network benefits from ad blocking performed in a single place, before any traffic can reach any other device.
I have a VM with 512MB running Debian dedicated for it. I could probably drop the memory even further if I cared to even look how much it's using on average. That would be a good job to give a Raspberry Pi.
|
|
|
|
|
So some time ago, I was really struggling trying to get my optimized SPI bus code working on an ESP32.
It was confounding me. I was using a reference implementation and I could have sworn I copied the functionality (but not the code) precisely. I even verified as much as I could with serial port spew.
Well after banging on it a month or two later, it turns out there wasn't a problem with it at all - I was simply selecting the wrong bus when I initialized the driver from my demo code!
I love this. Now I have a bunch of code in front of me I can actually work on. GFX is getting another major update. Woo!
Real programmers use butterflies
|
|
|
|
|
In another world, in the Microchip world, every programmer bangs his head against a brick wall thanks to ANSEL.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Didn't know Ansel Adams[^] was into it.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Quote: Didn't know Ansel Yep, that's exactly the first big problem.
Then "I forgot about Ansel" is the source of the following problems.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
CPallini wrote: every programmer bangs his head against a brick wall thanks to ANSEL :raises hand:
Guilty!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I was contracting for a company using ESP32 and have an odd question for you: if you cut down the number of pins on the programming header (have one Ground instead of individual grounds for each pin)
do you have to tie pins on the header to the ground pin. I'm asking as we blew up two programmers. I know there were no pins shorting as I made the the cut down lead. The programmers died I'm guessing from a charge build up on the pins which weren't grounded, any idea?
|
|
|
|
|
It might be because you're using the ESP32 in the buff and not part of a dev board but your question is confusing to me. You shouldn't have to have individual grounds - why would you? I can't make sense of that, and you shouldn't be tying the pins on the chip to ground except the GND pins, and except through a resistor for a pulldown.
Real programmers use butterflies
|
|
|
|
|
Well, the thing was I know the board had issues (to say the least) but killing two programmers? One I could believe as it might have been abused before we got hold of it. The second one was fresh out of the box. There are no more in stock at the supplier (Farnell?) didn't want to get too involved. A charge building up on unterminated pins was the only thing I could think of, but it should have been designed out.
|
|
|
|
|
You may have gotten knock off ESP32s. Depending on your distributor there are pirated boards out there.
My client bought 3 Freenove ESP32 WROVER dev boards. One worked.
Get them from mouser or digikey.
Real programmers use butterflies
|
|
|
|
|
Would not supprise me. They only had one board assembled as they didn't have all the components for more than one and that have a load of bits missing.
|
|
|
|