Check RabbitMQ queue size from client
Does anyone know if there's a way to check the number of messages in a queue from a client application? Thanks. BTW, I'm using .NET client libraty. ...
Does anyone know if there's a way to check the number of messages in a queue from a client application? Thanks. BTW, I'm using .NET client libraty. ...
Sorry for what is probably a silly question but it's bugging me... int[] i = {3, 2, 1}; //why Array.Sort(i); //instead of i.Sort(); char c = 'c'; //why char.IsLetter(c); //instead of c.Isletter(); ...
Does anyone know how to construct a format string in .NET so that the resulting string contains a colon? In detail, I have a value, say 200, that I need to format as a ratio, i.e. "1:200". So I'm constructing a format string like this "1:{0:N0}" which works fine. The problem is I want zero to display as "0", not "1:0", so my format stri...
I am using the function below inside a thread to receive the byte[] via socket. Since my machine has two network adaptors it is receiveing the byte[] two times. I want to skip the subsequent same byte[] received. What should I do to achive this? public void Receiver() { strMultpileBatchString = ""; string mcastGroup = ...
We're using UsernamePasswordValidator along with a certificate to secure access to our WCF services. However, the custom authorization policies we're using are SERVICE behaviors, not endpoint behaviors, so they apply to all endpoints, including the MEX endpoint. We'd like to be able to go and grab the service references using visual st...
I have written a DSL using Antlr to generate a lexer and parser from my grammar file. The parser generates an abstract syntax tree which contains various nodes (e.g. a function node) which I can calculate. In the code for the function nodes I take care of binding - checking function names and parameter types for matches from a library of...
Is it a good idea use WF for all application sizes? From more simple to more complex applications, considering that all applications follow a workflow, even in most of cases the workflow be implicit? ...
The title is pretty much the question :-) I've embedded an xml file and a txt file as resources in my .NET app. Am still debugging other things, so cannot run and test this. So just asking, would I be able to modify these files at runtime, after deployment? ...
By default I see that Sandcastle is generating HTML pages and links named with GUIDs. Can somehow this be changed to generate user/SEO friendly names for the pages? Ie. instead of f987d4ff-cabc-10af-86cd-620978605d86.htm I want it create 'namespace.class.method.htm', similar to how the .Net MSDN documentation is generated. ...
Is there a way to tell Windows that it shouldn't swap out a particular processes' memory to disk? Its a .Net windows service with fairly large memory usage. I got lot of physical RAM but the OS seems to move part of the process memory to the pagefile anyway. ...
Related: Send Email via C# through Google Apps account My question is the same so I implemented Koistya's solution as follows. The heartbreak is that it works beautifully on my dev laptop but when ported to web server it times out with no explanation. My SMTP config is in my web.config file. I made mods based on Koistya's answer...
Ok this may seem like a bit of a noob question but one many Web developers I know dont have a full understanding of. Basically how does a file uploading from a web page file input box to a webserver (hosting a .net site for example) with a FileUpload control's uploaded event? My understanding was that a post was made to the server requ...
I'm programmatically creating an edmx file as part of our code generation process and I'd like to know how the designer decides to use "1" or "0..1" for a relationship when you "Update model from database". Any insight on this? Thanks Edit: Ok, I think it uses "0..1" when the "many" side is a nullable foreign key and "1" if it's not nu...
I'm writing a .NET Windows Forms application that will post a message to a Websphere MQ queue and then poll a different queue for a response. If a response is returned, the application will partially process the response in real time. But the response needs to stay in the queue so that a daily batch job, which also reads from the respons...
Hi, I'm trying to create copy/zip a pre-compiled site which is contains empty folders(after pre-compilation). Looks like empty folders is not included to the list of items after CreateItem task. How I can care of empty folders? thanks ...
I have a main form, and some sub forms, and each sub form can have some sub forms. When I have multiple sub forms open, and I try to get data from the parent form, it returns the data from the wrong parent form. For example I have two instances of Mainform.subform running. If I do something like this in a child form of one instance of t...
Hi, I´m trying to run an old .NET application from an ASP.NET website. After reading the web and Stackoverflow (for similar problem) I come to the following code. The Problem is that I get always an error code (I am using administrator account just to testing purposes). If I run the exe manually it works ok. private void Execute(string ...
I have the following line of code: XDocument formConfiguration = XDocument.Load(ConfigurationManager.AppSettings["XMLFileURL"]); I get the following exception message: Reference to undeclared entity 'nbsp' There are no sequences in the XML. There are no "&" characters in the XML. Where could this be coming from? Thanks, Char...
Hi all, I though I had solved this problem, but it is back: Code generation for property 'SelectedPeople' failed. Error was: 'Type 'ECS.Entities.Persistency.Person' in Assembly 'ECS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.' The property on the error message is a List(Of Person) and for som...
I am building a C# UI to interact with a COM Service (.exe). The VS2005 COM project outputs a valid typelib (TLB), which is referenced by the C# project. However, the VS2005 C# project insists that the service be registered in order to build the C# project, even though the typelib appears perfectly valid when examined with the OLE Obje...