¡@

Home 

c# Programming Glossary: host

How to get my own IP address in C#?

http://stackoverflow.com/questions/1069103/how-to-get-my-own-ip-address-in-c

IP address Someone wrote the following code. IPHostEntry host string localIP host Dns.GetHostEntry Dns.GetHostName foreach.. wrote the following code. IPHostEntry host string localIP host Dns.GetHostEntry Dns.GetHostName foreach IPAddress ip in host.AddressList.. Dns.GetHostEntry Dns.GetHostName foreach IPAddress ip in host.AddressList if ip.AddressFamily.ToString InterNetwork localIP..

How do I access ARP-protocol information through .NET?

http://stackoverflow.com/questions/1148778/how-do-i-access-arp-protocol-information-through-net

public class PingExample args 0 can be an IPaddress or host name. public static void Main string args Ping pingSender new..

How to secure an ASP.NET Web API

http://stackoverflow.com/questions/11775594/how-to-secure-an-asp-net-web-api

hash the template of HTTP request User Agent agent Host host Timestamp timestamp Authentication username signature Example.. GET webapi.hmac api values User Agent Fiddler Host localhost Timestamp Thursday August 02 2012 3 30 32 PM Authentication.. api values key2 value2 User Agent Fiddler Host localhost Content Type application x www form urlencoded Timestamp Thursday..

Elevating process privilege programatically?

http://stackoverflow.com/questions/133379/elevating-process-privilege-programatically

middle of a lengthy process you'll need to run your entire host process with elevated permissions by embedding the appropriate..

Adjusting HttpWebRequest Connection Timeout in C#

http://stackoverflow.com/questions/1500955/adjusting-httpwebrequest-connection-timeout-in-c-sharp

. Application CLR host sets this to 2 ASP host to 10. So if you have a multithreaded.. . Application CLR host sets this to 2 ASP host to 10. So if you have a multithreaded application that submits.. application that submits multiple requests to the same host only two are actually placed on the wire the rest are queued..

C# catch a stack overflow exception

http://stackoverflow.com/questions/1599219/c-sharp-catch-a-stack-overflow-exception

in the following circumstances. The CLR is being run in a hosted environment where the host specifically allows for StackOverflow.. The CLR is being run in a hosted environment where the host specifically allows for StackOverflow exceptions to be handled..

How can you change Network settings (IP Address, DNS, WINS, Host Name) with code in C#

http://stackoverflow.com/questions/209779/how-can-you-change-network-settings-ip-address-dns-wins-host-name-with-code

machine it needs to set its IP address DNS WINS and host name to match the machine being replaced. Is there a library..

Which .NET Dependency Injection frameworks are worth looking into? [closed]

http://stackoverflow.com/questions/21288/which-net-dependency-injection-frameworks-are-worth-looking-into

easier but it's not only DI that they do they provide a host of other benefits over and above DI. That being said I'm sure..

Websocket server: onopen function on the web socket is never called

http://stackoverflow.com/questions/2211898/websocket-server-onopen-function-on-the-web-socket-is-never-called

me a few troubles. I'm running a webserver ASP.NET to host the page with the javascript and the web socket server is implemented.. r n Connection Upgrade r n WebSocket Origin http localhost 8080 r n WebSocket Location ws localhost 8181 r n r n streamWriter.Write.. Origin http localhost 8080 r n WebSocket Location ws localhost 8181 r n r n streamWriter.Write handshake streamWriter.Flush..

Can't get sql server compact 3.5 / 4 to work with ASP .NET MVC 2

http://stackoverflow.com/questions/3223359/cant-get-sql-server-compact-3-5-4-to-work-with-asp-net-mvc-2

web app without having to do sql server setup on my domain hosting. This is really just me shooting the breeze and trying to.. the breeze and trying to figure this out. I don't plan to host a market or anything with this. So I've copied all the dll's..

Sending email in .NET through Gmail

http://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail

email in .NET through Gmail Instead of relying on my host to send email I was thinking of sending the messages though..

Can I set up HTML/Email Templates with ASP.NET?

http://stackoverflow.com/questions/620265/can-i-set-up-html-email-templates-with-asp-net

it is not tied with the web environment we can easily host it outside the web and use it as template engine for various..

Large Object Heap Fragmentation

http://stackoverflow.com/questions/686950/large-object-heap-fragmentation

continuously calculating and serialising data to a remote host and is hitting the Large Object Heap LOH a fair bit. However.. calculation is complete and has been sent to the remote host the memory should be freed. What I am seeing however is a large..

How can I make a .Net Winforms application that only runs in the System Tray?

http://stackoverflow.com/questions/995195/how-can-i-make-a-net-winforms-application-that-only-runs-in-the-system-tray

is correct but like many things .NET there are a host of subtleties involved in doing it right . The tutorial mentioned..

Create “Hello Wold” WebSocket example

http://stackoverflow.com/questions/10200910/create-hello-wold-websocket-example

request with some information. Example GET chat HTTP 1.1 Host server.example.com Upgrade websocket Connection Upgrade Sec..

How to secure an ASP.NET Web API

http://stackoverflow.com/questions/11775594/how-to-secure-an-asp-net-web-api

