示例#1
0
        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);
        }
示例#2
0
        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));
        }