mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
update portable projects
This commit is contained in:
27
ServiceStack/Host/ServiceMetadata.cs
Normal file
27
ServiceStack/Host/ServiceMetadata.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ServiceStack.Host
|
||||
{
|
||||
public class ServiceMetadata
|
||||
{
|
||||
public ServiceMetadata()
|
||||
{
|
||||
this.OperationsMap = new Dictionary<Type, Type>();
|
||||
}
|
||||
|
||||
public Dictionary<Type, Type> OperationsMap { get; protected set; }
|
||||
|
||||
public void Add(Type serviceType, Type requestType, Type responseType)
|
||||
{
|
||||
this.OperationsMap[requestType] = serviceType;
|
||||
}
|
||||
|
||||
public Type GetServiceTypeByRequest(Type requestType)
|
||||
{
|
||||
Type serviceType;
|
||||
OperationsMap.TryGetValue(requestType, out serviceType);
|
||||
return serviceType;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user