Class ManagedNetworkInterfaceExtensions
Extension methods to work with a managed INetworkInterface.
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: Unity.Networking.Transport.dll
Syntax
public static class ManagedNetworkInterfaceExtensions
Methods
WrapToUnmanaged<T>(T)
Creates an unmanaged wrapper for a managed INetworkInterface.
Declaration
[Obsolete("This method is no longer necessary. Managed network interfaces can now be used directly in NetworkDriver.")]
public static NetworkInterfaceUnmanagedWrapper<T> WrapToUnmanaged<T>(this T networkInterface) where T : INetworkInterface
Parameters
| Type | Name | Description |
|---|---|---|
| T | networkInterface | Interface instance to wrap. |
Returns
| Type | Description |
|---|---|
| NetworkInterfaceUnmanagedWrapper<T> | Unmanaged wrapper instance for the network interface. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the managed network interface. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | If the type network interface is already an unmanaged type. |