|
@@ -4,7 +4,7 @@ using System.Collections.Generic; |
|
|
|
|
|
|
|
|
namespace Discord |
|
|
namespace Discord |
|
|
{ |
|
|
{ |
|
|
public class ServiceManager |
|
|
|
|
|
|
|
|
public class ServiceManager : IEnumerable<IService> |
|
|
{ |
|
|
{ |
|
|
private readonly Dictionary<Type, IService> _services; |
|
|
private readonly Dictionary<Type, IService> _services; |
|
|
|
|
|
|
|
@@ -38,6 +38,8 @@ namespace Discord |
|
|
return singletonT; |
|
|
return singletonT; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
IEnumerator<IService> IEnumerable<IService>.GetEnumerator() => _services.Values.GetEnumerator(); |
|
|
|
|
|
|
|
|
public IEnumerator GetEnumerator() => _services.Values.GetEnumerator(); |
|
|
public IEnumerator GetEnumerator() => _services.Values.GetEnumerator(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |