public static IServer Create(Uri host) { Api.IInstance api = new Api.Instance(host); Section.IProvider sections = new Section.Provider(api); Music.IProvider music = new Music.Provider( new Music.Artist.Provider(sections, api), new Music.Album.Provider(sections, api), new Music.Track.Provider(api) ); Transcoder.IProvider transcoder = new Transcoder.Provider(api); return new Server(sections, music, transcoder); }
public static IServer Create(Uri host) { Api.IInstance api = new Api.Instance(host); Section.IProvider sections = new Section.Provider(api); Music.IProvider music = new Music.Provider( new Music.Artist.Provider(sections, api), new Music.Album.Provider(sections, api), new Music.Track.Provider(api) ); Transcoder.IProvider transcoder = new Transcoder.Provider(api); return(new Server(sections, music, transcoder)); }