juhunter

Fire Events Immediately

Discussion created by juhunter on Sep 10, 2012
Latest reply on Sep 11, 2012 by MBranscomb-esristaff
Hey all,

I'm writing a C# class library to plug into our existing CMS, but I've run into a snag. I have many map layers and feature layers, but no actual map to display, so I've been taking the advice from recent post and calling the Initialize() method manually on my layers. The problem though, is that my entire call stack finishes before my Initialize event fires, and at that point I've already returned all my data, which is nothing since the layers are blank.

With that, is there a setting so when I call layer.Initialize() it will immediately jump into the Initialize event handler? Without this I'll be forced to query the REST API directly, which is fine, I'd just like to be able to use the tools given to me.

(may not belong in this sub-forum, sorry if that's the case)

Outcomes