Bài giảng Công nghệ lập trình tiên tiến: Chương 5 - ĐH Công nghệ Đồng Nai

Bài giảng Công nghệ lập trình tiên tiến: Chương 5 trình bày các kiến thức về lập trình trong .Net Remoting như đặc điểm, công dụng, câu lệnh, cú pháp,. Đây là tài liệu dành cho sinh viên ngành Công nghệ thông tin. | .NET Remoting 1 Net Remoting Definition: • Application which is located in another application domain or process can communicate with another by using .Net Remoting. • Net Remoting allows processes to share the objects. It can call the method and can access the properties of an objects that are: Hosted in different application domain with in the same process or Different process executing on same computer or Different computers connected by LAN or Different computer distributed over world wide Modern applications are no longer stand-alone applications. .NET Remoting: - Provides a solution for communication between application domains You known Application Domain ?: Application domain is the collection of classes, which isolate these from other applications. The application in one application domain could not access the application in other application domain (without using Remoting) 2 Object type • It can be accessed outside its application domain. Remotable Object Non Remotable . | .NET Remoting 1 Net Remoting Definition: • Application which is located in another application domain or process can communicate with another by using .Net Remoting. • Net Remoting allows processes to share the objects. It can call the method and can access the properties of an objects that are: Hosted in different application domain with in the same process or Different process executing on same computer or Different computers connected by LAN or Different computer distributed over world wide Modern applications are no longer stand-alone applications. .NET Remoting: - Provides a solution for communication between application domains You known Application Domain ?: Application domain is the collection of classes, which isolate these from other applications. The application in one application domain could not access the application in other application domain (without using Remoting) 2 Object type • It can be accessed outside its application domain. Remotable Object Non Remotable Object CLR objects cannot, by default, be used outside their AppDomain - No way to copy them - No way to reference them Exception occurs when you try to pass an object reference to a different domain SO: It can not be accessed outside its own application domain. Remotable Object: Can request that instances of a class be accessible outside original AppDomain – Client get a copy of the object – Client get a reference (proxy) to the original object When an object is Remotable? The object should inherit the class Two Types of Remotable Objects are there – Marshal by Value – Marshal by Reference *More detail later Object Serialization: Conversion of an object (instance) into a data stream of bytes, Serialization is a method of persisting objects for storage in a database, to various media, or during marshaling—the process of moving an object to a new application domain, context, process, or system. Serialization is performed by the Common Language Runtime (CLR). .

Không thể tạo bản xem trước, hãy bấm tải xuống
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.