Progress
This commit is contained in:
@ -10,6 +10,8 @@ namespace Aurora.Backend.Executors
|
||||
{
|
||||
}
|
||||
|
||||
public ExecutorType ExecutorType { get; protected set; }
|
||||
|
||||
public static BaseExecutor CreateExecutor<T>(ExecutorType executorType) where T : BaseExecutor
|
||||
{
|
||||
MethodInfo method = typeof(T).GetMethod("Create");
|
||||
@ -19,14 +21,6 @@ namespace Aurora.Backend.Executors
|
||||
}
|
||||
|
||||
return method.Invoke(null, new object[] { executorType }) as BaseExecutor;
|
||||
|
||||
// var types = typeof(T).Assembly.GetTypes();
|
||||
|
||||
// foreach (Type type in types)
|
||||
// {
|
||||
// MethodInfo genericMethod = method.MakeGenericMethod(type);
|
||||
// genericMethod.Invoke(null, null); // No target, no arguments
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,11 +19,13 @@ namespace Aurora.Backend.Executors
|
||||
case ExecutorType.Client:
|
||||
{
|
||||
executor = new ClientPartyExecutor();
|
||||
executor.ExecutorType = type;
|
||||
break;
|
||||
}
|
||||
case ExecutorType.Server:
|
||||
{
|
||||
executor = new HostPartyExecutor();
|
||||
executor.ExecutorType = type;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -45,14 +47,5 @@ namespace Aurora.Backend.Executors
|
||||
|
||||
public abstract void RemoveFromQueue();
|
||||
|
||||
public abstract void Play();
|
||||
|
||||
public abstract void Pause();
|
||||
|
||||
public abstract void Stop();
|
||||
|
||||
public abstract void Next();
|
||||
|
||||
public abstract void Previous();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user