-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from richorama/master
Master
- Loading branch information
Showing
15 changed files
with
228 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 0 additions & 78 deletions
78
Orleans.StorageProviders.RedisStorage.GrainClasses/Properties/orleans.codegen.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +0,0 @@ | ||
#if !EXCLUDE_CODEGEN | ||
#pragma warning disable 162 | ||
#pragma warning disable 219 | ||
#pragma warning disable 414 | ||
#pragma warning disable 649 | ||
#pragma warning disable 693 | ||
#pragma warning disable 1591 | ||
#pragma warning disable 1998 | ||
[assembly: global::System.CodeDom.Compiler.GeneratedCodeAttribute("Orleans-CodeGenerator", "1.2.3.0")] | ||
[assembly: global::Orleans.CodeGeneration.OrleansCodeGenerationTargetAttribute("Orleans.StorageProviders.RedisStorage.GrainClasses, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")] | ||
namespace Orleans.StorageProviders.RedisStorage.GrainClasses | ||
{ | ||
using global::Orleans.Async; | ||
using global::Orleans; | ||
|
||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Orleans-CodeGenerator", "1.2.3.0"), global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, global::Orleans.CodeGeneration.SerializerAttribute(typeof (global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState)), global::Orleans.CodeGeneration.RegisterSerializerAttribute] | ||
internal class OrleansCodeGenOrleans_StorageProviders_RedisStorage_GrainClasses_MyStateSerializer | ||
{ | ||
[global::Orleans.CodeGeneration.CopierMethodAttribute] | ||
public static global::System.Object DeepCopier(global::System.Object original) | ||
{ | ||
global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState input = ((global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState)original); | ||
global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState result = new global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState(); | ||
result.@DateTimeValue = input.@DateTimeValue; | ||
result.@Etag = input.@Etag; | ||
result.@GrainValue = (global::Orleans.StorageProviders.RedisStorage.GrainInterfaces.IGrain1)global::Orleans.Serialization.SerializationManager.@DeepCopyInner(input.@GrainValue); | ||
result.@GuidValue = (global::System.Guid)global::Orleans.Serialization.SerializationManager.@DeepCopyInner(input.@GuidValue); | ||
result.@IntValue = input.@IntValue; | ||
result.@StringValue = input.@StringValue; | ||
global::Orleans.@Serialization.@SerializationContext.@Current.@RecordObject(original, result); | ||
return result; | ||
} | ||
|
||
[global::Orleans.CodeGeneration.SerializerMethodAttribute] | ||
public static void Serializer(global::System.Object untypedInput, global::Orleans.Serialization.BinaryTokenStreamWriter stream, global::System.Type expected) | ||
{ | ||
global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState input = (global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState)untypedInput; | ||
global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@DateTimeValue, stream, typeof (global::System.DateTime)); | ||
global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@Etag, stream, typeof (global::System.String)); | ||
global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@GrainValue, stream, typeof (global::Orleans.StorageProviders.RedisStorage.GrainInterfaces.IGrain1)); | ||
global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@GuidValue, stream, typeof (global::System.Guid)); | ||
global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@IntValue, stream, typeof (global::System.Int32)); | ||
global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@StringValue, stream, typeof (global::System.String)); | ||
} | ||
|
||
[global::Orleans.CodeGeneration.DeserializerMethodAttribute] | ||
public static global::System.Object Deserializer(global::System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream) | ||
{ | ||
global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState result = new global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState(); | ||
global::Orleans.@Serialization.@DeserializationContext.@Current.@RecordObject(result); | ||
result.@DateTimeValue = (global::System.DateTime)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.DateTime), stream); | ||
result.@Etag = (global::System.String)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.String), stream); | ||
result.@GrainValue = (global::Orleans.StorageProviders.RedisStorage.GrainInterfaces.IGrain1)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::Orleans.StorageProviders.RedisStorage.GrainInterfaces.IGrain1), stream); | ||
result.@GuidValue = (global::System.Guid)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Guid), stream); | ||
result.@IntValue = (global::System.Int32)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.Int32), stream); | ||
result.@StringValue = (global::System.String)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof (global::System.String), stream); | ||
return (global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState)result; | ||
} | ||
|
||
public static void Register() | ||
{ | ||
global::Orleans.Serialization.SerializationManager.@Register(typeof (global::Orleans.StorageProviders.RedisStorage.GrainClasses.MyState), DeepCopier, Serializer, Deserializer); | ||
} | ||
|
||
static OrleansCodeGenOrleans_StorageProviders_RedisStorage_GrainClasses_MyStateSerializer() | ||
{ | ||
Register(); | ||
} | ||
} | ||
} | ||
#pragma warning restore 162 | ||
#pragma warning restore 219 | ||
#pragma warning restore 414 | ||
#pragma warning restore 649 | ||
#pragma warning restore 693 | ||
#pragma warning restore 1591 | ||
#pragma warning restore 1998 | ||
#endif | ||
19 changes: 19 additions & 0 deletions
19
Orleans.StorageProviders.RedisStorage.GrainClasses/app.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-1.2.1.0" newVersion="1.2.1.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Reflection.Metadata" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-1.4.1.0" newVersion="1.4.1.0" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
18 changes: 9 additions & 9 deletions
18
Orleans.StorageProviders.RedisStorage.GrainClasses/packages.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.CodeAnalysis.Analyzers" version="1.0.0" targetFramework="net452" /> | ||
<package id="Microsoft.CodeAnalysis.Common" version="1.0.0" targetFramework="net452" /> | ||
<package id="Microsoft.CodeAnalysis.CSharp" version="1.0.0" targetFramework="net452" /> | ||
<package id="Microsoft.Orleans.Core" version="1.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.Orleans.OrleansCodeGenerator" version="1.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.Orleans.OrleansCodeGenerator.Build" version="1.2.3" targetFramework="net452" /> | ||
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net452" /> | ||
<package id="System.Collections.Immutable" version="1.1.36" targetFramework="net452" /> | ||
<package id="System.Reflection.Metadata" version="1.0.21" targetFramework="net452" /> | ||
<package id="Microsoft.CodeAnalysis.Analyzers" version="1.1.0" targetFramework="net452" /> | ||
<package id="Microsoft.CodeAnalysis.Common" version="1.3.2" targetFramework="net452" /> | ||
<package id="Microsoft.CodeAnalysis.CSharp" version="1.3.2" targetFramework="net452" /> | ||
<package id="Microsoft.Orleans.Core" version="1.3.1" targetFramework="net452" /> | ||
<package id="Microsoft.Orleans.OrleansCodeGenerator" version="1.3.1" targetFramework="net452" /> | ||
<package id="Microsoft.Orleans.OrleansCodeGenerator.Build" version="1.3.1" targetFramework="net452" /> | ||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" /> | ||
<package id="System.Collections.Immutable" version="1.3.1" targetFramework="net452" /> | ||
<package id="System.Reflection.Metadata" version="1.4.2" targetFramework="net452" /> | ||
</packages> |
Oops, something went wrong.