C# Class Umbraco.VisualStudio.ServiceBridge

Inheritance: System.MarshalByRefObject
显示文件 Open project: umbraco/Visual-Studio-Extension Class Usage Examples

Public Methods

Method Description
Configure ( string connectionString, string providerName, string baseDirectory ) : void
DeleteContent ( int id ) : bool
DeleteMedia ( int id ) : bool
Dispose ( ) : void
ExportXml ( string nodeType, int nodeId, string projectAppDataPath ) : void
GetChildContent ( int parentId ) : Dictionary>
GetChildContentTypes ( int parentId ) : Dictionary>
GetChildDataTypes ( int parentId ) : Dictionary>
GetChildMedia ( int parentId ) : Dictionary>
GetChildMediaTypes ( int parentId ) : Dictionary>
GetContentProperties ( int id ) : string>.Dictionary
GetContentTypeProperties ( int id ) : string>.Dictionary
GetDataTypeProperties ( int id ) : string>.Dictionary
GetMediaProperties ( int id ) : string>.Dictionary
GetMediaTypeProperties ( int id ) : string>.Dictionary
GetRootContent ( ) : Dictionary>
GetRootContentTypes ( ) : Dictionary>
GetRootDataTypes ( ) : Dictionary>
GetRootMedia ( ) : Dictionary>
GetRootMediaTypes ( ) : Dictionary>
ImportXml ( string nodeType, int nodeId, string filePath ) : void
MoveContent ( int id, int parentId ) : bool
MoveContentToRecycleBin ( int id ) : bool
MoveMediaToRecycleBin ( int id ) : bool
RenameContent ( int nodeId, string newName ) : void
RenameMedia ( int nodeId, string newName ) : void
Sandbox ( string assemblyFilename, string configPath, ResolveEventHandler handler ) : ServiceBridge
ServiceBridge ( ) : System
ServiceBridge ( string assemblyFilename ) : System

Private Methods

Method Description
ConvertEntitiesToDictionary ( IEnumerable entities ) : Dictionary>
ReturnYesNo ( bool isAyes ) : string

Method Details

Configure() public method

public Configure ( string connectionString, string providerName, string baseDirectory ) : void
connectionString string
providerName string
baseDirectory string
return void

DeleteContent() public method

public DeleteContent ( int id ) : bool
id int
return bool

DeleteMedia() public method

public DeleteMedia ( int id ) : bool
id int
return bool

Dispose() public method

public Dispose ( ) : void
return void

ExportXml() public method

public ExportXml ( string nodeType, int nodeId, string projectAppDataPath ) : void
nodeType string
nodeId int
projectAppDataPath string
return void

GetChildContent() public method

public GetChildContent ( int parentId ) : Dictionary>
parentId int
return Dictionary>

GetChildContentTypes() public method

public GetChildContentTypes ( int parentId ) : Dictionary>
parentId int
return Dictionary>

GetChildDataTypes() public method

public GetChildDataTypes ( int parentId ) : Dictionary>
parentId int
return Dictionary>

GetChildMedia() public method

public GetChildMedia ( int parentId ) : Dictionary>
parentId int
return Dictionary>

GetChildMediaTypes() public method

public GetChildMediaTypes ( int parentId ) : Dictionary>
parentId int
return Dictionary>

GetContentProperties() public method

public GetContentProperties ( int id ) : string>.Dictionary
id int
return string>.Dictionary

GetContentTypeProperties() public method

public GetContentTypeProperties ( int id ) : string>.Dictionary
id int
return string>.Dictionary

GetDataTypeProperties() public method

public GetDataTypeProperties ( int id ) : string>.Dictionary
id int
return string>.Dictionary

GetMediaProperties() public method

public GetMediaProperties ( int id ) : string>.Dictionary
id int
return string>.Dictionary

GetMediaTypeProperties() public method

public GetMediaTypeProperties ( int id ) : string>.Dictionary
id int
return string>.Dictionary

GetRootContent() public method

public GetRootContent ( ) : Dictionary>
return Dictionary>

GetRootContentTypes() public method

public GetRootContentTypes ( ) : Dictionary>
return Dictionary>

GetRootDataTypes() public method

public GetRootDataTypes ( ) : Dictionary>
return Dictionary>

GetRootMedia() public method

public GetRootMedia ( ) : Dictionary>
return Dictionary>

GetRootMediaTypes() public method

public GetRootMediaTypes ( ) : Dictionary>
return Dictionary>

ImportXml() public method

public ImportXml ( string nodeType, int nodeId, string filePath ) : void
nodeType string
nodeId int
filePath string
return void

MoveContent() public method

public MoveContent ( int id, int parentId ) : bool
id int
parentId int
return bool

MoveContentToRecycleBin() public method

public MoveContentToRecycleBin ( int id ) : bool
id int
return bool

MoveMediaToRecycleBin() public method

public MoveMediaToRecycleBin ( int id ) : bool
id int
return bool

RenameContent() public method

public RenameContent ( int nodeId, string newName ) : void
nodeId int
newName string
return void

RenameMedia() public method

public RenameMedia ( int nodeId, string newName ) : void
nodeId int
newName string
return void

Sandbox() public static method

public static Sandbox ( string assemblyFilename, string configPath, ResolveEventHandler handler ) : ServiceBridge
assemblyFilename string
configPath string
handler ResolveEventHandler
return ServiceBridge

ServiceBridge() public method

public ServiceBridge ( ) : System
return System

ServiceBridge() public method

public ServiceBridge ( string assemblyFilename ) : System
assemblyFilename string
return System