当前位置: 首页>>代码示例>>C#>>正文


C# ISite类代码示例

本文整理汇总了C#中ISite的典型用法代码示例。如果您正苦于以下问题:C# ISite类的具体用法?C# ISite怎么用?C# ISite使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ISite类属于命名空间,在下文中一共展示了ISite类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LocalizationExtenderProvider

 public LocalizationExtenderProvider(ISite serviceProvider, IComponent baseComponent)
 {
     this.serviceProvider = serviceProvider;
     this.baseComponent = baseComponent;
     if (serviceProvider != null)
     {
         IExtenderProviderService service = (IExtenderProviderService) serviceProvider.GetService(typeof(IExtenderProviderService));
         if (service != null)
         {
             service.AddExtenderProvider(this);
         }
     }
     this.language = CultureInfo.InvariantCulture;
     ResourceManager manager = new ResourceManager(baseComponent.GetType());
     if (manager != null)
     {
         ResourceSet set = manager.GetResourceSet(this.language, true, false);
         if (set != null)
         {
             object obj2 = set.GetObject("$this.Localizable");
             if (obj2 is bool)
             {
                 this.defaultLocalizable = (bool) obj2;
                 this.localizable = this.defaultLocalizable;
             }
         }
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:28,代码来源:LocalizationExtenderProvider.cs

示例2: AddOrUpdate

 public void AddOrUpdate(ISite site) {
     var setting = GetSiteSetting();
     if (setting == null) {
         setting = new SiteSetting {
             SiteName = site.SiteName,
             BaseUrl = site.BaseUrl,
             HomePage = site.HomePage,
             Logo = site.Logo,
             CopyRight = site.CopyRight,
             PageSize = site.PageSize,
             SeoDesc = site.SeoDesc,
             SeoKeys = site.SeoKeys,
             SiteSalt = site.SiteSalt,
             SuperUser = site.SuperUser
         };
         _settingRepository.Create((SiteSetting)setting);
     } else {
         setting.SiteName = site.SiteName;
         setting.BaseUrl = site.BaseUrl;
         setting.HomePage = site.HomePage;
         setting.Logo = site.Logo;
         setting.CopyRight = site.CopyRight;
         setting.PageSize = site.PageSize;
         setting.SeoDesc = site.SeoDesc;
         setting.SeoKeys = site.SeoKeys;
         setting.SiteSalt = site.SiteSalt;
         _settingRepository.Update((SiteSetting)setting);
     }
 }
开发者ID:wolfweb,项目名称:Ww,代码行数:29,代码来源:SiteService.cs

示例3: GetScene

 public override Scene GetScene(ISite site, bool designMode)
 {
     string resolvedFileName = FileSourceHelper.ResolveFileName(FileName, site, designMode);
     if (File.Exists(resolvedFileName))
         return MeshellatorLoader.ImportFromFile(resolvedFileName);
     return null;
 }
开发者ID:CaptainCodeman,项目名称:dynamic-image-extensions,代码行数:7,代码来源:FileSceneSource.cs

示例4: GetBitmap

 public override FastBitmap GetBitmap(ISite site, bool designMode)
 {
     byte[] bytes = this.Bytes;
     if (bytes != null && bytes.Length > 0)
         return new FastBitmap(bytes);
     return null;
 }
开发者ID:dbre2,项目名称:dynamic-image,代码行数:7,代码来源:BytesImageSource.cs

示例5: CommandSet

 public CommandSet(ISite site)
 {
     this.site = site;
     this.eventService = (IEventHandlerService) site.GetService(typeof(IEventHandlerService));
     this.eventService.EventHandlerChanged += new EventHandler(this.OnEventHandlerChanged);
     IDesignerHost host = (IDesignerHost) site.GetService(typeof(IDesignerHost));
     if (host != null)
     {
         host.Activated += new EventHandler(this.UpdateClipboardItems);
     }
     this.statusCommandUI = new StatusCommandUI(site);
     IUIService uiService = site.GetService(typeof(IUIService)) as IUIService;
     this.commandSet = new CommandSetItem[] {
         new CommandSetItem(this, new EventHandler(this.OnStatusDelete), new EventHandler(this.OnMenuDelete), StandardCommands.Delete, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusCopy), new EventHandler(this.OnMenuCopy), StandardCommands.Copy, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusCut), new EventHandler(this.OnMenuCut), StandardCommands.Cut, uiService), new ImmediateCommandSetItem(this, new EventHandler(this.OnStatusPaste), new EventHandler(this.OnMenuPaste), StandardCommands.Paste, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusSelectAll), new EventHandler(this.OnMenuSelectAll), StandardCommands.SelectAll, true, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnMenuDesignerProperties), MenuCommands.DesignerProperties, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeyCancel), MenuCommands.KeyCancel, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeyCancel), MenuCommands.KeyReverseCancel, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusPrimarySelection), new EventHandler(this.OnKeyDefault), MenuCommands.KeyDefaultAction, true, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusAnySelection), new EventHandler(this.OnKeyMove), MenuCommands.KeyMoveUp, true, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusAnySelection), new EventHandler(this.OnKeyMove), MenuCommands.KeyMoveDown, true, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusAnySelection), new EventHandler(this.OnKeyMove), MenuCommands.KeyMoveLeft, true, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusAnySelection), new EventHandler(this.OnKeyMove), MenuCommands.KeyMoveRight, true), new CommandSetItem(this, new EventHandler(this.OnStatusAnySelection), new EventHandler(this.OnKeyMove), MenuCommands.KeyNudgeUp, true, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusAnySelection), new EventHandler(this.OnKeyMove), MenuCommands.KeyNudgeDown, true, uiService), new CommandSetItem(this, new EventHandler(this.OnStatusAnySelection), new EventHandler(this.OnKeyMove), MenuCommands.KeyNudgeLeft, true, uiService),
         new CommandSetItem(this, new EventHandler(this.OnStatusAnySelection), new EventHandler(this.OnKeyMove), MenuCommands.KeyNudgeRight, true, uiService)
      };
     this.selectionService = (ISelectionService) site.GetService(typeof(ISelectionService));
     if (this.selectionService != null)
     {
         this.selectionService.SelectionChanged += new EventHandler(this.OnSelectionChanged);
     }
     this.menuService = (IMenuCommandService) site.GetService(typeof(IMenuCommandService));
     if (this.menuService != null)
     {
         for (int i = 0; i < this.commandSet.Length; i++)
         {
             this.menuService.AddCommand(this.commandSet[i]);
         }
     }
     IDictionaryService service = site.GetService(typeof(IDictionaryService)) as IDictionaryService;
     if (service != null)
     {
         service.SetValue(typeof(CommandID), new CommandID(new Guid("BA09E2AF-9DF2-4068-B2F0-4C7E5CC19E2F"), 0));
     }
 }
