/Source/ResourceManagement.Client/IResourceTypeFactory.cs
C# | 20 lines | 11 code | 2 blank | 7 comment | 0 complexity | 15e7ba94a72f5c5a46331df08af0047a MD5 | raw file
1using System; 2using System.Collections.Generic; 3using System.Text; 4 5using Microsoft.ResourceManagement.ObjectModel; 6 7namespace Microsoft.ResourceManagement.Client 8{ 9 public interface IResourceTypeFactory 10 { 11 /// <summary> 12 /// Returns a new strongly-typed resource based on the resource type name. 13 /// 14 /// If a strongly-typed RmResource is not available, a generic RmResource is returned instead. 15 /// </summary> 16 /// <param name="resourceType">The resource type name. "Group" or "Person" for example.</param> 17 /// <returns>A new resource that is strongly typed.</returns> 18 RmResource CreateResource(String resourceType); 19 } 20}