Encapsulation fundamentals
Exposing a component thru Remoting and Web Services simultaneously
{
[Serializable()]
public class Person
{
public Person()
{
_firstName = "Sendhil Kumar";
_lastName = "Ramalingam";
}
public string FirstName
{
get { return _firstName; }
set { _firstName = value; }
}
public string LastName
{
get { return _lastName; }
set { _lastName = value; }
}
}
{
public interface IHelloService
{
string HelloWorld(Person person);
}
}
using System.Web;
using System.Web.Services;
using Sendhil.Samples.Dual.DTO;
{
[WebService(Description="Hello World Remoting and Web Service Implementation (Dual)",Namespace="http://spaces.msn.com/sendhil/sendhil.samples.dual/")]
public class HelloService : MarshalByRefObject, IHelloService
{
public HelloService()
{
}
public string HelloWorld(Person person)
{
return string.Format("Hello {1}, {0}", person.LastName, person.FirstName);
}
}
}
using System.Runtime.Remoting;
{
public class ProxyFactory
{
public ProxyFactory()
{
}
static ProxyFactory()
{
entry = RemotingConfiguration.GetRegisteredWellKnownClientTypes()[0];
}
{
IHelloService service ;
if(useWebService)
{
service = new HelloService();
return service;
}
else
{
service = (IHelloService)Activator.GetObject(typeof(IHelloService), entry.ObjectUrl);
return service;
}
}
}
}
Targetting .NET Fw 1.1 from VS 2005
http://www.gotdotnet.com/codegallery/codegallery.aspx?id=9ac94da5-8e5a-4a33-beda-9b8d00970371
http://blogs.msdn.com/clichten/
http://weblogs.asp.net/rmclaws/archive/2005/11/09/430075.aspx
A remoting blog
Roses
All copyrights acknowledged, credits to the original scanners.
1 4 3 in 101 languages
Afrikaans – | Ek het jou lief |
Albanian – | Te dua |
Arabic – | Ana behibak (to male) |
Arabic – | Ana behibek (to female) |
Armenian – | Yes kez sirumen |
Bambara – | M’bi fe |
Bangla – | Aamee tuma ke bhalo baashi |
Belarusian – | Ya tabe kahayu |
Bisaya – | Nahigugma ako kanimo |
Bulgarian – | Obicham te |
Cambodian – | Bung Srorlagn Oun (to female) Oun Srorlagn Bung (to male) |
Cantonese | Chinese – Ngo oiy ney a |
Catalan – | T’estimo |
Cheyenne – | Ne mohotatse |
Chichewa – | Ndimakukonda |
Corsican – | Ti tengu caru (to male) |
Creol – | Mi aime jou |
Croatian – | Volim te |
Czech – | Miluji te |
Danish – | Jeg Elsker Dig |
Dutch – | Ik hou van jou |
English – | I love you |
Esperanto – | Mi amas vin |
Estonian – | Ma armastan sind |
Ethiopian – | Ewedishalehu : male/female to female Ewedihalehu: male/female to male. |
Faroese – | Eg elski teg |
Farsi – | Doset daram |
Filipino – | Mahal kita |
Finnish – | Mina rakastan sinua |
French – | Je t’aime, Je t’adore |
Gaelic – | Ta gra agam ort |
Georgian – | Mikvarhar |
German – | Ich liebe dich |
Greek – | S’agapo |
Gujarati – | Hu tumney prem karu chu |
Hiligaynon – | Palangga ko ikaw |
Hawaiian – | Aloha wau ia oi |
Hebrew – | Ani ohev otah (to female) |
Hebrew – | Ani ohev et otha (to male) |
Hiligaynon – | Guina higugma ko ikaw |
Hindi – | Hum Tumhe Pyar Karte hae |
Hmong – | Kuv hlub koj |
Hopi – | Nu’ umi unangwa’ta |
Hungarian – | Szeretlek |
Icelandic – | Eg elska tig |
Ilonggo – | Palangga ko ikaw |
Indonesian – | Saya cinta padamu |
Inuit – | Negligevapse |
Irish – | Taim i’ ngra leat |
Italian – | Ti amo |
Japanese – | Aishiteru |
Kannada – | Naa ninna preetisuve |
Kapampangan – | Kaluguran daka |
Kiswahili – | Nakupenda |
Konkani – | Tu magel moga cho |
Korean – | Sarang Heyo |
Latin – | Te amo |
Latvian – | Es tevi miilu |
Lebanese – | Bahibak |
Lithuanian – | Tave myliu |
Malay – | Saya cintakan mu / Aku cinta padamu |
Malayalam – | Njan Ninne Premikunnu |
Mandarin Chinese – | Wo ai ni |
Marathi – | Me tula prem karto |
Mohawk – | Kanbhik |
Moroccan – | Ana moajaba bik |
Nahuatl – | Ni mits neki |
Navaho – | Ayor anosh’ni |
Nepali – | Ma Timilai Maya Garchhu |
Norwegian – | Jeg Elsker Deg |
Pandacan – | Syota na kita!! |
Pangasinan – | Inaru Taka |
Papiamento – | Mi ta stimabo |
Persian – | Doo-set daaram |
Pig Latin – | Iay ovlay ouyay |
Polish – | Kocham Cie |
Portuguese – | Eu te amo |
Romanian – | Te ubesk |
Roman Numerals – | 333 |
Russian – | Ya tebya liubliu |
Scot Gaelic – | Tha gradh agam ort |
Serbian – | Volim te |
Setswana – | Ke a go rata |
Sign Language – | ,,,/ (represents position of fingers when signing ‘I Love You’ |
Sindhi – | Maa tokhe pyar kendo ahyan |
Sioux – | Techihhila |
Slovak – | Lu`bim ta |
Slovenian – | Ljubim te |
Spanish – | Te quiero / Te amo |
Swahili – | Ninapenda wewe |
Swedish – | Jag alskar dig |
Swiss-German – | Ich lieb Di |
Tagalog – | Mahal kita |
Taiwanese – | Wa ga ei li |
Tahitian – | Ua Here Vau Ia Oe |
Tamil – | Naan unnai kathalikiraen |
Telugu – | Nenu ninnu premistunnanu |
Thai – | Chan rak khun (to male) |
Thai – | Phom rak khun (to female) |
Turkish – | Seni Seviyorum |
Ukrainian – | Ya tebe kahayu |
Urdu – | mai aap say pyaar karta hoo |
Vietnamese – | Anh ye^u em (to female) |
Vietnamese – | Em ye^u anh (to male) |
Welsh – | ‘Rwy’n dy garu |
Yiddish – | Ikh hob dikh |
Yoruba – | Mo ni fe |
Courtesy: theholidayspot.com
History of the Valentine’s day
Today’s blog entries are dedicated to my Valentine, my wife.
There are different stories behind the celebration of Valentine’s day.
One legend contends that Valentine was a priest who served during the third century in Rome. When Emperor Claudius II decided that single men made better soldiers than those with wives and families, he outlawed marriage for young men — his crop of potential soldiers. Valentine, realizing the injustice of the decree, defied Claudius and continued to perform marriages for young lovers in secret. When Valentine’s actions were discovered, Claudius ordered that he be put to death.
Other stories suggest that Valentine may have been killed for attempting to help Christians escape harsh Roman prisons where they were often beaten and tortured.
According to one legend, Valentine actually sent the first ‘valentine’ greeting himself. While in prison, it is believed that Valentine fell in love with a young girl — who may have been his jailor’s daughter — who visited him during his confinement. Before his death, it is alleged that he wrote her a letter, which he signed ‘From your Valentine,’ an expression that is still in use today. Although the truth behind the Valentine legends is murky, the stories certainly emphasize his appeal as a sympathetic, heroic, and, most importantly, romantic figure. It’s no surprise that by the Middle Ages, Valentine was one of the most popular saints in England and France.
Courtesy: The History Channel