StatelessServices.cs 479 B

12345678910111213141516171819202122232425
  1. namespace OpenVIII.Fields.Scripts
  2. {
  3. public sealed class StatelessServices : IServices
  4. {
  5. #region Constructors
  6. private StatelessServices()
  7. {
  8. }
  9. #endregion Constructors
  10. #region Properties
  11. public static IServices Instance { get; } = new StatelessServices();
  12. #endregion Properties
  13. #region Methods
  14. public T Service<T>(ServiceId<T> id) => (T)(object)id;
  15. #endregion Methods
  16. }
  17. }