PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/ResourceManagement.Client/IResourceTypeFactory.cs

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