using System;
namespace Microsoft.AspNetCore.NodeServices
{
///
/// Supplies INodeServices instances.
///
public static class NodeServicesFactory
{
///
/// Create an instance according to the supplied options.
///
/// Options for creating the instance.
/// An instance.
public static INodeServices CreateNodeServices(NodeServicesOptions options)
{
if (options == null)
{
throw new ArgumentNullException(nameof (options));
}
return new NodeServicesImpl(options.NodeInstanceFactory);
}
}
}