public void ResourceIdentifierToAndFromNative() { ResourceIdentifier resourceIdentifier = new FabricImageStorePathResourceIdentifier("incoming\\MyApplicationType"); TestToAndFromNative(resourceIdentifier); resourceIdentifier = new ApplicationTypeResourceIdentifier("MyApplicationType"); TestToAndFromNative(resourceIdentifier); resourceIdentifier = new ApplicationResourceIdentifier(new Uri("fabric:/System")); TestToAndFromNative(resourceIdentifier); resourceIdentifier = new ServiceResourceIdentifier(new Uri("fabric:/Samples/QueueApp/QueueService")); TestToAndFromNative(resourceIdentifier); resourceIdentifier = new NameResourceIdentifier(new Uri("fabric:/TestApplication/HelloWorld/PropertyTables")); TestToAndFromNative(resourceIdentifier); }
public static string ToString(ServiceResourceIdentifier resourceIdentifier) { return(string.Format(CultureInfo.InvariantCulture, "ServiceResourceIdentifier[ServiceName={0}]", resourceIdentifier.ServiceName)); }