static void Main() { //Program entrypoint IUPnPConfigFactory sinkfact = new SinkFactory(); IUPnPConfigFactory sourceFact = new SourceFactory(); UPnP sink = new UPnP(sinkfact.CreatePackage()); UPnP source = new UPnP(sourceFact.CreatePackage()); IPlayqueueHandler pqhandl = new PlayqueueHandler(); PlaybackControl PlayCtrl = new PlaybackControl(sink, pqhandl); DBHandle dbHandle = new DBHandle(source, pqhandl); AbstractFileSenderServer Fserver = new FileSenderServer.FileSenderServer(); Console.WriteLine ("=============================================================="); Console.WriteLine ("Welcome to the HiPi Server solution"); Console.WriteLine ("All UPnP devices SHOULD work, but that's probably not the case"); Console.WriteLine ("Feel free to get our Windows application to get all features"); Console.WriteLine ("Enjoy! ;)"); Console.WriteLine ("=============================================================="); Console.Read(); }
public static async Task Start(string sourceType, string path, IBaseRepository repository) { var source = SourceFactory.GetSource(sourceType); await source.Import(path, repository); }
public virtual T GetSource(SourceFactory sourceFactory) { throw new Exception(); }
public override T GetSource(SourceFactory sourceFactory) { return(sourceFactory._connection.GetSource <T>()); }
protected OperationStepBase(SourceFactory sourceFactory) { _sourceFactory = sourceFactory; }