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