开发者ID:Reegenerator,项目名称:Sample-CustomizeDatasetCS,代码行数:35,代码来源:CommandSet.cs

示例6: RatingForumReadByUIDAndUserList

        /// <summary>
        /// Reads a specific forum by the UID
        /// </summary>
        /// <param name="uid">The specific form uid</param>
        /// <returns>The specified forum including comment data</returns>
        public RatingForum RatingForumReadByUIDAndUserList(string uid, ISite site, int[] userIds)
        {
            RatingForum RatingForum = null;
            using (var reader = CreateReader("RatingForumreadbyuid"))
            {

                try
                {
                    reader.AddParameter("uid", uid);
                    reader.AddParameter("siteid", site.SiteID);
                    reader.Execute();

                    if (reader.HasRows && reader.Read())
                    {
                        RatingForum = RatingForumCreateFromReader(reader);
                        RatingForum.identityPolicy = site.IdentityPolicy;
                        RatingForum = RatingsReadByUserIDs(RatingForum, site, userIds);
                    }
                }
                catch(ApiException apiException)
                {
                    throw apiException;
                }
                catch (Exception ex)
                {
                    throw new ApiException(ex.Message, ex.InnerException);
                    //DnaApiWebProtocalException.ThrowDnaApiWebProtocalException(System.Net.HttpStatusCode.InternalServerError, ex.Message, ex);
                }
            }
            return RatingForum;
        }
开发者ID:rocketeerbkw,项目名称:DNA,代码行数:36,代码来源:Reviews.cs

