• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IAssetService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: AssetController

 public AssetController(IAssetService assetService, IAssetViewService assetViewService)
 {
     Auxilium.Validation.Validate.NotNull(assetService);
     Auxilium.Validation.Validate.NotNull(assetViewService);
     _assetService = assetService;
     _assetViewService = assetViewService;
 }
开发者ID:Zensar,项目名称:Assets,代码行数:7,代码来源:AssetController.cs


示例2: Abuse

 public Abuse(IAssetService assetService)
 {
     InitializeComponent();
     m_assetService = assetService;
     //AbuseReportsConnector = Aurora.DataManager.DataManager.RequestPlugin<IAbuseReportsConnector>();
     //Abuse.InputBox("Password Input Required", "Password for abuse reports database", ref Password);
 }
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:7,代码来源:Abuse.cs


示例3: AssetServerConnector

        public AssetServerConnector(IConfigSource config, IHttpServer server) :
            base(config, server, "AssetService")
        {
            IConfig serverConfig = config.Configs["AssetService"];
            if (serverConfig == null)
                throw new Exception("No AssetService section in config file");

            string assetService = serverConfig.GetString("LocalServiceModule", String.Empty);

            if (String.IsNullOrEmpty(assetService))
                throw new Exception("No LocalServiceModule in AssetService section in config file");

            Object[] args = new Object[] { config };
            m_AssetService = ServerUtils.LoadPlugin<IAssetService>(assetService, args);

            if (m_AssetService == null)
                throw new Exception("Failed to load IAssetService \"" + assetService + "\"");

            // Asset service endpoints
            server.AddStreamHandler(new TrustedStreamHandler("GET", "/assets", new CBAssetServerGetHandler(m_AssetService)));
            server.AddStreamHandler(new TrustedStreamHandler("POST", "/assets", new CBAssetServerPostHandler(m_AssetService)));
            server.AddStreamHandler(new TrustedStreamHandler("DELETE", "/assets", new CBAssetServerDeleteHandler(m_AssetService)));

            // Register this server connector as a Cable Beach service
            CableBeachServerState.RegisterService(new Uri(CableBeachServices.ASSETS), CreateCapabilitiesHandler);

            CableBeachServerState.Log.Info("[CABLE BEACH ASSETS]: AssetServerConnector is running");
        }
开发者ID:AlphaStaxLLC,项目名称:taiga,代码行数:28,代码来源:AssetServerConnector.cs


示例4: HGInventoryService

        // Constructor for standalone mode
        public HGInventoryService(InventoryServiceBase invService, IAssetService assetService, UserManagerBase userService, IHttpServer httpserver, string thisurl)
        {
            m_userService = userService;
            m_assetProvider = assetService;

            Init(invService, thisurl, httpserver);
        }
开发者ID:ChrisD,项目名称:opensim,代码行数:8,代码来源:HGInventoryService.cs


示例5: Abuse

 public Abuse(IAssetService assetService)
 {
     InitializeComponent();
     m_assetService = assetService;
     AbuseReportsConnector = Aurora.DataManager.DataManager.RequestPlugin<IAbuseReportsConnector>();
     Password = Util.Md5Hash(Microsoft.VisualBasic.Interaction.InputBox("Password for abuse reports database.", "Password Input Required", "", 0, 0));
 }
开发者ID:shangcheng,项目名称:Aurora,代码行数:7,代码来源:Abuse.cs


示例6: Start

 public virtual void Start(IConfigSource config, IRegistryCore registry)
 {
     m_Database = Aurora.DataManager.DataManager.RequestPlugin<IInventoryData> ();
     m_UserAccountService = registry.RequestModuleInterface<IUserAccountService>();
     m_LibraryService = registry.RequestModuleInterface<ILibraryService>();
     m_AssetService = registry.RequestModuleInterface<IAssetService>();
 }
开发者ID:chazzmac,项目名称:Aurora-Sim,代码行数:7,代码来源:InventoryService.cs


