Class ModelComponentUpgradeConverter.UpgradeAlgorithm
Inheritance
System.Object
ModelComponentUpgradeConverter.UpgradeAlgorithm
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class UpgradeAlgorithm
Constructors
UpgradeAlgorithm(ModelComponentUpgradeConverter.VersionPattern, String, Func<JObject, JsonSerializer, ILifetimeScope, JObject>)
Declaration
public UpgradeAlgorithm(ModelComponentUpgradeConverter.VersionPattern versionPattern, string versionAfterUpgrade, Func<JObject, JsonSerializer, ILifetimeScope, JObject> upgradeFunction)
Parameters
| Type |
Name |
Description |
| ModelComponentUpgradeConverter.VersionPattern |
versionPattern |
|
| System.String |
versionAfterUpgrade |
|
| System.Func<Newtonsoft.Json.Linq.JObject, Newtonsoft.Json.JsonSerializer, Autofac.ILifetimeScope, Newtonsoft.Json.Linq.JObject> |
upgradeFunction |
|
UpgradeAlgorithm(ModelComponentUpgradeConverter.VersionPattern, String, Func<JObject, JsonSerializer, JObject>)
Declaration
public UpgradeAlgorithm(ModelComponentUpgradeConverter.VersionPattern versionPattern, string versionAfterUpgrade, Func<JObject, JsonSerializer, JObject> upgradeFunction)
Parameters
| Type |
Name |
Description |
| ModelComponentUpgradeConverter.VersionPattern |
versionPattern |
|
| System.String |
versionAfterUpgrade |
|
| System.Func<Newtonsoft.Json.Linq.JObject, Newtonsoft.Json.JsonSerializer, Newtonsoft.Json.Linq.JObject> |
upgradeFunction |
|
UpgradeAlgorithm(String, String, Func<JObject, JsonSerializer, ILifetimeScope, JObject>)
Declaration
public UpgradeAlgorithm(string affectedVersions, string versionAfterUpgrade, Func<JObject, JsonSerializer, ILifetimeScope, JObject> upgradeFunction)
Parameters
| Type |
Name |
Description |
| System.String |
affectedVersions |
|
| System.String |
versionAfterUpgrade |
|
| System.Func<Newtonsoft.Json.Linq.JObject, Newtonsoft.Json.JsonSerializer, Autofac.ILifetimeScope, Newtonsoft.Json.Linq.JObject> |
upgradeFunction |
|
UpgradeAlgorithm(String, String, Func<JObject, JsonSerializer, JObject>)
Declaration
public UpgradeAlgorithm(string affectedVersions, string versionAfterUpgrade, Func<JObject, JsonSerializer, JObject> upgradeFunction)
Parameters
| Type |
Name |
Description |
| System.String |
affectedVersions |
|
| System.String |
versionAfterUpgrade |
|
| System.Func<Newtonsoft.Json.Linq.JObject, Newtonsoft.Json.JsonSerializer, Newtonsoft.Json.Linq.JObject> |
upgradeFunction |
|
Fields
VersionAfterUpgrade
Declaration
public readonly string VersionAfterUpgrade
Field Value
| Type |
Description |
| System.String |
|
VersionPattern
Declaration
public readonly ModelComponentUpgradeConverter.VersionPattern VersionPattern
Field Value
Methods
CanUpgrade(JObject)
Declaration
public virtual bool CanUpgrade(JObject serializedComponent)
Parameters
| Type |
Name |
Description |
| Newtonsoft.Json.Linq.JObject |
serializedComponent |
|
Returns
| Type |
Description |
| System.Boolean |
|
Upgrade(JObject, JsonSerializer, ILifetimeScope)
Declaration
public virtual JObject Upgrade(JObject serializedComponent, JsonSerializer serializer, ILifetimeScope scope)
Parameters
| Type |
Name |
Description |
| Newtonsoft.Json.Linq.JObject |
serializedComponent |
|
| Newtonsoft.Json.JsonSerializer |
serializer |
|
| Autofac.ILifetimeScope |
scope |
|
Returns
| Type |
Description |
| Newtonsoft.Json.Linq.JObject |
|