1 write to options
ComSvcConfig (1)
89 references to options
ComSvcConfig (89)
Tool.cs (89)
41internal static Options Options { get { return options; } }
61if (options.Mode == Mode.NotSpecified)
65else if (options.Mode == Mode.Install)
74else if (options.Mode == Mode.Uninstall)
84else if (options.Mode == Mode.List)
136ComAdminAppInfo appInfo = ComAdminWrapper.GetAppInfo(options.Application);
139throw CreateArgumentException(Cmd.Application, options.Application, SR.GetString(SR.ApplicationNotFound, options.Application), null);
142ValidateApplication(appInfo, options.Hosting);
148if (options.Hosting == Hosting.Complus)
150container = ComplusEndpointConfigContainer.Get(options.Application, true);
153throw CreateArgumentException(Cmd.Application, options.Application, SR.GetString(SR.ApplicationNotFound, options.Application), null);
156else if (options.Hosting == Hosting.Was)
159if (options.WebServer != null)
161webServer = options.WebServer;
168container = WasEndpointConfigContainer.Get(webServer, options.WebDirectory, options.Application);
171throw CreateArgumentException(Cmd.WebDirectory, options.WebDirectory, SR.GetString(SR.WebDirectoryNotFound, options.WebDirectory), null);
176if (options.AllComponents)
178GetAllComponentsForAdd(appInfo, options.Mex, out guidComponents);
182GetComponentsFromInputForAdd(appInfo, options.Components, options.Mex, container.HasEndpointsForApplication(sourceAppId), out guidComponents);
187if (String.Empty != options.MexOnlyComponent)
188throw Tool.CreateException(SR.GetString(SR.MexOnlyComponentHasNoExposedInterface, options.MexOnlyComponent), null);
258throw CreateException(SR.GetString(SR.ErrorDuringAdd, options.Application), e);
277throw CreateArgumentException(Cmd.Application, options.Application, SR.GetString(SR.ApplicationNotFound, options.Application), null);
310throw CreateArgumentException(Cmd.WebDirectory, options.WebDirectory, SR.GetString(SR.WebDirectoryNotFound, options.WebDirectory), null);
410if (options.Application != null)
415if (!ComAdminWrapper.ResolveApplicationId(options.Application, out appid))
417throw CreateArgumentException(Cmd.Application, options.Application, SR.GetString(SR.ApplicationNotFound, options.Application), null);
425List<EndpointConfigContainer> containers = GetContainersForQueryOrRemove(options.Hosting, application, options.WebServer, options.WebDirectory);
489ToolConsole.WriteQueryLine(SR.GetString(SR.EnumeratingComponentsForApplication, options.ShowGuids ? appInfo.ID.ToString("B") : appInfo.Name));
514ToolConsole.WriteQueryLine(" " + SR.GetString(SR.EnumeratingInterfacesForComponent, options.ShowGuids ? classInfo.Clsid.ToString("B") : classInfo.Name));
533ToolConsole.WriteQueryLine(" " + SR.GetString(SR.EnumeratingEndpointsForInterfaces, options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name));
546ComAdminAppInfo appInfo = ComAdminWrapper.GetAppInfo(options.Application);
549throw CreateArgumentException(Cmd.Application, options.Application, SR.GetString(SR.ApplicationNotFound, options.Application), null);
556if (options.AllComponents)
562GetComponentsFromInputForRemove(appInfo, options.Components, out guidComponents);
565List<EndpointConfigContainer> containers = GetContainersForQueryOrRemove(options.Hosting, application, options.WebServer, options.WebDirectory);
666if (ComPlusTypeValidator.VerifyInterface(interfaceInfo, options.AllowReferences, classInfo.Clsid))
738if (ComPlusTypeValidator.VerifyInterface(interfaceInfo, options.AllowReferences, classInfo.Clsid))
768if (ComPlusTypeValidator.VerifyInterface(interfaceInfo, options.AllowReferences, classInfo.Clsid, true))
775if (ComPlusTypeValidator.VerifyInterfaceMethods(interfaceInfo, comInterface.Methods, options.AllowReferences, true))
929ToolConsole.Verbose = options.Verbose;
958if (!options.NoLogo)
963if (options.Help)
966DisplayHelp(options.Mode);
970switch (options.Mode)
1001if (options.Application == null)
1006if (!options.AllComponents && ((options.Components == null) || options.Components.Count == 0))
1011switch (options.Hosting)
1019if (options.WebDirectory != null)
1021throw CreateArgumentException(Cmd.WebDirectory, options.WebDirectory, SR.GetString(SR.InvalidArgumentForHostingMode, Cmd.WebDirectory), null);
1023if (options.WebServer != null)
1025throw CreateArgumentException(Cmd.WebServer, options.WebServer, SR.GetString(SR.InvalidArgumentForHostingMode, Cmd.WebServer), null);
1031if (options.WebDirectory == null)
1042if (options.Application == null)
1047if (!options.AllComponents && ((options.Components == null) || options.Components.Count == 0))
1052switch (options.Hosting)
1056if (options.WebDirectory != null)
1058throw CreateArgumentException(Cmd.WebDirectory, options.WebDirectory, SR.GetString(SR.InvalidArgumentForHostingMode, Cmd.WebDirectory), null);
1065if (options.WebDirectory != null)
1067throw CreateArgumentException(Cmd.WebDirectory, options.WebDirectory, SR.GetString(SR.InvalidArgumentForHostingMode, Cmd.WebDirectory), null);
1069if (options.WebServer != null)
1071throw CreateArgumentException(Cmd.WebServer, options.WebServer, SR.GetString(SR.InvalidArgumentForHostingMode, Cmd.WebServer), null);
1085if (options.AllComponents || ((options.Components != null) && options.Components.Count > 0))
1090switch (options.Hosting)
1094if (options.WebDirectory != null)
1096throw CreateArgumentException(Cmd.WebDirectory, options.WebDirectory, SR.GetString(SR.InvalidArgumentForHostingMode, Cmd.WebDirectory), null);
1103if (options.WebDirectory != null)
1105throw CreateArgumentException(Cmd.WebDirectory, options.WebDirectory, SR.GetString(SR.InvalidArgumentForHostingMode, Cmd.WebDirectory), null);
1107if (options.WebServer != null)
1109throw CreateArgumentException(Cmd.WebServer, options.WebServer, SR.GetString(SR.InvalidArgumentForHostingMode, Cmd.WebServer), null);