コード例 #1
0
        public override bool Equals(OperationArgumentsBase args)
        {
            SyncOperationArguments syncArgs = (SyncOperationArguments)args;

            return(DestinationDirectory == syncArgs.DestinationDirectory &&
                   SourceDirectory == syncArgs.SourceDirectory);
        }
コード例 #2
0
        public SyncOperation(SyncOperationArguments arguments, RepositoryArgumentsBase destinationDirectory, RepositoryArgumentsBase sourceDirectory)
        {
            Contract.Requires(arguments != null);
            Contract.Requires(sourceDirectory != null);
            Contract.Requires(destinationDirectory != null);

            this.arguments            = arguments;
            this.sourceDirectory      = sourceDirectory;
            this.destinationDirectory = destinationDirectory;
        }