C# Class ArgusTV.Recorders.Common.Utility

Datei anzeigen Open project: ARGUS-TV/ARGUS-TV-Recorders

Public Methods

Method Description
AddNamedPipeEndPoint ( System.ServiceModel.ServiceHost serviceHost, Type interfaceType ) : void
BuildRecordingBaseFileName ( ArgusTV.DataContracts.UpcomingProgram program ) : string
BuildRecordingBaseFileName ( string recordingsPath, ArgusTV.DataContracts.UpcomingProgram program ) : string
ConvertToUncPath ( string recordingsRootUncPath, string fileName ) : string
CreateNamedPipeHost ( Type serviceType, Type interfaceType ) : System.ServiceModel.ServiceHost
CreateUncShare ( string shareName, string localPath ) : bool
GetFreeFileName ( string baseFileName, string extension, int extraCharsRequired ) : string
MakeValidFileName ( string fileName ) : string

Method Details

AddNamedPipeEndPoint() public static method

public static AddNamedPipeEndPoint ( System.ServiceModel.ServiceHost serviceHost, Type interfaceType ) : void
serviceHost System.ServiceModel.ServiceHost
interfaceType System.Type
return void

BuildRecordingBaseFileName() public static method

public static BuildRecordingBaseFileName ( ArgusTV.DataContracts.UpcomingProgram program ) : string
program ArgusTV.DataContracts.UpcomingProgram
return string

BuildRecordingBaseFileName() public static method

public static BuildRecordingBaseFileName ( string recordingsPath, ArgusTV.DataContracts.UpcomingProgram program ) : string
recordingsPath string
program ArgusTV.DataContracts.UpcomingProgram
return string

ConvertToUncPath() public static method

public static ConvertToUncPath ( string recordingsRootUncPath, string fileName ) : string
recordingsRootUncPath string
fileName string
return string

CreateNamedPipeHost() public static method

public static CreateNamedPipeHost ( Type serviceType, Type interfaceType ) : System.ServiceModel.ServiceHost
serviceType System.Type
interfaceType System.Type
return System.ServiceModel.ServiceHost

CreateUncShare() public static method

public static CreateUncShare ( string shareName, string localPath ) : bool
shareName string
localPath string
return bool

GetFreeFileName() public static method

public static GetFreeFileName ( string baseFileName, string extension, int extraCharsRequired ) : string
baseFileName string
extension string
extraCharsRequired int
return string

MakeValidFileName() public static method

public static MakeValidFileName ( string fileName ) : string
fileName string
return string