Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static string ToString(ServiceResourceIdentifier resourceIdentifier)
 {
     return(string.Format(CultureInfo.InvariantCulture, "ServiceResourceIdentifier[ServiceName={0}]", resourceIdentifier.ServiceName));
 }