示例7: TranscriptViewModel

    public TranscriptViewModel(IRoom room, ISite site, string searchTerm, 
      DateTime searchDate, MessageViewModelFactory messageViewModelFactory, IEventAggregator eventAggregator)
    {
      this.room = room;
      this.site = site;

      this.SearchTerm = searchTerm;
      this.SearchDate = searchDate;

      this.dispatcher = Dispatcher.CurrentDispatcher;

      this.messageViewModelFactory = messageViewModelFactory;
      this.Messages = new ObservableCollection<ViewModelBase>();
      this.Rooms = new ObservableCollection<RoomViewModel>();

      if (!string.IsNullOrWhiteSpace(this.SearchTerm))
        SearchByString();
      else if (this.SearchDate != DateTime.MinValue)
        SearchByDate();

      if (SearchDate == DateTime.MinValue)
        SearchDate = DateTime.Today;

      this.SearchByStringCommand = new RelayCommand(SearchByString);
      this.SearchByDateCommand = new RelayCommand(SearchByDate);

      foreach (var r in this.site.Rooms)
        this.Rooms.Add(new RoomViewModel(site, null, r, eventAggregator));
    }
开发者ID:maxschmeling,项目名称:flamecage,代码行数:29,代码来源:TranscriptViewModel.cs

示例8: ConvertFromSite

 /// <summary>
 /// 从站点领域对象转换成为数据传输对象
 /// </summary>
 /// <param name="site"></param>
 /// <returns></returns>
 public static SiteDto ConvertFromSite(ISite site)
 {
     return new SiteDto
     {
         Address = site.Address,
         DirName = site.DirName,
         Domain = site.Domain,
         Email = site.Email,
         Fax = site.Fax,
         Language = site.Language,
         PostCode = site.PostCode,
         Name = site.Name,
         Note = site.Note,
         Notice = site.Note,
         Phone = site.Phone,
         Im = site.Im,
         RunType = (int)site.RunType,
         SeoDescription = site.SeoDescription,
         SeoKeywords = site.SeoKeywords,
         SeoTitle = site.SeoTitle,
         SiteId = site.SiteId,
         Slogan = site.Slogan,
         State = site.State,
         Tel = site.Tel,
         Tpl = site.Tpl
     };
 }
开发者ID:AntonWong,项目名称:cms,代码行数:32,代码来源:SiteDto.cs

示例9: UpdateSite

 public int UpdateSite(ISite site)
 {
     return base.ExecuteNonQuery(
         SqlQueryHelper.Format(DbSql.Site_EditSite,
         new object[,]{
             {"@siteId",site.Id},
             {"@name",site.Name},
             {"@dirname",site.DirName},
             {"@tpl",site.Tpl},
             {"@domain",site.Domain},
             {"@location",site.Location},
             {"@language",site.Language},
             {"@note",site.Note},
             {"@seotitle",site.SeoTitle},
             {"@seokeywords",site.SeoKeywords},
             {"@seodescription",site.SeoDescription},
             {"@state",site.State},
             {"@protel",site.Tel},
             {"@prophone",site.Phone},
             {"@profax",site.Fax},
             {"@proaddress",site.Address},
             {"@proemail",site.Email},
             {"@im",site.Im},
             {"@postcode",site.PostCode},
             {"@pronotice",site.Notice},
             {"@proslogan",site.Slogan}
         }));
 }
开发者ID:hanson-huang,项目名称:cms,代码行数:28,代码来源:SiteDAL.cs

