Monday, January 25, 2010

Client server method keywords

There is a difference between declaring a static method with both client and server keywords and without any:
public static client server void method1()
{
}

and
public static void method2()
{
}

If a method is declared without these keywords the tier to execute the method will be determined based on RunOn property of the class. So if a class has RunOn property equals to "Client", then method2() will always be called on the client tier but method1() will be called on the tier where it was called from.
Considering that it is a best practice to explicitly mark methods with both client and server keywords if it is designed to be executed on both tiers.

11 comments:

  1. Heуa і am for thе first time herе.
    I came аcross thіs boarԁ and I tо
    find Ιt truly hеlρful & it helped me out much.
    I am hοping to рrovіԁe sоmething bacκ anԁ
    аid others such аѕ уou hеlреd me.



    my web blog; H�morrhoiden

    ReplyDelete
  2. Τhis web sіtе reаlly has all the infoгmatiоn and fасtѕ I needeԁ аbout thіs subject
    and didn't know who to ask.

    my page :: female muscle bodybuilding

    ReplyDelete
  3. I loved as much as you'll receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get bought an impatience over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly very often inside case you shield this increase.

    my blog :: bypass pruners

    ReplyDelete
  4. Hi there! I'm at work browsing your blog from my new iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Keep up the excellent work!

    Here is my homepage - snoring mouth piece

    ReplyDelete
  5. An impressive share! I have just forwarded this
    onto a coworker who had been doing a little research on this.

    And he in fact ordered me lunch due to the fact that I stumbled upon it for him.
    .. lol. So let me reword this.... Thank YOU for the meal!
    ! But yeah, thanx for spending some time to discuss this issue here on your web site.



    My website stop storing devices

    ReplyDelete
  6. Howdy! I could have sworn I've been to this site before but after browsing through some of the post I realized it's new
    to me. Nonetheless, I'm definitely delighted I found it and I'll be bookmarking and
    checking back often!

    my webpage; 2010 mazda3 for sale

    ReplyDelete