本文整理汇总了C#中IAssetService类的典型用法代码示例。如果您正苦于以下问题:C# IAssetService类的具体用法?C# IAssetService怎么用?C# IAssetService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IAssetService类属于命名空间,在下文中一共展示了IAssetService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AssetController
public AssetController(IAssetService assetService, IAssetViewService assetViewService)
{
Auxilium.Validation.Validate.NotNull(assetService);
Auxilium.Validation.Validate.NotNull(assetViewService);
_assetService = assetService;
_assetViewService = assetViewService;
}
示例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);
}
示例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");
}
示例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);
}
示例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));
}
示例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>();
}
示例7: FolderItemViewModel
public FolderItemViewModel(IAssetService repository, FolderItem folderItem)
: base(repository)
{
CurrentFolderItem = folderItem;
// OpenItemCommand = new DelegateCommand(() => DoOpenAsset());
}
示例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;
}
示例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));
}
示例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"));
}
示例11: AssetServerPostHandler
public AssetServerPostHandler(IAssetService service, string url, ulong regionHandle, IRegistryCore registry) :
base("POST", url)
{
m_AssetService = service;
m_regionHandle = regionHandle;
m_registry = registry;
}
示例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));
}
示例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); ;
}
示例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>();
}
示例15: AssetServerGetHandler
public AssetServerGetHandler(IAssetService service, string url, string SessionID, IRegistryCore registry) :
base("GET", url)
{
m_AssetService = service;
m_SessionID = SessionID;
m_registry = registry;
}