示例7: FolderItemViewModel

        public FolderItemViewModel(IAssetService repository, FolderItem folderItem)
			: base(repository)
        {
            CurrentFolderItem = folderItem;

            // OpenItemCommand = new DelegateCommand(() => DoOpenAsset());
        }
开发者ID:Wdovin,项目名称:vc-community,代码行数:7,代码来源:FolderItemViewModel.cs


示例8: PickAssetViewModel

		public PickAssetViewModel(IAssetService assetRepository,
			IViewModelsFactory<IInputNameDialogViewModel> inputNameVmFactory)
		{
			_assetRepository = assetRepository;
			_inputNameVmFactory = inputNameVmFactory;

			AddressBarItems = new ObservableCollection<AssetEntitySearchViewModelBase>();
			SelectedFolderItems = new ObservableCollection<AssetEntitySearchViewModelBase>();

			CommonNotifyRequest = new InteractionRequest<Notification>();

			OpenItemCommand = new DelegateCommand<object>(RaiseOpenItemRequest);
			RefreshCommand = new DelegateCommand(LoadItems);
			UploadCommand = new DelegateCommand(RaiseUploadRequest, () => ParentItem.Type == AssetType.Container || ParentItem.Type == AssetType.Folder);
			CreateFolderCommand = new DelegateCommand(RaiseCreateFolderRequest);
			RenameCommand = new DelegateCommand(RaiseRenameRequest);
			DeleteCommand = new DelegateCommand(RaiseDeleteRequest);
			ParentItem = new RootSearchViewModel(null);
			CommonConfirmRequest = new InteractionRequest<Confirmation>();

			InputNameDialogRequest = new InteractionRequest<ConditionalConfirmation>();

			AssetPickMode = true;
			RootItemId = null;
		}
开发者ID:gitter-badger,项目名称:vc-community-1.x,代码行数:25,代码来源:PickAssetViewModel.cs


示例9: GetTextureServerConnector

        public GetTextureServerConnector(IConfigSource config, IHttpServer server, string configName) :
                base(config, server, configName)
        {
            if (configName != String.Empty)
                m_ConfigName = configName;

            IConfig serverConfig = config.Configs[m_ConfigName];
            if (serverConfig == null)
                throw new Exception(String.Format("No section '{0}' in config file", m_ConfigName));

            string assetService = serverConfig.GetString("AssetService", String.Empty);

            if (assetService == String.Empty)
                throw new Exception("No AssetService in config file");

            Object[] args = new Object[] { config };
            m_AssetService =
                    ServerUtils.LoadPlugin<IAssetService>(assetService, args);

            if (m_AssetService == null)
                throw new Exception(String.Format("Failed to load AssetService from {0}; config is {1}", assetService, m_ConfigName));

            string rurl = serverConfig.GetString("GetTextureRedirectURL");
            ;
            server.AddStreamHandler(
                new GetTextureHandler("/CAPS/GetTexture/" /*+ UUID.Random() */, m_AssetService, "GetTexture", null, rurl));
        }
开发者ID:RadaSangOn,项目名称:workCore2,代码行数:27,代码来源:GetTextureServerConnector.cs


示例10: UploadBakedTextureServerConnector

        public UploadBakedTextureServerConnector(IConfigSource config, IHttpServer server, string configName) :
                base(config, server, configName)
        {
            if (configName != String.Empty)
                m_ConfigName = configName;

            IConfig serverConfig = config.Configs[m_ConfigName];
            if (serverConfig == null)
                throw new Exception(String.Format("No section '{0}' in config file", m_ConfigName));

            string assetService = serverConfig.GetString("AssetService", String.Empty);

            if (assetService == String.Empty)
                throw new Exception("No AssetService in config file");

            Object[] args = new Object[] { config };
            m_AssetService =
                    ServerUtils.LoadPlugin<IAssetService>(assetService, args);

            if (m_AssetService == null)
                throw new Exception(String.Format("Failed to load AssetService from {0}; config is {1}", assetService, m_ConfigName));

            // NEED TO FIX THIS
            OpenSim.Framework.Capabilities.Caps caps = new OpenSim.Framework.Capabilities.Caps(server, "", server.Port, "", UUID.Zero, "");
            server.AddStreamHandler(new RestStreamHandler(
                        "POST",
                        "/CAPS/UploadBakedTexture/",
                        new UploadBakedTextureHandler(caps, m_AssetService, true).UploadBakedTexture,
                        "UploadBakedTexture",
                        "Upload Baked Texture Capability"));

         }
