Bloom.SendReceive.SendReceiver.SendReceiver C# (CSharp) Method

SendReceiver() public method

public SendReceiver ( Chorus.ChorusSystem chorusSystem, Func
getFormWithContextForInvokingErrorDialogs ) : System
chorusSystem Chorus.ChorusSystem
getFormWithContextForInvokingErrorDialogs Func using a function here rather than a value /// becuase this class is created by the dependency injection system while building up this for (a /// project window), so that value isn't available yet.
return System
        public SendReceiver(ChorusSystem chorusSystem, Func<Form> getFormWithContextForInvokingErrorDialogs )
        {
            _getFormWithContextForInvokingErrorDialogs = getFormWithContextForInvokingErrorDialogs;
            //Guard.AgainstNull(formWithContextForInvokingErrorDialogs, "formWithContextForInvokingErrorDialogs");
            //_formWithContextForInvokingErrorDialogs = formWithContextForInvokingErrorDialogs;

            //we don't do chorus on our source tree
            SendReceiveDisabled = !Settings.Default.ShowSendReceive || !chorusSystem.DidLoadUpCorrectly || chorusSystem.ProjectFolderConfiguration.FolderPath.ToLowerInvariant().Contains("distfiles");

            if (!SendReceiveDisabled)
            {
                _chorusSystem = chorusSystem;
                BloomChorusRules.AddFileInfoToFolderConfiguration(_chorusSystem.ProjectFolderConfiguration);
            }
        }