You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- namespace Discord.Net.Udp
- {
- public static class DefaultUdpSocketProvider
- {
- public static readonly UdpSocketProvider Instance = () =>
- {
- try
- {
- return new DefaultUdpSocket();
- }
- catch (PlatformNotSupportedException ex)
- {
- throw new PlatformNotSupportedException("The default UdpSocketProvider is not supported on this platform.", ex);
- }
- };
- }
- }
|