C# Class ABsoluteMaybe.Persistence.Xml.XmlExperimentCommands

Inheritance: IExperimentCommands
Datei anzeigen Open project: troygoode/ABsoluteMaybe

Public Methods

Method Description
Convert ( string conversionKeyword, string userId ) : void
EndExperiment ( string experimentName, string alwaysUseOption ) : void
GetOrCreateExperiment ( string experimentName, IEnumerable options ) : ExperimentSummary
GetOrCreateExperiment ( string experimentName, string conversionKeyword, IEnumerable options ) : ExperimentSummary
GetOrCreateParticipationRecord ( string experimentName, Func chooseAnOptionForUser, string userId ) : ParticipationRecord
XmlExperimentCommands ( string pathToXmlStorage ) : System

Protected Methods

Method Description
Load ( ) : System.Xml.Linq.XDocument
Save ( System.Xml.Linq.XDocument xml ) : void

Method Details

Convert() public method

public Convert ( string conversionKeyword, string userId ) : void
conversionKeyword string
userId string
return void

EndExperiment() public method

public EndExperiment ( string experimentName, string alwaysUseOption ) : void
experimentName string
alwaysUseOption string
return void

GetOrCreateExperiment() public method

public GetOrCreateExperiment ( string experimentName, IEnumerable options ) : ExperimentSummary
experimentName string
options IEnumerable
return ABsoluteMaybe.Domain.ExperimentSummary

GetOrCreateExperiment() public method

public GetOrCreateExperiment ( string experimentName, string conversionKeyword, IEnumerable options ) : ExperimentSummary
experimentName string
conversionKeyword string
options IEnumerable
return ABsoluteMaybe.Domain.ExperimentSummary

GetOrCreateParticipationRecord() public method

public GetOrCreateParticipationRecord ( string experimentName, Func chooseAnOptionForUser, string userId ) : ParticipationRecord
experimentName string
chooseAnOptionForUser Func
userId string
return ABsoluteMaybe.Domain.ParticipationRecord

Load() protected method

protected Load ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument

Save() protected method

protected Save ( System.Xml.Linq.XDocument xml ) : void
xml System.Xml.Linq.XDocument
return void

XmlExperimentCommands() public method

public XmlExperimentCommands ( string pathToXmlStorage ) : System
pathToXmlStorage string
return System