This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Add marshal by ref to entities
feature/marshal-by-ref
Quin Lynch
3 years ago
parent
d3a532f013
commit
988536635b
2 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
src/Discord.Net.Rest/Entities/RestEntity.cs
+1
-1
src/Discord.Net.WebSocket/Entities/SocketEntity.cs
+ 2
- 2
src/Discord.Net.Rest/Entities/RestEntity.cs
View File
@@ -1,8 +1,8 @@
using System;
using System;
namespace Discord.Rest
{
public abstract class RestEntity<T> : IEntity<T>
public abstract class RestEntity<T> :
MarshalByRefObject,
IEntity<T>
where T : IEquatable<T>
{
internal BaseDiscordClient Discord { get; }
+ 1
- 1
src/Discord.Net.WebSocket/Entities/SocketEntity.cs
View File
@@ -2,7 +2,7 @@ using System;
namespace Discord.WebSocket
{
public abstract class SocketEntity<T> : IEntity<T>
public abstract class SocketEntity<T> :
MarshalByRefObject,
IEntity<T>
where T : IEquatable<T>
{
internal DiscordSocketClient Discord { get; }
Write
Preview
Loading…
Cancel
Save