示例10: ControlCommandSet

 public ControlCommandSet(ISite site) : base(site)
 {
     this.statusCommandUI = new StatusCommandUI(site);
     this.commandSet = new CommandSet.CommandSetItem[] { 
         new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectPrimary), new EventHandler(this.OnMenuAlignByPrimary), StandardCommands.AlignLeft, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectPrimary), new EventHandler(this.OnMenuAlignByPrimary), StandardCommands.AlignTop, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusControlsOnlySelectionAndGrid), new EventHandler(this.OnMenuAlignToGrid), StandardCommands.AlignToGrid, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectPrimary), new EventHandler(this.OnMenuAlignByPrimary), StandardCommands.AlignBottom, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectPrimary), new EventHandler(this.OnMenuAlignByPrimary), StandardCommands.AlignHorizontalCenters, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectPrimary), new EventHandler(this.OnMenuAlignByPrimary), StandardCommands.AlignRight, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectPrimary), new EventHandler(this.OnMenuAlignByPrimary), StandardCommands.AlignVerticalCenters, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusControlsOnlySelection), new EventHandler(this.OnMenuCenterSelection), StandardCommands.CenterHorizontally, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusControlsOnlySelection), new EventHandler(this.OnMenuCenterSelection), StandardCommands.CenterVertically, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectNonContained), new EventHandler(this.OnMenuSpacingCommand), StandardCommands.HorizSpaceConcatenate, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectNonContained), new EventHandler(this.OnMenuSpacingCommand), StandardCommands.HorizSpaceDecrease, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectNonContained), new EventHandler(this.OnMenuSpacingCommand), StandardCommands.HorizSpaceIncrease, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectNonContained), new EventHandler(this.OnMenuSpacingCommand), StandardCommands.HorizSpaceMakeEqual, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectNonContained), new EventHandler(this.OnMenuSpacingCommand), StandardCommands.VertSpaceConcatenate, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectNonContained), new EventHandler(this.OnMenuSpacingCommand), StandardCommands.VertSpaceDecrease, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectNonContained), new EventHandler(this.OnMenuSpacingCommand), StandardCommands.VertSpaceIncrease, true), 
         new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectNonContained), new EventHandler(this.OnMenuSpacingCommand), StandardCommands.VertSpaceMakeEqual, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectPrimary), new EventHandler(this.OnMenuSizingCommand), StandardCommands.SizeToControl, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectPrimary), new EventHandler(this.OnMenuSizingCommand), StandardCommands.SizeToControlWidth, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusMultiSelectPrimary), new EventHandler(this.OnMenuSizingCommand), StandardCommands.SizeToControlHeight, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusControlsOnlySelectionAndGrid), new EventHandler(this.OnMenuSizeToGrid), StandardCommands.SizeToGrid, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusZOrder), new EventHandler(this.OnMenuZOrderSelection), StandardCommands.BringToFront, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusZOrder), new EventHandler(this.OnMenuZOrderSelection), StandardCommands.SendToBack, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusShowGrid), new EventHandler(this.OnMenuShowGrid), StandardCommands.ShowGrid, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusSnapToGrid), new EventHandler(this.OnMenuSnapToGrid), StandardCommands.SnapToGrid, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAnyControls), new EventHandler(this.OnMenuTabOrder), StandardCommands.TabOrder, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusLockControls), new EventHandler(this.OnMenuLockControls), StandardCommands.LockControls, true), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeySize), MenuCommands.KeySizeWidthIncrease), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeySize), MenuCommands.KeySizeHeightIncrease), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeySize), MenuCommands.KeySizeWidthDecrease), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeySize), MenuCommands.KeySizeHeightDecrease), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeySize), MenuCommands.KeyNudgeWidthIncrease), 
         new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeySize), MenuCommands.KeyNudgeHeightIncrease), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeySize), MenuCommands.KeyNudgeWidthDecrease), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeySize), MenuCommands.KeyNudgeHeightDecrease), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeySelect), MenuCommands.KeySelectNext), new CommandSet.CommandSetItem(this, new EventHandler(this.OnStatusAlways), new EventHandler(this.OnKeySelect), MenuCommands.KeySelectPrevious)
      };
     if (base.MenuService != null)
     {
         for (int i = 0; i < this.commandSet.Length; i++)
         {
             base.MenuService.AddCommand(this.commandSet[i]);
         }
     }
     IDesignerHost service = (IDesignerHost) this.GetService(typeof(IDesignerHost));
     if (service != null)
     {
         Control rootComponent = service.RootComponent as Control;
         if (rootComponent != null)
         {
             this.baseControl = rootComponent;
         }
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:25,代码来源:ControlCommandSet.cs

示例11: Add

 public virtual void Add(IComponent component, string name)
 {
     lock (this.syncObj)
     {
         if (component != null)
         {
             ISite site = component.Site;
             if ((site == null) || (site.Container != this))
             {
                 if (this.sites == null)
                 {
                     this.sites = new ISite[4];
                 }
                 else
                 {
                     this.ValidateName(component, name);
                     if (this.sites.Length == this.siteCount)
                     {
                         ISite[] destinationArray = new ISite[this.siteCount * 2];
                         Array.Copy(this.sites, 0, destinationArray, 0, this.siteCount);
                         this.sites = destinationArray;
                     }
                 }
                 if (site != null)
                 {
                     site.Container.Remove(component);
                 }
                 ISite site2 = this.CreateSite(component, name);
                 this.sites[this.siteCount++] = site2;
                 component.Site = site2;
                 this.components = null;
             }
         }
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:35,代码来源:Container.cs

示例12: SiteLink

 internal SiteLink(ISiteRepository siteRep, ISite site, int id,string text)
 {
     this._siteRep = siteRep;
     this._site = site;
     this.Id = id;
     this.Text = text;
 }
开发者ID:hanson-huang,项目名称:cms,代码行数:7,代码来源:SiteLink.cs

示例13: WebConfigManager

        internal WebConfigManager(ISite site)
        {
            Debug.Assert(site != null);
            _site = site;

            IWebApplication webApplicationService = (IWebApplication)_site.GetService(typeof(IWebApplication));
            if (webApplicationService != null) {
                IProjectItem dataFileProjectItem = webApplicationService.GetProjectItemFromUrl("~/web.config");
                if (dataFileProjectItem != null) {
                    _path = dataFileProjectItem.PhysicalPath;
                }
            }

/* VSWhidbey 271075, 257678
            // the following inspired by:
            // \VSDesigner\Designer\Microsoft\VisualStudio\Designer\Serialization\BaseDesignerLoader.cs

            Type projectItemType = Type.GetType("EnvDTE.ProjectItem, " + AssemblyRef.EnvDTE);
            if (projectItemType != null)
            {
                Object currentProjItem = _site.GetService(projectItemType);
                PropertyInfo containingProjectProp = projectItemType.GetProperty("ContainingProject");
                Object dteProject = containingProjectProp.GetValue(currentProjItem, new Object[0]);
                Type projectType = Type.GetType("EnvDTE.Project, " + AssemblyRef.EnvDTE);
                PropertyInfo fullNameProperty = projectType.GetProperty("FullName");
                String projectPath = (String)fullNameProperty.GetValue(dteProject, new Object[0]);

                _path = Path.GetDirectoryName(projectPath) + "\\web.config";
            }
*/
        }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:31,代码来源:WebConfigManager.cs

示例14: Run

 /// <summary>
 /// Starts kernel. Initializes container and site of kernel.
 /// </summary>
 /// <param name="hostSite">The parent site this kernel should attach to.</param>
 public static void Run(ISite hostSite)
 {
     KernelServiceContainer serviceContainer = new KernelServiceContainer(hostSite);
     KernelContainer container = new KernelContainer(serviceContainer);
     KernelSite site = new KernelSite(serviceContainer, container);
     Kernel.site = site;
 }
开发者ID:ilkerde,项目名称:pipemania,代码行数:11,代码来源:Kernel.cs

示例15: ResolveFileName

        public static string ResolveFileName(string filename, ISite site, bool designMode)
        {
            string fileName = null;
            if (!Path.IsPathRooted(filename))
            {
                // in design mode, resolve url using IUrlResolutionService
                if (designMode)
                {
                    IWebApplication app = (IWebApplication) site.GetService(typeof(IWebApplication));
                    if (app != null)
                    {
                        IProjectItem projectItem = app.GetProjectItemFromUrl(filename);
                        if (projectItem == null)
                            throw new InvalidOperationException("Could not load ProjectItem corresponding to source filename '" + filename + "'.");

                        fileName = projectItem.PhysicalPath;
                    }
                }
                else if (HttpContext.Current != null)
                {
                    fileName = HttpContext.Current.Server.MapPath(filename);
                }

                if (fileName == null)
                    throw new InvalidOperationException("Could not resolve source filename.");
            }
            else
            {
                fileName = filename;
            }

            return fileName;
        }
开发者ID:dbre2,项目名称:dynamic-image,代码行数:33,代码来源:FileSourceHelper.cs


注:本文中的ISite类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。