~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/ngit/NGit/NGit.Transport/AdvertiseRefsHook.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
{
49
49
        /// <summary>Hook to allow callers to take over advertising refs to the client.</summary>
50
50
        /// <remarks>Hook to allow callers to take over advertising refs to the client.</remarks>
 
51
        /// <since>2.0</since>
51
52
        public abstract class AdvertiseRefsHook
52
53
        {
53
 
                private sealed class _AdvertiseRefsHook_54 : AdvertiseRefsHook
 
54
                private sealed class _AdvertiseRefsHook_58 : AdvertiseRefsHook
54
55
                {
55
 
                        public _AdvertiseRefsHook_54()
 
56
                        public _AdvertiseRefsHook_58()
56
57
                        {
57
58
                        }
58
59
 
61
62
                        }
62
63
 
63
64
                        // Do nothing.
64
 
                        public override void AdvertiseRefs(ReceivePack receivePack)
 
65
                        public override void AdvertiseRefs(BaseReceivePack receivePack)
65
66
                        {
66
67
                        }
67
68
                }
75
76
                ///     ">UploadPack.SetAdvertisedRefs(System.Collections.Generic.IDictionary&lt;K, V&gt;)
76
77
                ///     </see>
77
78
                /// and
78
 
                /// <see cref="ReceivePack.SetAdvertisedRefs(System.Collections.Generic.IDictionary{K, V}, System.Collections.Generic.ICollection{E})
79
 
                ///     ">ReceivePack.SetAdvertisedRefs(System.Collections.Generic.IDictionary&lt;K, V&gt;, System.Collections.Generic.ICollection&lt;E&gt;)
 
79
                /// <see cref="BaseReceivePack.SetAdvertisedRefs(System.Collections.Generic.IDictionary{K, V}, System.Collections.Generic.ICollection{E})
 
80
                ///     ">BaseReceivePack.SetAdvertisedRefs(System.Collections.Generic.IDictionary&lt;K, V&gt;, System.Collections.Generic.ICollection&lt;E&gt;)
80
81
                ///     </see>
81
82
                /// .
82
83
                /// </remarks>
83
 
                public static AdvertiseRefsHook DEFAULT = new _AdvertiseRefsHook_54();
 
84
                public static readonly AdvertiseRefsHook DEFAULT = new _AdvertiseRefsHook_58();
84
85
 
85
86
                // Do nothing.
86
87
                /// <summary>Advertise refs for upload-pack.</summary>
101
102
                /// <remarks>Advertise refs for receive-pack.</remarks>
102
103
                /// <param name="receivePack">
103
104
                /// instance on which to call
104
 
                /// <see cref="ReceivePack.SetAdvertisedRefs(System.Collections.Generic.IDictionary{K, V}, System.Collections.Generic.ICollection{E})
105
 
                ///     ">ReceivePack.SetAdvertisedRefs(System.Collections.Generic.IDictionary&lt;K, V&gt;, System.Collections.Generic.ICollection&lt;E&gt;)
 
105
                /// <see cref="BaseReceivePack.SetAdvertisedRefs(System.Collections.Generic.IDictionary{K, V}, System.Collections.Generic.ICollection{E})
 
106
                ///     ">BaseReceivePack.SetAdvertisedRefs(System.Collections.Generic.IDictionary&lt;K, V&gt;, System.Collections.Generic.ICollection&lt;E&gt;)
106
107
                ///     </see>
107
108
                /// if necessary.
108
109
                /// </param>
109
110
                /// <exception cref="ServiceMayNotContinueException">abort; the message will be sent to the user.
110
111
                ///     </exception>
111
112
                /// <exception cref="NGit.Transport.ServiceMayNotContinueException"></exception>
112
 
                public abstract void AdvertiseRefs(ReceivePack receivePack);
 
113
                public abstract void AdvertiseRefs(BaseReceivePack receivePack);
113
114
        }
114
115
}