mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-19 13:45:12 +00:00
@@ -2,6 +2,7 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Net;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
@@ -158,6 +159,7 @@ namespace Octokit
|
||||
ApiError = (ApiError) info.GetValue("ApiError", typeof(ApiError));
|
||||
}
|
||||
|
||||
[SecurityCritical]
|
||||
public override void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
base.GetObjectData(info, context);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
@@ -94,6 +95,7 @@ namespace Octokit
|
||||
?? new RateLimit(new Dictionary<string, string>());
|
||||
}
|
||||
|
||||
[SecurityCritical]
|
||||
public override void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
base.GetObjectData(info, context);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
@@ -117,6 +118,7 @@ namespace Octokit
|
||||
ExistingRepositoryWebUrl = (Uri) info.GetValue("ExistingRepositoryWebUrl", typeof(Uri));
|
||||
}
|
||||
|
||||
[SecurityCritical]
|
||||
public override void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
base.GetObjectData(info, context);
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
@@ -51,6 +52,7 @@ namespace Octokit
|
||||
message = info.GetString("Message");
|
||||
}
|
||||
|
||||
[SecurityCritical]
|
||||
public override void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
base.GetObjectData(info, context);
|
||||
|
||||
@@ -4,6 +4,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
@@ -48,6 +49,7 @@ namespace Octokit
|
||||
message = info.GetString("Message");
|
||||
}
|
||||
|
||||
[SecurityCritical]
|
||||
public override void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
base.GetObjectData(info, context);
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Net;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
@@ -80,6 +81,7 @@ namespace Octokit
|
||||
TwoFactorType = (TwoFactorType) info.GetInt32("TwoFactorType");
|
||||
}
|
||||
|
||||
[SecurityCritical]
|
||||
public override void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
base.GetObjectData(info, context);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
@@ -64,7 +65,7 @@ namespace Octokit
|
||||
if (info == null) return;
|
||||
AuthorizationCode = info.GetString("AuthorizationCode");
|
||||
}
|
||||
|
||||
[SecurityCritical]
|
||||
public override void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
base.GetObjectData(info, context);
|
||||
|
||||
@@ -4,6 +4,7 @@ using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security;
|
||||
using Octokit.Helpers;
|
||||
using Octokit.Internal;
|
||||
|
||||
@@ -82,6 +83,7 @@ namespace Octokit
|
||||
ResetAsUtcEpochSeconds = info.GetInt64("ResetAsUtcEpochSeconds");
|
||||
}
|
||||
|
||||
[SecurityCritical]
|
||||
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
Ensure.ArgumentNotNull(info, "info");
|
||||
|
||||
Reference in New Issue
Block a user