of hmac hash the template of HTTP request User Agent agent Host host Timestamp timestamp Authentication username signature Example.. GET request GET webapi.hmac api values User Agent Fiddler Host localhost Timestamp Thursday August 02 2012 3 30 32 PM Authentication.. POST webapi.hmac api values key2 value2 User Agent Fiddler Host localhost Content Type application x www form urlencoded Timestamp..

WebException how to get whole response with a body?

http://stackoverflow.com/questions/11828843/webexception-how-to-get-whole-response-with-a-body

application x www form urlencoded Accept application json Host nbm21tm1.teamlab.com Content Length 49 Connection Keep Alive..

iTextSharp - Sending in-memory pdf in an email attachment

http://stackoverflow.com/questions/1196059/itextsharp-sending-in-memory-pdf-in-an-email-attachment

memoryStream test.pdf SmtpClient smtp new SmtpClient Host smtp.gmail.com Port 587 EnableSsl true Credentials new NetworkCredential.. memoryStream filename.pdf SmtpClient smtp new SmtpClient Host smtp.gmail.com Port 587 EnableSsl true Credentials new NetworkCredential..

Detecting Client Death in WCF Duplex Contracts

http://stackoverflow.com/questions/1427926/detecting-client-death-in-wcf-duplex-contracts

var binding new NetTcpBinding SecurityMode.None var serviceHost new ServiceHost typeof Server serviceHost.AddServiceEndpoint.. NetTcpBinding SecurityMode.None var serviceHost new ServiceHost typeof Server serviceHost.AddServiceEndpoint typeof IServer.. var serviceHost new ServiceHost typeof Server serviceHost.AddServiceEndpoint typeof IServer binding net.tcp localhost..

Recommended ServiceStack API Structure

http://stackoverflow.com/questions/15231537/recommended-servicestack-api-structure

Physical Project Structure Ideally the root level AppHost project should be kept lightweight and implementation free... EventMan.ServiceModel project references none EventMan AppHost.cs ServiceStack ASP.NET Web or Console Host Project EventMan.ServiceInterface.. EventMan AppHost.cs ServiceStack ASP.NET Web or Console Host Project EventMan.ServiceInterface Service implementations akin..

How to call a VBScript file in a C# application?

http://stackoverflow.com/questions/200422/how-to-call-a-vbscript-file-in-a-c-sharp-application

to the process settings. You need to use Windows Script Host if you want windows etc. to be displayed by the script program...

How to simulate browser HTTP POST request and capture result in C#

http://stackoverflow.com/questions/2071321/how-to-simulate-browser-http-post-request-and-capture-result-in-c-sharp

result Will generate the following request POST HTTP 1.1 Host example.com Content Length 27 Expect 100 continue Connection..

How can you change Network settings (IP Address, DNS, WINS, Host Name) with code in C#

http://stackoverflow.com/questions/209779/how-can-you-change-network-settings-ip-address-dns-wins-host-name-with-code

can you change Network settings IP Address DNS WINS Host Name with code in C# I am developing a wizard for a machine..

Cannot set some HTTP headers when using System.Net.WebRequest

http://stackoverflow.com/questions/239725/cannot-set-some-http-headers-when-using-system-net-webrequest

Accept Connection Content Length Content Type Date Expect Host If Modified Since Range Referer Transfer Encoding User Agent..

Sending email in .NET through Gmail

http://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail

Subject const string body Body var smtp new SmtpClient Host smtp.gmail.com Port 587 EnableSsl true DeliveryMethod SmtpDeliveryMethod.Network..

Request Web Page in c# spoofing the Host

http://stackoverflow.com/questions/359041/request-web-page-in-c-sharp-spoofing-the-host

Web Page in c# spoofing the Host I need to create a request for a web page delivered to our.. but the Header information is read only Or at least the Host part of it is . I need to do this because we want to perform.. http 192.168.1.5 filename.htm request.Headers.Set Host www.mywebsite.com WebResponse response request.GetResponse Obviously..

Get local ip address c#

http://stackoverflow.com/questions/6803073/get-local-ip-address-c-sharp

And a lot of them look like this example String strHostName string.Empty Getting Ip address of local machine... First.. machine... First get the host name of local machine. strHostName Dns.GetHostName Console.WriteLine Local Machine's Host Name.. get the host name of local machine. strHostName Dns.GetHostName Console.WriteLine Local Machine's Host Name strHostName..

Bind datagrid column visibility MVVM

http://stackoverflow.com/questions/7711275/bind-datagrid-column-visibility-mvvm

FrameworkElement in your ancestor panel's Resources . Host it into an invisible ContentControl bound to its Content . Use..

GETting a URL with an url-encoded slash

http://stackoverflow.com/questions/781205/getting-a-url-with-an-url-encoded-slash

see that what is actually sent on the wire is GET HTTP 1.1 Host example.com Connection Keep Alive So http example.com 2F gets..

publishing asp.net application to the internet

http://stackoverflow.com/questions/9509022/publishing-asp-net-application-to-the-internet

site click the Add button Set the IP address. Leave the Host Header Value blank Click Ok At this point there should be 2..