I Can publish a Sever blow: but "Single Fused Map Cache" is false. it's not a wmts Server.
--------------------------------------------------------------------------------------------------------------------------------------------
IServerObjectAdmin pServerObjectAdmin; pServerObjectAdmin = ConnectAGS("http://localhost:6080/arcgis/admin", "arcgis", "79"); IServerObjectConfiguration2 configuration = (IServerObjectConfiguration2)pServerObjectAdmin.CreateConfiguration(); IEnumServerObjectConfiguration ss = pServerObjectAdmin.GetConfigurations(); IServerObjectConfiguration2 pp; for (int i = 0; i < ss.Count; i++) { pp = (IServerObjectConfiguration2)ss.Next(); String name = pp.Name; if (name == servername) { return; } } configuration.Name = servername; configuration.TypeName = "MapServer"; IPropertySet props = configuration.Properties; props.SetProperty("FilePath", filepath); object names, values; props.GetAllProperties(out names, out values); props.SetProperty("OutputDir", @"F:\arcgisserver\directories\arcgisoutput"); string VirtualOutPutDir = "/rest/directories/arcgiscache"; props.SetProperty("VirtualOutPutDir", VirtualOutPutDir); props.SetProperty("SupportedImageReturnTypes", "URL"); props.SetProperty("MaxImageHeight", "2048"); props.SetProperty("MaxRecordCount", "500"); props.SetProperty("MaxBufferCount", "100"); props.SetProperty("MaxImageWidth", "2048"); props.SetProperty("outputDir", @"F:\\arcgisserver\\directories\\arcgisoutput"); props.SetProperty("isCached", "true");// props.SetProperty("minScale", "500000"); // props.SetProperty("tilingScheme", "3");// props.SetProperty("maxScale", "32000");// //props.SetProperty("CacheOnDemand", "true");// props.SetProperty("IgnoreCache", "false");// props.SetProperty("antialiasingMode", "None");// props.SetProperty("ClientCachi@ngAllowed", "true"); props.SetProperty("CacheDir", "F:\\arcgisserver\\directories\\arcgiscache");
--------------------------------------------------------------------------------------------------------------------------------------------
configuration.set_ExtensionEnabled("WMServer", true);
IPropertySet wmsprops = configuration.get_ExtensionProperties("WMServer");
How do I set up properties?
Thank you for your helper.