• Remotable and Nonremotable Objects


    Remotable and Nonremotable Objects

    It is important to remember that an object created in, and therefore specific to, an application domain can be called directly from that domain, but something special must occur before that object can be available outside its domain. Not every type of object can be efficiently published or consumed across domain boundaries; therefore, you must decide which type of object you want to publish based on the needs of your application.

    For the purposes of distributed applications, there are two simple categories of objects:

    • Nonremotable objects.

      Nonremotable objects cannot be copied or represented in another application domain. These objects are accessible only from their original application domain.

    • Some objects cannot leave their application domain; they are never marshaled because they do not declare a method of serialization. These nonremotable objects are designed for use within the same application domain in which they were created, and are always accessed directly from that application domain. Most base classes in the .NET Framework class library are nonremotable objects.

    • Remotable objects.

      Remotable objects can be accessed outside their application domain or context using a proxy, or they can be copied and these copies can be passed outside their application domain or context; that is, some remotable objects are passed by reference and some are passed by value.

    See Also

    .NET Remoting Overview | Making Objects Remotable | Nonremotable Objects | Remotable Objects | Scope of Publication

  • 相关阅读:
    python2和python3的区别
    星球大战
    [USACO]高低卡(金)High Card Low Card (Gold)
    学习笔记
    叶子的染色
    大问题
    ...
    考试前...
    [HAOI2010]计数
    [POI2006]OKR-Periods of Words
  • 原文地址:https://www.cnblogs.com/MayGarden/p/1643939.html
Copyright © 2020-2023  润新知