コード例 #1
0
		public NancyFxRunOpts()
		{
			CodeBlock = new NancyFxCodeBlock();
			HttpMethod = "GET";
		    NuGetDllReferences = new List<string>(NuGetDllfererencesHelper.NancyFxNuGetDllfererences);
		    HostIndex = NancySelfHostingHelper.Instance.GetNextHostIndex();
		}
コード例 #2
0
        public NancyFxCodeBlock(NancyFxCodeBlock copy)
        {
            if (copy == null)
                return;

            Module = copy.Module;
            View = copy.View;
            Controller = copy.Controller;
        }
コード例 #3
0
		public List<AutoCompleteItem> GetAutoCompleteItems(NancyFxCodeBlock codeBlock, NancyFxFileType nancyFxFileType, int? pos = null)
		{
			switch (nancyFxFileType)
			{
				case NancyFxFileType.Module:
					return GetAutoCompleteItems(codeBlock.Module, pos);
				case NancyFxFileType.View:
					return new List<AutoCompleteItem>();
				case NancyFxFileType.Controller:
					{
						var aggregateCode = codeBlock.Controller + codeBlock.Module;
						return GetAutoCompleteItems(aggregateCode, pos);
					}
				default:
					throw new ArgumentOutOfRangeException("nancyFxFileType");
			}
		}