开发者ID:CassieEllen,项目名称:opensim,代码行数:32,代码来源:UploadBakedTextureServerConnector.cs


示例11: AssetServerPostHandler

 public AssetServerPostHandler(IAssetService service, string url, ulong regionHandle, IRegistryCore registry) :
     base("POST", url)
 {
     m_AssetService = service;
     m_regionHandle = regionHandle;
     m_registry = registry;
 }
开发者ID:kow,项目名称:Aurora-Sim,代码行数:7,代码来源:AssetServerPostHandler.cs


示例12: AssetServiceConnector

        public AssetServiceConnector(IConfigSource config, IHttpServer server, string configName) :
                base(config, server, configName)
        {
            if (configName != String.Empty)
                m_ConfigName = configName;

            IConfig serverConfig = config.Configs[m_ConfigName];
            if (serverConfig == null)
                throw new Exception(String.Format("No section '{0}' in config file", m_ConfigName));

            string assetService = serverConfig.GetString("LocalServiceModule",
                    String.Empty);

            if (assetService == String.Empty)
                throw new Exception("No AssetService in config file");

            Object[] args = new Object[] { config };
            m_AssetService =
                    ServerUtils.LoadPlugin<IAssetService>(assetService, args);

            bool allowDelete = serverConfig.GetBoolean("AllowRemoteDelete", false);

            server.AddStreamHandler(new AssetServerGetHandler(m_AssetService));
            server.AddStreamHandler(new AssetServerPostHandler(m_AssetService));
            server.AddStreamHandler(new AssetServerDeleteHandler(m_AssetService, allowDelete));
        }
开发者ID:AlexRa,项目名称:opensim-mods-Alex,代码行数:26,代码来源:AssetServerConnector.cs


示例13: GetMeshServerConnector

        public GetMeshServerConnector(IConfigSource config, IHttpServer server, string configName) :
                base(config, server, configName)
        {
            if (configName != String.Empty)
                m_ConfigName = configName;

            IConfig serverConfig = config.Configs[m_ConfigName];
            if (serverConfig == null)
                throw new Exception(String.Format("No section '{0}' in config file", m_ConfigName));

            string assetService = serverConfig.GetString("AssetService", String.Empty);

            if (assetService == String.Empty)
                throw new Exception("No AssetService in config file");

            Object[] args = new Object[] { config };
            m_AssetService =
                    ServerUtils.LoadPlugin<IAssetService>(assetService, args);

            if (m_AssetService == null)
                throw new Exception(String.Format("Failed to load AssetService from {0}; config is {1}", assetService, m_ConfigName));

            string rurl = serverConfig.GetString("GetMeshRedirectURL");

            GetMeshHandler gmeshHandler = new GetMeshHandler(m_AssetService);
            IRequestHandler reqHandler
                = new RestHTTPHandler(
                    "GET",
                    "/CAPS/" + UUID.Random(),
                    httpMethod => gmeshHandler.ProcessGetMesh(httpMethod, UUID.Zero, null),
                    "GetMesh",
                    null);
            server.AddStreamHandler(reqHandler); ;
        }
开发者ID:CassieEllen,项目名称:opensim,代码行数:34,代码来源:GetMeshServerConnector.cs


