Line data Source code
1 : #region Copyright
2 : // -----------------------------------------------------------------------
3 : // <copyright company="Chinchilla Software Limited">
4 : // Copyright Chinchilla Software Limited. All rights reserved.
5 : // </copyright>
6 : // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System;
10 : using System.Runtime.Serialization;
11 : using System.Xml;
12 :
13 : namespace Cqrs.Services
14 : {
15 : /// <summary>
16 : /// Resolves parameter types when serialising with WCF.
17 : /// </summary>
18 : public interface IServiceParameterResolver
19 : {
20 : /// <summary>
21 : /// Indicates if the provided <paramref name="typeName"/> is resolvable.
22 : /// </summary>
23 1 : Type ResolveName(string typeName, string typeNamespace, Type declaredType, DataContractResolver knownTypeResolver);
24 :
25 : /// <summary>
26 : /// Returns the <see cref="Type"/> if the <paramref name="typeName"/> is resolvable.
27 : /// </summary>
28 1 : bool TryResolveType(Type dataContractType, Type declaredType, DataContractResolver knownTypeResolver, out XmlDictionaryString typeName, out XmlDictionaryString typeNamespace);
29 : }
30 : }
|