.NET Remoting

.NET Remoting is a Microsoft для программный интерфейс приложений (API) for межпроцессного взаимодействия, released in 2002 with the 1.0 version of .NET Framework. It is one in a series of Microsoft technologies that began in 1990 with the first version of Object Linking and Embedding (OLE) for 16-bit Windows. Intermediate steps in the development of these technologies were Component Object Model (COM) released in 1993 and updated in 1995 as COM-95, Distributed Component Object Model (DCOM), released in 1997 (and renamed ActiveX), and COM+ with its Microsoft Transaction Server (MTS), released in 2000.[1] It is now superseded by Windows Communication Foundation (WCF), which is part of the .NET Framework 3.0.

Как и его собратья и аналогичные технологии, такие как Common Object Request Broker Architecture (CORBA) и удаленный вызов методов (RMI) в Java, .NET Remoting сложен, но его суть проста. С помощью операционной системы и сетевых агентов клиентский процесс отправляет сообщение серверному процессу и получает ответ. [2][3]

Обзор

.NET Remoting позволяет приложению сделать объект (называемый удаленным объектом ) доступным через границы удаленного доступа, которые включают различные домены приложений, процессы или даже разные компьютеры, подключенные к сети. [4] Среда выполнения .NET Remoting размещает слушатель запросов к объекту в домене приложения серверного приложения. На стороне клиента любые запросы к удаленному объекту передаются через среду выполнения .NET Remoting с помощью Channelобъектов, которые инкапсулируют фактический режим передачи, включая потоки TCP, потоки HTTP и именованные каналы. В результате, путем создания соответствующих Channelобъектов, приложение .NET Remoting может поддерживать различные протоколы связи без перекомпиляции приложения. Сама среда выполнения управляет сериализацией и маршалингом объектов между доменами приложений клиента и сервера. [4]

.NET Remoting makes a reference of a remotable object available to a client application, which then instantiates and uses a remotable object as if it were a local object.[4] However, the actual code execution happens at the server-side. A remotable object is identified by Activation URL-адресов and are instantiated by a connection to the URL.[5] A listener for the object is created by the remoting runtime when the server registers the channel that is used to connect to the remotable object. At the client side, the remoting infrastructure creates a proxy that stands-in as a pseudo-instantiation of the remotable object. It does not implement the functionality of the remotable object, but presents a similar interface. As such, the remoting infrastructure needs to know the public interface of the remotable object beforehand. Any method calls made against the object, including the identity of the method and any parameters passed, are сериализуются to a byte stream and transferred over a communication protocol-dependent Channel to a recipient proxy object at the server side ("маршалированный"), by writing to the Channel's transport sink.[5] At the server side, the proxy reads the stream off the sink and makes the call to the remotable object on the behalf of the client. The results are serialized and transferred over the sink to the client, where the proxy reads the result and hands it over to the calling application.[5] If the remotable object needs to make a callback to a client object for some services, the client application must mark it as remotable and have a remoting runtime host a listener for it.[5] The server can connect to it over a different Channel, or over the already existent one if the underlying connection supports bidirectional communication.[5] A channel can be composed of a number of different Channel objects, possibly with different heterogeneous transports. Thus, remoting can also work across systems separated by an interconnection of heterogeneous networks, including the Internet.[5] Типовая безопасность is enforced by the и and the .NET Remoting runtime. Remote method calls are inherently synchronous; asynchronous calls can be implemented using threading libraries. Authentication and access control can be implemented for clients by either using custom Channels or by hosting the remotable objects in IIS and then using the IIS authentication system.[6]

Ссылки

  1. ↑ Дорожная карта развития программных технологий (2001). «Компонентная объектная модель и связанные с ней возможности». Институт программной инженерии Карнеги-Меллона. Заархивировано с оригинала on 2008-05-15.
  2. ↑ McLean, Scott; Naftel, James; Kim, Williams (2002). Удаленное взаимодействие в Microsoft .NET. Microsoft Press. ISBN 9780585476445.
  3. ↑ Rammer, Ingo; Szpuszta, Mario (2005). Расширенное удаленное взаимодействие .NET. Apress. ISBN 9781590594179.
  4. 1 2 3 «Обзор удаленного доступа .NET» . Retrieved 2007-10-23.
  5. 1 2 3 4 5 6 "Архитектура удаленного доступа .NET" . Retrieved 2007-10-23.
  6. ↑ «Безопасность». MSDN. 12 October 2006. Retrieved 2007-10-23.

Источники

  • Участники английской Википедии. «.NET Remoting». Перевод на русский. CC BY-SA 4.0 (текст и перевод).

Источники иллюстраций

  1. Wikibooks-logo-en-noslogan.svg · Лицензия файла уточняется
Соглашение О проекте Обратная связь
2026, Альфапедия. Список материалов:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25