Interface IPolicySerializer
Defines policy serializer interface.
Namespace: Nevatech.Vsb.Repository.Services.Policies
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public interface IPolicySerializer
Methods
CanSerialize(PolicyDescription)
When implemented by a class, checks whether serialization of the specified policy description is supported by this instance.
Declaration
bool CanSerialize(PolicyDescription policyDescription)
Parameters
Type | Name | Description |
---|---|---|
PolicyDescription | policyDescription | The policy description. |
Returns
Type | Description |
---|---|
Boolean | True if serialization of |
Serialize(PolicyDescription)
When implemented by a class, serializes specified policy definition to string.
Declaration
string Serialize(PolicyDescription policyDescription)
Parameters
Type | Name | Description |
---|---|---|
PolicyDescription | policyDescription | The policy definition to serialize. |
Returns
Type | Description |
---|---|
String | The serialized policy. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if the specified |