Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Revert "Add StreamingContext public APIs back to contract" #10707

Merged
merged 2 commits into from
Aug 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/System.Data.SqlClient/tests/ManualTests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"System.Runtime.Extensions": "4.1.1-beta-24411-04",
"System.Runtime.Handles": "4.0.2-beta-24411-04",
"System.Runtime.InteropServices": "4.2.0-beta-24411-04",
"System.Runtime.Serialization.Primitives": "4.2.0-beta-24411-04",
"System.Runtime.Serialization.Primitives": "4.1.1",
"System.Security.Principal": "4.0.2-beta-24411-04",
"System.Security.Principal.Windows": "4.0.1-beta-24411-04",
"System.Text.Encoding": "4.0.12-beta-24411-04",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"System.Reflection.TypeExtensions": "4.1.1-beta-24411-04",
"System.Runtime": "4.1.1-beta-24411-04",
"System.Runtime.Extensions": "4.1.1-beta-24411-04",
"System.Runtime.Serialization.Primitives": "4.2.0-beta-24411-04",
"System.Runtime.Serialization.Primitives": "4.1.1",
"System.Text.RegularExpressions": "4.2.0-beta-24411-04",
"test-runtime": {
"target": "project",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"System.ObjectModel": "4.0.13-beta-24411-04",
"System.Runtime": "4.1.1-beta-24411-04",
"System.Runtime.Extensions": "4.1.1-beta-24411-04",
"System.Runtime.Serialization.Primitives": "4.2.0-beta-24411-04",
"System.Runtime.Serialization.Primitives": "4.1.1",
"System.Runtime.Serialization.Json": "4.0.3-beta-24411-04",
"System.Runtime.Serialization.Xml": "4.1.2-beta-24411-04",
"System.Threading.Tasks": "4.0.12-beta-24411-04",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,24 +114,7 @@ public SerializationException(string message, System.Exception innerException) {
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct StreamingContext
{
public StreamingContext(System.Runtime.Serialization.StreamingContextStates state) { }
public StreamingContext(System.Runtime.Serialization.StreamingContextStates state, object additional) { }
public override bool Equals(object obj) { return default(bool); }
public override int GetHashCode() { return default(int); }
public System.Runtime.Serialization.StreamingContextStates State { get { return default(System.Runtime.Serialization.StreamingContextStates); } }
public object Context { get { return default(object); } }
}
[Flags]
public enum StreamingContextStates
{
CrossProcess = 0x01,
CrossMachine = 0x02,
File = 0x04,
Persistence = 0x08,
Remoting = 0x10,
Other = 0x20,
Clone = 0x40,
CrossAppDomain = 0x80,
All = 0xFF,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.1.2.0</AssemblyVersion>
<OutputType>Library</OutputType>
<PackageTargetFramework>netstandard1.3</PackageTargetFramework>
<NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<AssemblyName>System.Runtime.Serialization.Primitives</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.1.2.0</AssemblyVersion>
<RootNamespace>System.Runtime.Serialization.Primitives</RootNamespace>
<NoWarn>$(NoWarn);1634;1691;649</NoWarn>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ public struct StreamingContext
internal Object m_additionalContext;
internal StreamingContextStates m_state;

public StreamingContext(StreamingContextStates state)
internal StreamingContext(StreamingContextStates state)
: this(state, null)
{
}

public StreamingContext(StreamingContextStates state, Object additional)
internal StreamingContext(StreamingContextStates state, Object additional)
{
m_state = state;
m_additionalContext = additional;
}

public Object Context
internal Object Context
{
get { return m_additionalContext; }
}
Expand All @@ -52,7 +52,7 @@ public override int GetHashCode()
return (int)m_state;
}

public StreamingContextStates State
internal StreamingContextStates State
{
get { return m_state; }
}
Expand All @@ -62,7 +62,7 @@ public StreamingContextStates State
// Keep these in sync with the version in vm\runtimehandles.h
// **********************************************************
[Flags]
public enum StreamingContextStates
internal enum StreamingContextStates
{
CrossProcess = 0x01,
CrossMachine = 0x02,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"System.ObjectModel": "4.0.13-beta-24411-04",
"System.Runtime": "4.1.1-beta-24411-04",
"System.Runtime.Extensions": "4.1.1-beta-24411-04",
"System.Runtime.Serialization.Primitives": "4.2.0-beta-24411-04",
"System.Runtime.Serialization.Primitives": "4.1.1",
"System.Runtime.Serialization.Json": "4.0.3-beta-24411-04",
"System.Runtime.Serialization.Xml": "4.1.2-beta-24411-04",
"System.Text.Encoding": "4.0.12-beta-24411-04",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"System.Reflection": "4.1.1-beta-24411-04",
"System.Runtime": "4.1.1-beta-24411-04",
"System.Runtime.Extensions": "4.1.1-beta-24411-04",
"System.Runtime.Serialization.Primitives": "4.2.0-beta-24411-04",
"System.Runtime.Serialization.Primitives": "4.1.1",
"System.Runtime.Serialization.Json": "4.0.3-beta-24411-04",
"System.Runtime.Serialization.Xml": "4.1.2-beta-24411-04",
"System.Text.Encoding": "4.0.12-beta-24411-04",
Expand Down