public override void Process(Command command)
		{
			var options = (CommandOptions)this.LoadOptions((TextCommand)command);
			var file = this.Connection.FileSystemManager.ResolveFile(options.Uri);
			var ticket = new DownloadTicket(this.Connection, file, (FileShare)Enum.Parse(typeof(FileShare), options.Share, true),  options.Offset, options.Length);

			Connection.NetworkServer.AddTicket(ticket);
			
			Connection.WriteTextBlock("OK TICKET={0}", ticket.TicketId);
			Connection.Flush();
		}
コード例 #2
0
        public override void Process(Command command)
        {
            var options = (CommandOptions)this.LoadOptions((TextCommand)command);
            var file    = this.Connection.FileSystemManager.ResolveFile(options.Uri);
            var ticket  = new DownloadTicket(this.Connection, file, (FileShare)Enum.Parse(typeof(FileShare), options.Share, true), options.Offset, options.Length);

            Connection.NetworkServer.AddTicket(ticket);

            Connection.WriteTextBlock("OK TICKET={0}", ticket.TicketId);
            Connection.Flush();
        }