2024-05-06 10:32:17 -03:00
|
|
|
#ifndef XNA_CSHARP_SERVICE_HPP
|
|
|
|
#define XNA_CSHARP_SERVICE_HPP
|
|
|
|
|
|
|
|
#include "../default.hpp"
|
|
|
|
#include "type.hpp"
|
|
|
|
#include <any>
|
|
|
|
|
|
|
|
namespace xna {
|
2024-05-29 09:42:18 -03:00
|
|
|
//A simplified port of the System.IServiceProvider
|
|
|
|
//Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
|
2024-05-06 10:32:17 -03:00
|
|
|
class IServiceProvider {
|
|
|
|
public:
|
2024-05-29 09:42:18 -03:00
|
|
|
//Gets the service object of the specified type.
|
2024-05-06 10:32:17 -03:00
|
|
|
virtual std::any GetService(Type& serviceType) = 0;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|