本文整理汇总了C#中ISession.ArePrivateWorkingCopySupported方法的典型用法代码示例。如果您正苦于以下问题:C# ISession.ArePrivateWorkingCopySupported方法的具体用法?C# ISession.ArePrivateWorkingCopySupported怎么用?C# ISession.ArePrivateWorkingCopySupported使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ISession
的用法示例。
在下文中一共展示了ISession.ArePrivateWorkingCopySupported方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AbstractEnhancedSolverWithPWC
/// <summary>
/// Initializes a new instance of the <see cref="CmisSync.Lib.Consumer.SituationSolver.PWC.AbstractEnhancedSolverWithPWC"/> class.
/// </summary>
/// <param name="session">Cmis Session.</param>
/// <param name="storage">Meta Data Storage.</param>
/// <param name="transmissionStorage">File Transmission Storage.</param>
public AbstractEnhancedSolverWithPWC(
ISession session,
IMetaDataStorage storage,
IFileTransmissionStorage transmissionStorage) : base(session, storage, transmissionStorage) {
if (transmissionStorage == null) {
throw new ArgumentNullException("Given transmission storage is null");
}
if (!session.ArePrivateWorkingCopySupported()) {
throw new ArgumentException("Given session does not support private working copies");
}
}
示例2: LocalObjectChangedWithPWC
public LocalObjectChangedWithPWC(
ISession session,
IMetaDataStorage storage,
IFileTransmissionStorage transmissionStorage,
ITransmissionManager manager,
ISolver folderOrFileContentUnchangedSolver) : base(session, storage, transmissionStorage) {
if (folderOrFileContentUnchangedSolver == null) {
throw new ArgumentNullException("folderOrFileContentUnchangedSolver", "Given solver for folder or unchanged file content situations is null");
}
if (!session.ArePrivateWorkingCopySupported()) {
throw new ArgumentException("The given session does not support private working copies", "session");
}
this.folderOrFileContentUnchangedSolver = folderOrFileContentUnchangedSolver;
this.transmissionManager = manager;
}
示例3: LocalObjectChangedRemoteObjectChangedWithPWC
/// <summary>
/// Initializes a new instance of the
/// <see cref="CmisSync.Lib.Consumer.SituationSolver.PWC.LocalObjectChangedRemoteObjectChangedWithPWC"/> class.
/// </summary>
/// <param name="session">Cmis session.</param>
/// <param name="storage">Meta data storage.</param>
/// <param name="transmissionStorage">Transmission storage.</param>
/// <param name="manager">Transmission manager.</param>
/// <param name="localObjectChangedRemoteObjectChangedFallbackSolver">Local object changed remote object changed fallback solver.</param>
public LocalObjectChangedRemoteObjectChangedWithPWC(
ISession session,
IMetaDataStorage storage,
IFileTransmissionStorage transmissionStorage,
TransmissionManager manager,
ISolver localObjectChangedRemoteObjectChangedFallbackSolver) : base(session, storage, transmissionStorage)
{
if (localObjectChangedRemoteObjectChangedFallbackSolver == null) {
throw new ArgumentNullException("localObjectChangedRemoteObjectChangedFallbackSolver", "Given fallback solver is null");
}
if (!session.ArePrivateWorkingCopySupported()) {
throw new ArgumentException("Given session does not support pwc updates", "session");
}
this.fallbackSolver = localObjectChangedRemoteObjectChangedFallbackSolver;
this.transmissionManager = manager;
}
示例4: LocalObjectAddedWithPWC
/// <summary>
/// Initializes a new instance of the <see cref="CmisSync.Lib.Consumer.SituationSolver.PWC.LocalObjectAddedWithPWC"/> class.
/// </summary>
/// <param name="session">Cmis session.</param>
/// <param name="storage">Meta data storage.</param>
/// <param name="transmissionStorage">Transmission storage.</param>
/// <param name="manager">Active activities manager.</param>
/// <param name="localFolderOrEmptyFileAddedSolver">Local folder or empty file added solver.</param>
public LocalObjectAddedWithPWC(
ISession session,
IMetaDataStorage storage,
IFileTransmissionStorage transmissionStorage,
ITransmissionManager manager,
ISolver localFolderOrEmptyFileAddedSolver) : base(session, storage, transmissionStorage)
{
if (localFolderOrEmptyFileAddedSolver == null) {
throw new ArgumentNullException("localFolderOrEmptyFileAddedSolver", "Given solver for locally added folders is null");
}
if (!session.ArePrivateWorkingCopySupported()) {
throw new ArgumentException("Given session doesn't support private working copies", "session");
}
this.folderOrEmptyFileAddedSolver = localFolderOrEmptyFileAddedSolver;
this.transmissionManager = manager;
}