示例14: ImportService

		public ImportService(IImportRepository importRepository, IAssetService blobProvider, ICatalogRepository catalogRepository, IOrderRepository orderRepository, IAppConfigRepository appConfigRepository, IRepositoryFactory<IAppConfigRepository> appConfigRepositoryFactory)
		{
			_orderRepository = orderRepository;
			_catalogRepository = catalogRepository;
			_importJobRepository = importRepository;
			_appConfigRepository = appConfigRepository;
			_appConfigRepositoryFactory = appConfigRepositoryFactory;
			_assetProvider = blobProvider;

			_entityImporters = new List<IEntityImporter>
				{
					new ItemImporter() { Name = "Product"},
					new ItemImporter() { Name = "Sku"},
					new ItemImporter() { Name = "Bundle"},
					new ItemImporter() { Name = "DynamicKit"},
					new ItemImporter() { Name = "Package"},
					new PriceImporter(_catalogRepository),
					new AssociationImporter(_catalogRepository),
					new RelationImporter(_catalogRepository),
					new CategoryImporter(),
					new LocalizationImporter(),
					new TaxValueImporter(),
					new ItemAssetImporter(),
					new TaxCategoryImporter(),
					new JurisdictionImporter(),
					new JurisdictionGroupImporter(),
					new SeoImporter()
				};

			_importResults = new Dictionary<string, ImportResult>();
		}
开发者ID:Wdovin,项目名称:vc-community,代码行数:31,代码来源:ImportService.cs


示例15: AssetServerGetHandler

 public AssetServerGetHandler(IAssetService service, string url, string SessionID, IRegistryCore registry) :
     base("GET", url)
 {
     m_AssetService = service;
     m_SessionID = SessionID;
     m_registry = registry;
 }
开发者ID:savino1976,项目名称:Aurora-Sim,代码行数:7,代码来源:AssetServerGetHandler.cs


示例16: GetTextureRobustHandler

 public GetTextureRobustHandler(string path, IAssetService assService, string name, string description, string redirectURL)
     : base("GET", path, name, description)
 {
     m_assetService = assService;
     m_RedirectURL = redirectURL;
     if (m_RedirectURL != null && !m_RedirectURL.EndsWith("/"))
         m_RedirectURL += "/";
 }
开发者ID:CassieEllen,项目名称:opensim,代码行数:8,代码来源:GetTextureRobustHandler.cs


示例17: AssetServerDeleteHandler

 public AssetServerDeleteHandler(IAssetService service, bool allowDelete, string url, string SessionID, IRegistryCore registry) :
     base("DELETE", url)
 {
     m_AssetService = service;
     m_allowDelete = allowDelete;
     m_SessionID = SessionID;
     m_registry = registry;
 }
开发者ID:NickyPerian,项目名称:Aurora-Sim,代码行数:8,代码来源:AssetServerDeleteHandler.cs


示例18: AssetServerGetHandler

 public AssetServerGetHandler(IAssetService service, IServiceAuth auth, string redirectURL) :
     base("GET", "/assets", auth)
 {
     m_AssetService = service;
     m_RedirectURL = redirectURL;
     if (!m_RedirectURL.EndsWith("/"))
         m_RedirectURL = m_RedirectURL.TrimEnd('/');
 }
开发者ID:BogusCurry,项目名称:arribasim-dev,代码行数:8,代码来源:AssetServerGetHandler.cs


示例19: FolderViewModel

		public FolderViewModel(IAssetService repository, Folder folder)
			: base(repository)
		{
			CurrentFolder = folder;
			EmbeddedHierarchyEntry = this;

			OpenItemCommand = new DelegateCommand(DoOpenFolder);
		}
开发者ID:Wdovin,项目名称:vc-community,代码行数:8,代码来源:FolderViewModel.cs


示例20: AssetServerDeleteHandler

 public AssetServerDeleteHandler(IAssetService service, bool allowDelete, string url, ulong regionHandle, IRegistryCore registry) :
     base("DELETE", url)
 {
     m_AssetService = service;
     m_allowDelete = allowDelete;
     m_regionHandle = regionHandle;
     m_registry = registry;
 }
开发者ID:kow,项目名称:Aurora-Sim,代码行数:8,代码来源:AssetServerDeleteHandler.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IAssociationType类代码示例发布时间:2022-05-24
下一篇:
C# IAssetManager类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap