نمایش نتایج 1 تا 5 از 5

نام تاپیک: MarshalByRefObject ???

  1. #1
    کاربر دائمی آواتار manager
    تاریخ عضویت
    شهریور 1384
    محل زندگی
    Z
    سن
    38
    پست
    771

    MarshalByRefObject ???

    سلام

    اگر می شه در مورد MarshalByRefObject و MarshalByValue مطالبی رو بیان کنید ممنون می شم (بیشتر تو مباحث Remoting) ..

    پیشاپیش ممنونم..

  2. #2
    کاربر دائمی آواتار manager
    تاریخ عضویت
    شهریور 1384
    محل زندگی
    Z
    سن
    38
    پست
    771
    تا به حال کسی با این اشیائی از این نوع کار نکرده است ؟

  3. #3
    کاربر دائمی آواتار M.GhanaatPisheh
    تاریخ عضویت
    اردیبهشت 1383
    محل زندگی
    ----------
    پست
    1,267
    توضیح مختصر در مورد Remoting :
    همونطور که می دونید یه Remoting App. شامل دو بخش هسست که یکی روی سرور اجرا می شه و یکی دیگه روی کلاینت.
    Server Side بوسیله یه Windows Service پیغامهای Client Side رو در یافت در یافت و پردازش می کنه .
    روی کلاینت با ساختن یه Proxy می تونیم به Server Side App دسترسی داشته باشیم.
    قابل ذکر هست که از طریق دو کانال HTTP و TCP توانایی ارتباط دارند که HTTP Channel اغلب در محلی از اینترنت که فایروالها نیاز به انتقال دارند استفاده می ه و TCP از طریق ارتباط مستقیم سوکت ها توسعه داده می شود.

    Marshal-by-Value Objects
    Marshal-by-value objects should implement the ISerializable interface or should be marked with the SerializableAttribute attribute so that the remoting system can serialize these objects automatically. When the client calls a method on marshal-by-value objects, the remoting system creates a copy of these objects and passes the copy to the client application domain. After the client application receives the copy, the copy in the client application domain handles any method call. In addition, when marshal-by-value objects are passed as arguments, a copy of the object is passed to the method.

    To improve performance and reduce processing time, move the complete state of the object and its functionality to the target application domain. Using marshal-by-value objects reduces time- and resource-consuming trips across network, process, and application domain boundaries. You also use marshal-by-value objects directly from within the original application domain of the object. In this case, access is efficient because marshaling does not take place.

    Marshal-by-Reference Objects
    Marshal-by-reference objects are remotable objects that extend the System.?Marshal-ByRefObject class. When a client creates an instance of a marshal-by-reference object in its own application domain, the .NET Remoting infrastructure creates a proxy object in the caller application domain that represents the marshal-by-?reference object and returns a reference of that proxy to the caller. The client then makes method calls to the proxy object. The remoting system marshals those calls, returns them to the server application domain, and invokes the call on the actual object
    آخرین ویرایش به وسیله M.GhanaatPisheh : یک شنبه 24 اردیبهشت 1385 در 22:47 عصر

  4. #4
    کاربر تازه وارد
    تاریخ عضویت
    دی 1384
    محل زندگی
    اصفهان
    پست
    66
    دوست عزیز فکر کنم کدهای لینک زیر به دردت بخوره یه نگاهی بشون بنداز
    http://dotnet.di.unipi.it/content/ss...cs-source.html

  5. #5
    کاربر دائمی آواتار manager
    تاریخ عضویت
    شهریور 1384
    محل زندگی
    Z
    سن
    38
    پست
    771
    یک دنیا ممنون

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •