Typed System.Uris, seems like this would be a good thing?

  • Thread starter Thread starter Eric Newton
  • Start date Start date
E

Eric Newton

say for example, using Unreal's map download "protocol"

unreal://192.168.0.1

in theory, this "Unreal" scheme could be extended and represented as a
System.Uri

unreal://192.168.0.1/maps/SomeCoolMapOnlyOnthisServer.umap

and if the "Unreal" server could read this, in theory, a map would start
streaming to your system.

What if I wanted to create an UnrealUri, based on System.Uri? subclass Uri
you say... fine... BUT the entire uri has to be built for the base
constructor...

I found UriBuilder... dont see the point however, since it doesnt seem to
have an virtual methods to override, so that, in theory, this could be
subclassed to a UnrealUriBuilder and overcome the Uri base constructor
problem...

to the framework guys... just wanted to know if somebody could submit how it
seems like it SHOULD be...
 
Eric Newton said:
say for example, using Unreal's map download "protocol"

unreal://192.168.0.1

in theory, this "Unreal" scheme could be extended and represented as a
System.Uri

unreal://192.168.0.1/maps/SomeCoolMapOnlyOnthisServer.umap

and if the "Unreal" server could read this, in theory, a map would start
streaming to your system.

What if I wanted to create an UnrealUri, based on System.Uri? subclass Uri
you say... fine... BUT the entire uri has to be built for the base
constructor...

I found UriBuilder... dont see the point however, since it doesnt seem to
have an virtual methods to override, so that, in theory, this could be
subclassed to a UnrealUriBuilder and overcome the Uri base constructor
problem...

to the framework guys... just wanted to know if somebody could submit how it
seems like it SHOULD be...

I don't think you need a particular type for the URI. What you need is
something to fetch it... which is what WebRequest.RegisterPrefix is all
about.
 
Back
Top