Files
StockSharp/Studio/Core/Commands/CompileStrategyInfoCommand.cs
T

40 lines
923 B
C#

namespace StockSharp.Studio.Core.Commands
{
using System;
using System.Collections.Generic;
using Ecng.Common;
using StockSharp.Xaml.Code;
public class CompileStrategyInfoCommand : BaseStudioCommand
{
public CompileStrategyInfoCommand(StrategyInfo info, IEnumerable<CodeReference> references)
{
if (info == null)
throw new ArgumentNullException("info");
if (references == null)
throw new ArgumentNullException("references");
Info = info;
References = references;
}
public StrategyInfo Info { get; private set; }
public IEnumerable<CodeReference> References { get; private set; }
}
public class CompileStrategyInfoResultCommand : BaseStudioCommand
{
public CompileStrategyInfoResultCommand(CompilationResult result)
{
if (result == null)
throw new ArgumentNullException("result");
Result = result;
}
public CompilationResult Result { get; private set; }
}
}