private string GetClientIP()
{
System.ServiceModel.Channels.RemoteEndpointMessageProperty clientEndpoint =
System.ServiceModel.OperationContext.Current.IncomingMessageProperties[
System.ServiceModel.Channels.RemoteEndpointMessageProperty.Name] as System.ServiceModel.Channels.RemoteEndpointMessageProperty;
return String.Format(
"{0}:{1}",
clientEndpoint.Address, clientEndpoint.Port);
}
From a VS.NET command prompt, enter the following: 1. Generate a KeyFile sn -k keyPair.snk 2. Get the MSIL for the assembly ildasm SomeAssembly.dll /out:SomeAssembly.il 3. Rename the original assembly, just in case ren SomeAssembly.dll SomeAssembly.dll.orig 4. Build a new assembly from the MSIL output and your KeyFile ilasm SomeAssembly.il /dll /key= keyPair.snk more read visit : http://www.geekzilla.co.uk/ViewCE64BEF3-51A6-4F1C-90C9-6A76B015C9FB.htm
Comments
Post a Comment