Automatically manages the lifetime of a remote object.
Namespace:
PostSharp.ExtensibilityAssembly: PostSharp.Core (in PostSharp.Core.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class RemotingAccessor(Of T As Class) _ Implements IDisposable |
| C# |
|---|
public class RemotingAccessor<T> : IDisposable where T : class |
| Visual C++ |
|---|
generic<typename T> where T : ref class public ref class RemotingAccessor : IDisposable |
Type Parameters
- T
- Type of the remove object.
Remarks
This type automates the use of ClientSponsor for
remote objects. It starts sponsoring the remove object when the
RemotingAccessor<(Of <(T>)>) instance is created, and stops
sponsoring when the RemotingAccessor<(Of <(T>)>) is disposed or
finalized. It helps implementing consistent remote sponsoring
without effort.
Inheritance Hierarchy
System..::.Object
PostSharp.Extensibility..::.RemotingAccessor<(Of <(T>)>)
PostSharp.Extensibility..::.MessageSinkAccessor
PostSharp.Extensibility..::.RemotingAccessor<(Of <(T>)>)
PostSharp.Extensibility..::.MessageSinkAccessor