-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
ServiceHostBase.xml
1289 lines (1227 loc) · 97.1 KB
/
ServiceHostBase.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="ServiceHostBase" FullName="System.ServiceModel.ServiceHostBase">
<TypeSignature Language="C#" Value="public abstract class ServiceHostBase : System.ServiceModel.Channels.CommunicationObject, IDisposable, System.ServiceModel.IExtensibleObject<System.ServiceModel.ServiceHostBase>" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit ServiceHostBase extends System.ServiceModel.Channels.CommunicationObject implements class System.IDisposable, class System.ServiceModel.IExtensibleObject`1<class System.ServiceModel.ServiceHostBase>" />
<TypeSignature Language="DocId" Value="T:System.ServiceModel.ServiceHostBase" />
<TypeSignature Language="VB.NET" Value="Public MustInherit Class ServiceHostBase
Inherits CommunicationObject
Implements IDisposable, IExtensibleObject(Of ServiceHostBase)" />
<TypeSignature Language="F#" Value="type ServiceHostBase = class
 inherit CommunicationObject
 interface IExtensibleObject<ServiceHostBase>
 interface IDisposable" />
<TypeSignature Language="C++ CLI" Value="public ref class ServiceHostBase abstract : System::ServiceModel::Channels::CommunicationObject, IDisposable, System::ServiceModel::IExtensibleObject<System::ServiceModel::ServiceHostBase ^>" />
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.ServiceModel.Channels.CommunicationObject</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.ServiceModel.IExtensibleObject<System.ServiceModel.ServiceHostBase></InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>Extends the <see cref="T:System.ServiceModel.ServiceHostBase" /> class to implement hosts that expose custom programming models.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.ServiceModel.ServiceHostBase> class to create hosts that provide a custom programming model. The Windows Communication Foundation (WCF) service programming model uses the <xref:System.ServiceModel.ServiceHost> class.
Special note for Managed C++ users deriving from this class:
- Put your cleanup code in (On)(Begin)Close (and/or OnAbort), not in a destructor.
- Avoid destructors; they cause the compiler to auto-generate <xref:System.IDisposable>.
- Avoid non-reference members; they can cause the compiler to auto-generate <xref:System.IDisposable>.
- Avoid finalizers; but if you include one, you should suppress the build warning and call <xref:System.GC.SuppressFinalize%28System.Object%29> and the finalizer itself from (On)(Begin)Close (and/or OnAbort) to emulate what would have been the auto-generated <xref:System.IDisposable> behavior.
## Examples
This sample uses the <xref:System.ServiceModel.ServiceHost> class, which is derived from <xref:System.ServiceModel.ServiceHostBase>.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CFX/s_selfhost/vb/wholeenchilada.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected ServiceHostBase ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.#ctor" />
<MemberSignature Language="VB.NET" Value="Protected Sub New ()" />
<MemberSignature Language="C++ CLI" Value="protected:
 ServiceHostBase();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.ServiceModel.ServiceHostBase" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet30":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="AddBaseAddress">
<MemberSignature Language="C#" Value="protected void AddBaseAddress (Uri baseAddress);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void AddBaseAddress(class System.Uri baseAddress) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.AddBaseAddress(System.Uri)" />
<MemberSignature Language="VB.NET" Value="Protected Sub AddBaseAddress (baseAddress As Uri)" />
<MemberSignature Language="F#" Value="member this.AddBaseAddress : Uri -> unit" Usage="serviceHostBase.AddBaseAddress baseAddress" />
<MemberSignature Language="C++ CLI" Value="protected:
 void AddBaseAddress(Uri ^ baseAddress);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="baseAddress" Type="System.Uri" />
</Parameters>
<Docs>
<param name="baseAddress">A <see cref="T:System.Uri" /> that contains the base address for services hosted on the current host.</param>
<summary>Adds a base address to the service host.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property allows users extending <xref:System.ServiceModel.ServiceHostBase> to provide the base address after the host is constructed. <xref:System.ServiceModel.ServiceHostBase.AddBaseAddress%28System.Uri%29> can be used to add base addresses to an existing host, but throws an exception if the description is already initialized.
]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">The <paramref name="baseAddress" /> cannot be called.</exception>
</Docs>
</Member>
<Member MemberName="AddDefaultEndpoints">
<MemberSignature Language="C#" Value="public virtual System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Description.ServiceEndpoint> AddDefaultEndpoints ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.ObjectModel.ReadOnlyCollection`1<class System.ServiceModel.Description.ServiceEndpoint> AddDefaultEndpoints() cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.AddDefaultEndpoints" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function AddDefaultEndpoints () As ReadOnlyCollection(Of ServiceEndpoint)" />
<MemberSignature Language="F#" Value="abstract member AddDefaultEndpoints : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Description.ServiceEndpoint>
override this.AddDefaultEndpoints : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Description.ServiceEndpoint>" Usage="serviceHostBase.AddDefaultEndpoints " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual System::Collections::ObjectModel::ReadOnlyCollection<System::ServiceModel::Description::ServiceEndpoint ^> ^ AddDefaultEndpoints();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Description.ServiceEndpoint></ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Adds service endpoints for all base addresses in each contract found in the service host with the default binding.</summary>
<returns>A read-only collection of default endpoints.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<MemberGroup MemberName="AddServiceEndpoint">
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Adds the service endpoints to the service hosted.</summary>
</Docs>
</MemberGroup>
<Member MemberName="AddServiceEndpoint">
<MemberSignature Language="C#" Value="public virtual void AddServiceEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void AddServiceEndpoint(class System.ServiceModel.Description.ServiceEndpoint endpoint) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.AddServiceEndpoint(System.ServiceModel.Description.ServiceEndpoint)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Sub AddServiceEndpoint (endpoint As ServiceEndpoint)" />
<MemberSignature Language="F#" Value="abstract member AddServiceEndpoint : System.ServiceModel.Description.ServiceEndpoint -> unit
override this.AddServiceEndpoint : System.ServiceModel.Description.ServiceEndpoint -> unit" Usage="serviceHostBase.AddServiceEndpoint endpoint" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual void AddServiceEndpoint(System::ServiceModel::Description::ServiceEndpoint ^ endpoint);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="endpoint" Type="System.ServiceModel.Description.ServiceEndpoint" Index="0" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
</Parameters>
<Docs>
<param name="endpoint">The service endpoint.</param>
<summary>Adds the specified service endpoint to the hosted service.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When using the method, the service host does a "by-configuration-name" validation on the contract description. In other words, the host verifies that <xref:System.ServiceModel.Description.ContractDescription.ConfigurationName%2A> exists in the list of configuration names of the service contracts implemented by the service. If the validation passes, the description in the <xref:System.ServiceModel.Description.ServiceEndpoint> is used as it is, even if the <xref:System.ServiceModel.Description.ContractDescription> reflected from the service is different.
As an example, assume that the description in the ServiceEndpoint and the contract description reflected from the service have the same name, but different operation behaviors. The implication of only "by-configuration-name" validation is that there is no validation that the behaviors are the same and there are one updates to one description because of another description.
If the `address` is a relative URI, one of the base addresses of the <xref:System.ServiceModel.ServiceHost> (depending on the binding protocol) is used as the endpoint's base address.
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="Endpoint" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The host is not in a Created or an Opening state or there is no <see cref="T:System.ServiceModel.Description.ServiceDescription" /> for the hosted service.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="Address" />, <paramref name="Binding" />, or <paramref name="Contract" /> property is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="AddServiceEndpoint">
<MemberSignature Language="C#" Value="public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (string implementedContract, System.ServiceModel.Channels.Binding binding, string address);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint(string implementedContract, class System.ServiceModel.Channels.Binding binding, string address) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.AddServiceEndpoint(System.String,System.ServiceModel.Channels.Binding,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function AddServiceEndpoint (implementedContract As String, binding As Binding, address As String) As ServiceEndpoint" />
<MemberSignature Language="F#" Value="member this.AddServiceEndpoint : string * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.Description.ServiceEndpoint" Usage="serviceHostBase.AddServiceEndpoint (implementedContract, binding, address)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(System::String ^ implementedContract, System::ServiceModel::Channels::Binding ^ binding, System::String ^ address);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ServiceModel.Description.ServiceEndpoint</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="implementedContract" Type="System.String" />
<Parameter Name="binding" Type="System.ServiceModel.Channels.Binding" />
<Parameter Name="address" Type="System.String" />
</Parameters>
<Docs>
<param name="implementedContract">The contract implemented by the endpoint.</param>
<param name="binding">The <see cref="T:System.ServiceModel.Channels.Binding" /> for the endpoint added.</param>
<param name="address">The address for the endpoint added. This can be an absolute or relative URI. If it is a relative URI, one of the base address of the <see cref="T:System.ServiceModel.ServiceHost" /> (depending on the binding protocol) is used as the endpoint's base address.</param>
<summary>Adds a service endpoint to the hosted service with a specified contract, binding, and endpoint address.</summary>
<returns>The <see cref="T:System.ServiceModel.Description.ServiceEndpoint" /> added to the hosted service.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet40":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="implementedContract" /> or <paramref name="binding" /> or <paramref name="address" /> or is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The host is not in a <see cref="F:System.ServiceModel.CommunicationState.Created" /> or an <see cref="F:System.ServiceModel.CommunicationState.Opening" /> state or there is no <see cref="T:System.ServiceModel.Description.ServiceDescription" /> for the hosted service and so an endpoint cannot be added or the binding lacks a transport of binding scheme.</exception>
</Docs>
</Member>
<Member MemberName="AddServiceEndpoint">
<MemberSignature Language="C#" Value="public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (string implementedContract, System.ServiceModel.Channels.Binding binding, Uri address);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint(string implementedContract, class System.ServiceModel.Channels.Binding binding, class System.Uri address) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.AddServiceEndpoint(System.String,System.ServiceModel.Channels.Binding,System.Uri)" />
<MemberSignature Language="VB.NET" Value="Public Function AddServiceEndpoint (implementedContract As String, binding As Binding, address As Uri) As ServiceEndpoint" />
<MemberSignature Language="F#" Value="member this.AddServiceEndpoint : string * System.ServiceModel.Channels.Binding * Uri -> System.ServiceModel.Description.ServiceEndpoint" Usage="serviceHostBase.AddServiceEndpoint (implementedContract, binding, address)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(System::String ^ implementedContract, System::ServiceModel::Channels::Binding ^ binding, Uri ^ address);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ServiceModel.Description.ServiceEndpoint</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="implementedContract" Type="System.String" />
<Parameter Name="binding" Type="System.ServiceModel.Channels.Binding" />
<Parameter Name="address" Type="System.Uri" />
</Parameters>
<Docs>
<param name="implementedContract">The contract implemented by the endpoint.</param>
<param name="binding">The <see cref="T:System.ServiceModel.Channels.Binding" /> for the endpoint added.</param>
<param name="address">The <see cref="T:System.Uri" /> that contains the address for the endpoint added. This can be an absolute or relative URI. If it is a relative URI, one of the base address of the <see cref="T:System.ServiceModel.ServiceHost" /> (depending on the binding protocol) is used as the endpoint's base address.</param>
<summary>Adds a service endpoint to the hosted service with a specified contract, binding, and a URI that contains the endpoint address.</summary>
<returns>The <see cref="T:System.ServiceModel.Description.ServiceEndpoint" /> added to the hosted service.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="implementedContract" /> or <paramref name="binding" /> or <paramref name="address" /> or is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The host is not in a <see cref="F:System.ServiceModel.CommunicationState.Created" /> or an <see cref="F:System.ServiceModel.CommunicationState.Opening" /> state or there is no <see cref="T:System.ServiceModel.Description.ServiceDescription" /> for the hosted service and so an endpoint cannot be added.</exception>
</Docs>
</Member>
<Member MemberName="AddServiceEndpoint">
<MemberSignature Language="C#" Value="public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (string implementedContract, System.ServiceModel.Channels.Binding binding, string address, Uri listenUri);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint(string implementedContract, class System.ServiceModel.Channels.Binding binding, string address, class System.Uri listenUri) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.AddServiceEndpoint(System.String,System.ServiceModel.Channels.Binding,System.String,System.Uri)" />
<MemberSignature Language="VB.NET" Value="Public Function AddServiceEndpoint (implementedContract As String, binding As Binding, address As String, listenUri As Uri) As ServiceEndpoint" />
<MemberSignature Language="F#" Value="member this.AddServiceEndpoint : string * System.ServiceModel.Channels.Binding * string * Uri -> System.ServiceModel.Description.ServiceEndpoint" Usage="serviceHostBase.AddServiceEndpoint (implementedContract, binding, address, listenUri)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(System::String ^ implementedContract, System::ServiceModel::Channels::Binding ^ binding, System::String ^ address, Uri ^ listenUri);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.ServiceModel.Description.ServiceEndpoint</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="implementedContract" Type="System.String" />
<Parameter Name="binding" Type="System.ServiceModel.Channels.Binding" />
<Parameter Name="address" Type="System.String" />
<Parameter Name="listenUri" Type="System.Uri" />
</Parameters>
<Docs>
<param name="implementedContract">The contract implemented by the endpoint.</param>
<param name="binding">The <see cref="T:System.ServiceModel.Channels.Binding" /> for the endpoint added.</param>
<param name="address">The address for the endpoint added. This address can be an absolute or relative URI. If it is a relative URI, one of the base address of the <see cref="T:System.ServiceModel.ServiceHost" /> (depending on the binding protocol) is used as the endpoint's base address.</param>
<param name="listenUri">The <see cref="T:System.Uri" /> that contains the address which the endpoint listens to for incoming messages. This URI can be relative or absolute.</param>
<summary>Adds a service endpoint to the hosted service with a specified contract, binding, endpoint address and URI that contains the address at which it listens.</summary>
<returns>The <see cref="T:System.ServiceModel.Description.ServiceEndpoint" /> added to the hosted service.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If the `address` is a relative URI, one of the base addresses of the <xref:System.ServiceModel.ServiceHost> (depending on the binding protocol) is used as the endpoint's base address.
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="implementedContract" /> or <paramref name="binding" /> or <paramref name="address" /> or is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The host is not in a <see cref="F:System.ServiceModel.CommunicationState.Created" /> or an <see cref="F:System.ServiceModel.CommunicationState.Opening" /> state or there is no <see cref="T:System.ServiceModel.Description.ServiceDescription" /> for the hosted service and so an endpoint cannot be added.</exception>
</Docs>
</Member>
<Member MemberName="AddServiceEndpoint">
<MemberSignature Language="C#" Value="public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (string implementedContract, System.ServiceModel.Channels.Binding binding, Uri address, Uri listenUri);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint(string implementedContract, class System.ServiceModel.Channels.Binding binding, class System.Uri address, class System.Uri listenUri) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.AddServiceEndpoint(System.String,System.ServiceModel.Channels.Binding,System.Uri,System.Uri)" />
<MemberSignature Language="VB.NET" Value="Public Function AddServiceEndpoint (implementedContract As String, binding As Binding, address As Uri, listenUri As Uri) As ServiceEndpoint" />
<MemberSignature Language="F#" Value="member this.AddServiceEndpoint : string * System.ServiceModel.Channels.Binding * Uri * Uri -> System.ServiceModel.Description.ServiceEndpoint" Usage="serviceHostBase.AddServiceEndpoint (implementedContract, binding, address, listenUri)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(System::String ^ implementedContract, System::ServiceModel::Channels::Binding ^ binding, Uri ^ address, Uri ^ listenUri);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.ServiceModel.Description.ServiceEndpoint</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="implementedContract" Type="System.String" />
<Parameter Name="binding" Type="System.ServiceModel.Channels.Binding" />
<Parameter Name="address" Type="System.Uri" />
<Parameter Name="listenUri" Type="System.Uri" />
</Parameters>
<Docs>
<param name="implementedContract">The contract implemented by the endpoint.</param>
<param name="binding">The <see cref="T:System.ServiceModel.Channels.Binding" /> for the endpoint added.</param>
<param name="address">The <see cref="T:System.Uri" /> that contains the address for the endpoint added. If it is a relative URI, one of the base address of the <see cref="T:System.ServiceModel.ServiceHost" /> (depending on the binding protocol) is used as the endpoint's base address.</param>
<param name="listenUri">The <see cref="T:System.Uri" /> that contains the address at which the endpoint listens for incoming messages.</param>
<summary>Adds a service endpoint to the hosted service with the specified contract, binding, and URIs that contain the endpoint and listening addresses.</summary>
<returns>The <see cref="T:System.ServiceModel.Description.ServiceEndpoint" /> added to the hosted service. This URI can be absolute or relative.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="implementedContract" /> or <paramref name="binding" /> or <paramref name="address" /> or is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The host is not in a <see cref="F:System.ServiceModel.CommunicationState.Created" /> or an <see cref="F:System.ServiceModel.CommunicationState.Opening" /> state or there is no <see cref="T:System.ServiceModel.Description.ServiceDescription" /> for the hosted service and so an endpoint cannot be added.</exception>
</Docs>
</Member>
<Member MemberName="ApplyConfiguration">
<MemberSignature Language="C#" Value="protected virtual void ApplyConfiguration ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void ApplyConfiguration() cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.ApplyConfiguration" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub ApplyConfiguration ()" />
<MemberSignature Language="F#" Value="abstract member ApplyConfiguration : unit -> unit
override this.ApplyConfiguration : unit -> unit" Usage="serviceHostBase.ApplyConfiguration " />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual void ApplyConfiguration();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Loads the service description information from the configuration file and applies it to the runtime being constructed.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.InvalidOperationException">The description of the service hosted is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Authentication">
<MemberSignature Language="C#" Value="public System.ServiceModel.Description.ServiceAuthenticationBehavior Authentication { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.ServiceModel.Description.ServiceAuthenticationBehavior Authentication" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.Authentication" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Authentication As ServiceAuthenticationBehavior" />
<MemberSignature Language="F#" Value="member this.Authentication : System.ServiceModel.Description.ServiceAuthenticationBehavior" Usage="System.ServiceModel.ServiceHostBase.Authentication" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::ServiceModel::Description::ServiceAuthenticationBehavior ^ Authentication { System::ServiceModel::Description::ServiceAuthenticationBehavior ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.ServiceModel.Description.ServiceAuthenticationBehavior</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the service authentication behavior.</summary>
<value>The service authentication behavior.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Authorization">
<MemberSignature Language="C#" Value="public System.ServiceModel.Description.ServiceAuthorizationBehavior Authorization { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.ServiceModel.Description.ServiceAuthorizationBehavior Authorization" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.Authorization" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Authorization As ServiceAuthorizationBehavior" />
<MemberSignature Language="F#" Value="member this.Authorization : System.ServiceModel.Description.ServiceAuthorizationBehavior" Usage="System.ServiceModel.ServiceHostBase.Authorization" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::ServiceModel::Description::ServiceAuthorizationBehavior ^ Authorization { System::ServiceModel::Description::ServiceAuthorizationBehavior ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.ServiceModel.Description.ServiceAuthorizationBehavior</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the authorization behavior for the service hosted.</summary>
<value>The <see cref="T:System.ServiceModel.Description.ServiceAuthorizationBehavior" /> for the service hosted.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet36":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BaseAddresses">
<MemberSignature Language="C#" Value="public System.Collections.ObjectModel.ReadOnlyCollection<Uri> BaseAddresses { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.ObjectModel.ReadOnlyCollection`1<class System.Uri> BaseAddresses" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.BaseAddresses" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property BaseAddresses As ReadOnlyCollection(Of Uri)" />
<MemberSignature Language="F#" Value="member this.BaseAddresses : System.Collections.ObjectModel.ReadOnlyCollection<Uri>" Usage="System.ServiceModel.ServiceHostBase.BaseAddresses" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Collections::ObjectModel::ReadOnlyCollection<Uri ^> ^ BaseAddresses { System::Collections::ObjectModel::ReadOnlyCollection<Uri ^> ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.ObjectModel.ReadOnlyCollection<System.Uri></ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the base addresses used by the hosted service.</summary>
<value>A <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" /> of type <see cref="T:System.Uri" /> that contains the base addresses for the hosted service.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ChannelDispatchers">
<MemberSignature Language="C#" Value="public System.ServiceModel.Dispatcher.ChannelDispatcherCollection ChannelDispatchers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.ServiceModel.Dispatcher.ChannelDispatcherCollection ChannelDispatchers" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.ChannelDispatchers" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ChannelDispatchers As ChannelDispatcherCollection" />
<MemberSignature Language="F#" Value="member this.ChannelDispatchers : System.ServiceModel.Dispatcher.ChannelDispatcherCollection" Usage="System.ServiceModel.ServiceHostBase.ChannelDispatchers" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::ServiceModel::Dispatcher::ChannelDispatcherCollection ^ ChannelDispatchers { System::ServiceModel::Dispatcher::ChannelDispatcherCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ServiceModel.Dispatcher.ChannelDispatcherCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the collection of channel dispatchers used by the service host.</summary>
<value>The <see cref="T:System.ServiceModel.Dispatcher.ChannelDispatcherCollection" /> that contains the channel dispatchers used by the service host.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CloseTimeout">
<MemberSignature Language="C#" Value="public TimeSpan CloseTimeout { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.TimeSpan CloseTimeout" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.CloseTimeout" />
<MemberSignature Language="VB.NET" Value="Public Property CloseTimeout As TimeSpan" />
<MemberSignature Language="F#" Value="member this.CloseTimeout : TimeSpan with get, set" Usage="System.ServiceModel.ServiceHostBase.CloseTimeout" />
<MemberSignature Language="C++ CLI" Value="public:
 property TimeSpan CloseTimeout { TimeSpan get(); void set(TimeSpan value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.TimeSpan</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the interval of time allowed for the service host to close.</summary>
<value>The <see cref="T:System.TimeSpan" /> that specifies the interval of time allowed for the service host to close.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet33":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">The value, in milliseconds, is less than zero or is larger than <see cref="F:System.Int32.MaxValue">Int32.MaxValue</see> (2,147,483,647 or, in hexadecimal notation, 0X7FFFFFFF).</exception>
<exception cref="T:System.InvalidOperationException">The host is in an <see cref="F:System.ServiceModel.CommunicationState.Opening" /> or <see cref="F:System.ServiceModel.CommunicationState.Closing" /> state and cannot be modified.</exception>
<exception cref="T:System.ObjectDisposedException">The host is already in a <see cref="F:System.ServiceModel.CommunicationState.Closed" /> state and cannot be modified.</exception>
<exception cref="T:System.ServiceModel.CommunicationObjectFaultedException">The host is in a <see cref="F:System.ServiceModel.CommunicationState.Faulted" /> state and cannot be modified.</exception>
</Docs>
</Member>
<Member MemberName="CreateDescription">
<MemberSignature Language="C#" Value="protected abstract System.ServiceModel.Description.ServiceDescription CreateDescription (out System.Collections.Generic.IDictionary<string,System.ServiceModel.Description.ContractDescription> implementedContracts);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance class System.ServiceModel.Description.ServiceDescription CreateDescription([out] class System.Collections.Generic.IDictionary`2<string, class System.ServiceModel.Description.ContractDescription>& implementedContracts) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.CreateDescription(System.Collections.Generic.IDictionary{System.String,System.ServiceModel.Description.ContractDescription}@)" />
<MemberSignature Language="VB.NET" Value="Protected MustOverride Function CreateDescription (ByRef implementedContracts As IDictionary(Of String, ContractDescription)) As ServiceDescription" />
<MemberSignature Language="F#" Value="abstract member CreateDescription : IDictionary -> System.ServiceModel.Description.ServiceDescription" Usage="serviceHostBase.CreateDescription implementedContracts" />
<MemberSignature Language="C++ CLI" Value="protected:
 abstract System::ServiceModel::Description::ServiceDescription ^ CreateDescription([Runtime::InteropServices::Out] System::Collections::Generic::IDictionary<System::String ^, System::ServiceModel::Description::ContractDescription ^> ^ % implementedContracts);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.ServiceModel.Description.ServiceDescription</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="implementedContracts" Type="System.Collections.Generic.IDictionary<System.String,System.ServiceModel.Description.ContractDescription>" RefType="out" />
</Parameters>
<Docs>
<param name="implementedContracts">The <see cref="T:System.Collections.Generic.IDictionary`2" /> that contains the <see cref="T:System.ServiceModel.Description.ContractDescription" /> objects for the service.</param>
<summary>When implemented in a derived class, creates the description of the hosted service.</summary>
<returns>The <see cref="T:System.ServiceModel.Description.ServiceDescription" /> for the hosted service.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet41":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Credentials">
<MemberSignature Language="C#" Value="public System.ServiceModel.Description.ServiceCredentials Credentials { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.ServiceModel.Description.ServiceCredentials Credentials" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.Credentials" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Credentials As ServiceCredentials" />
<MemberSignature Language="F#" Value="member this.Credentials : System.ServiceModel.Description.ServiceCredentials" Usage="System.ServiceModel.ServiceHostBase.Credentials" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::ServiceModel::Description::ServiceCredentials ^ Credentials { System::ServiceModel::Description::ServiceCredentials ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.ServiceModel.Description.ServiceCredentials</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the credential for the service hosted.</summary>
<value>The <see cref="T:System.ServiceModel.Description.ServiceCredentials" /> for the service hosted.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet37":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DefaultCloseTimeout">
<MemberSignature Language="C#" Value="protected override TimeSpan DefaultCloseTimeout { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.TimeSpan DefaultCloseTimeout" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.DefaultCloseTimeout" />
<MemberSignature Language="VB.NET" Value="Protected Overrides ReadOnly Property DefaultCloseTimeout As TimeSpan" />
<MemberSignature Language="F#" Value="member this.DefaultCloseTimeout : TimeSpan" Usage="System.ServiceModel.ServiceHostBase.DefaultCloseTimeout" />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual property TimeSpan DefaultCloseTimeout { TimeSpan get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.TimeSpan</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the default interval of time allowed for the service host to close.</summary>
<value>The <see cref="T:System.TimeSpan" /> that specifies the default interval of time allowed for the service host to close.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DefaultOpenTimeout">
<MemberSignature Language="C#" Value="protected override TimeSpan DefaultOpenTimeout { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.TimeSpan DefaultOpenTimeout" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.DefaultOpenTimeout" />
<MemberSignature Language="VB.NET" Value="Protected Overrides ReadOnly Property DefaultOpenTimeout As TimeSpan" />
<MemberSignature Language="F#" Value="member this.DefaultOpenTimeout : TimeSpan" Usage="System.ServiceModel.ServiceHostBase.DefaultOpenTimeout" />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual property TimeSpan DefaultOpenTimeout { TimeSpan get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.TimeSpan</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the default interval of time allowed for the service host to open.</summary>
<value>The <see cref="T:System.TimeSpan" /> that specifies the default interval of time allowed for the service host to open.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet35":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Description">
<MemberSignature Language="C#" Value="public System.ServiceModel.Description.ServiceDescription Description { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.ServiceModel.Description.ServiceDescription Description" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.Description" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Description As ServiceDescription" />
<MemberSignature Language="F#" Value="member this.Description : System.ServiceModel.Description.ServiceDescription" Usage="System.ServiceModel.ServiceHostBase.Description" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::ServiceModel::Description::ServiceDescription ^ Description { System::ServiceModel::Description::ServiceDescription ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ServiceModel.Description.ServiceDescription</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the description of the service hosted.</summary>
<value>The <see cref="T:System.ServiceModel.Description.ServiceDescription" /> for the hosted service.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet38":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Extensions">
<MemberSignature Language="C#" Value="public System.ServiceModel.IExtensionCollection<System.ServiceModel.ServiceHostBase> Extensions { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.ServiceModel.IExtensionCollection`1<class System.ServiceModel.ServiceHostBase> Extensions" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.Extensions" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Extensions As IExtensionCollection(Of ServiceHostBase)" />
<MemberSignature Language="F#" Value="member this.Extensions : System.ServiceModel.IExtensionCollection<System.ServiceModel.ServiceHostBase>" Usage="System.ServiceModel.ServiceHostBase.Extensions" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::ServiceModel::IExtensionCollection<System::ServiceModel::ServiceHostBase ^> ^ Extensions { System::ServiceModel::IExtensionCollection<System::ServiceModel::ServiceHostBase ^> ^ get(); };" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:System.ServiceModel.IExtensibleObject`1.Extensions</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ServiceModel.IExtensionCollection<System.ServiceModel.ServiceHostBase></ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the extensions for the current specified service host.</summary>
<value>An <see cref="T:System.ServiceModel.IExtensionCollection`1" /> of type <see cref="T:System.ServiceModel.ServiceHostBase" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ImplementedContracts">
<MemberSignature Language="C#" Value="protected System.Collections.Generic.IDictionary<string,System.ServiceModel.Description.ContractDescription> ImplementedContracts { get; }" FrameworkAlternate="netframework-3.0;netframework-3.5" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IDictionary`2<string, class System.ServiceModel.Description.ContractDescription> ImplementedContracts" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.ImplementedContracts" />
<MemberSignature Language="VB.NET" Value="Protected ReadOnly Property ImplementedContracts As IDictionary(Of String, ContractDescription)" FrameworkAlternate="netframework-3.0;netframework-3.5" />
<MemberSignature Language="F#" Value="member this.ImplementedContracts : System.Collections.Generic.IDictionary<string, System.ServiceModel.Description.ContractDescription>" Usage="System.ServiceModel.ServiceHostBase.ImplementedContracts" />
<MemberSignature Language="C++ CLI" Value="protected:
 property System::Collections::Generic::IDictionary<System::String ^, System::ServiceModel::Description::ContractDescription ^> ^ ImplementedContracts { System::Collections::Generic::IDictionary<System::String ^, System::ServiceModel::Description::ContractDescription ^> ^ get(); };" FrameworkAlternate="netframework-3.0;netframework-3.5" />
<MemberSignature Language="C#" Value="protected internal System.Collections.Generic.IDictionary<string,System.ServiceModel.Description.ContractDescription> ImplementedContracts { get; }" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberSignature Language="VB.NET" Value="Protected Friend ReadOnly Property ImplementedContracts As IDictionary(Of String, ContractDescription)" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberSignature Language="C++ CLI" Value="protected public:
 property System::Collections::Generic::IDictionary<System::String ^, System::ServiceModel::Description::ContractDescription ^> ^ ImplementedContracts { System::Collections::Generic::IDictionary<System::String ^, System::ServiceModel::Description::ContractDescription ^> ^ get(); };" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.IDictionary<System.String,System.ServiceModel.Description.ContractDescription></ReturnType>
</ReturnValue>
<Docs>
<summary>Retrieves the contracts implemented by the service hosted.</summary>
<value>The <see cref="T:System.Collections.Generic.IDictionary`2" /> that contains the <see cref="T:System.ServiceModel.Description.ContractDescription" /> objects for the service.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IncrementManualFlowControlLimit">
<MemberSignature Language="C#" Value="public int IncrementManualFlowControlLimit (int incrementBy);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance int32 IncrementManualFlowControlLimit(int32 incrementBy) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.IncrementManualFlowControlLimit(System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Function IncrementManualFlowControlLimit (incrementBy As Integer) As Integer" />
<MemberSignature Language="F#" Value="member this.IncrementManualFlowControlLimit : int -> int" Usage="serviceHostBase.IncrementManualFlowControlLimit incrementBy" />
<MemberSignature Language="C++ CLI" Value="public:
 int IncrementManualFlowControlLimit(int incrementBy);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="incrementBy" Type="System.Int32" />
</Parameters>
<Docs>
<param name="incrementBy">The number of messages by which to increase the flow control limit.</param>
<summary>Increases the limit on the flow rate of messages to the hosted service by a specified increment.</summary>
<returns>The new limit after the increment is added.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This limit can be accessed using the <xref:System.ServiceModel.ServiceHostBase.ManualFlowControlLimit%2A> property.
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet42":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">The value is less than zero.</exception>
</Docs>
</Member>
<Member MemberName="InitializeDescription">
<MemberSignature Language="C#" Value="protected void InitializeDescription (System.ServiceModel.UriSchemeKeyedCollection baseAddresses);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void InitializeDescription(class System.ServiceModel.UriSchemeKeyedCollection baseAddresses) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.InitializeDescription(System.ServiceModel.UriSchemeKeyedCollection)" />
<MemberSignature Language="VB.NET" Value="Protected Sub InitializeDescription (baseAddresses As UriSchemeKeyedCollection)" />
<MemberSignature Language="F#" Value="member this.InitializeDescription : System.ServiceModel.UriSchemeKeyedCollection -> unit" Usage="serviceHostBase.InitializeDescription baseAddresses" />
<MemberSignature Language="C++ CLI" Value="protected:
 void InitializeDescription(System::ServiceModel::UriSchemeKeyedCollection ^ baseAddresses);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="baseAddresses" Type="System.ServiceModel.UriSchemeKeyedCollection" />
</Parameters>
<Docs>
<param name="baseAddresses">A <see cref="T:System.ServiceModel.UriSchemeKeyedCollection" /> that contains the base addresses for the service hosted.</param>
<summary>Creates and initializes the service host with the contract and service descriptions.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InitializeRuntime">
<MemberSignature Language="C#" Value="protected virtual void InitializeRuntime ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void InitializeRuntime() cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.InitializeRuntime" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub InitializeRuntime ()" />
<MemberSignature Language="F#" Value="abstract member InitializeRuntime : unit -> unit
override this.InitializeRuntime : unit -> unit" Usage="serviceHostBase.InitializeRuntime " />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual void InitializeRuntime();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Initializes the runtime for the service host.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.InvalidOperationException">The description of the service hosted is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="LoadConfigurationSection">
<MemberSignature Language="C#" Value="protected void LoadConfigurationSection (System.ServiceModel.Configuration.ServiceElement serviceSection);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void LoadConfigurationSection(class System.ServiceModel.Configuration.ServiceElement serviceSection) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.LoadConfigurationSection(System.ServiceModel.Configuration.ServiceElement)" />
<MemberSignature Language="VB.NET" Value="Protected Sub LoadConfigurationSection (serviceSection As ServiceElement)" />
<MemberSignature Language="F#" Value="member this.LoadConfigurationSection : System.ServiceModel.Configuration.ServiceElement -> unit" Usage="serviceHostBase.LoadConfigurationSection serviceSection" />
<MemberSignature Language="C++ CLI" Value="protected:
 void LoadConfigurationSection(System::ServiceModel::Configuration::ServiceElement ^ serviceSection);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="serviceSection" Type="System.ServiceModel.Configuration.ServiceElement" />
</Parameters>
<Docs>
<param name="serviceSection">The <see cref="T:System.ServiceModel.Configuration.ServiceElement" /> to be loaded from configuration.</param>
<summary>Loads the service element from the configuration file of the hosted service.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="serviceSection" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The description of the service hosted is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="ManualFlowControlLimit">
<MemberSignature Language="C#" Value="public int ManualFlowControlLimit { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 ManualFlowControlLimit" />
<MemberSignature Language="DocId" Value="P:System.ServiceModel.ServiceHostBase.ManualFlowControlLimit" />
<MemberSignature Language="VB.NET" Value="Public Property ManualFlowControlLimit As Integer" />
<MemberSignature Language="F#" Value="member this.ManualFlowControlLimit : int with get, set" Usage="System.ServiceModel.ServiceHostBase.ManualFlowControlLimit" />
<MemberSignature Language="C++ CLI" Value="public:
 property int ManualFlowControlLimit { int get(); void set(int value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the flow control limit for messages received by the service hosted.</summary>
<value>The flow control limit for messages received by the service hosted.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This limit can be incremented using the <xref:System.ServiceModel.ServiceHostBase.IncrementManualFlowControlLimit%28System.Int32%29> method.
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/s_selfhost/cs/wholeenchilada.cs" id="Snippet39":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">The value is less than zero.</exception>
</Docs>
</Member>
<Member MemberName="OnAbort">
<MemberSignature Language="C#" Value="protected override sealed void OnAbort ();" FrameworkAlternate="netframework-3.0;netframework-3.5" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnAbort() cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.OnAbort" />
<MemberSignature Language="VB.NET" Value="Protected Overrides NotOverridable Sub OnAbort ()" FrameworkAlternate="netframework-3.0;netframework-3.5" />
<MemberSignature Language="F#" Value="override this.OnAbort : unit -> unit" Usage="serviceHostBase.OnAbort " />
<MemberSignature Language="C++ CLI" Value="protected:
 override void OnAbort();" />
<MemberSignature Language="C#" Value="protected override void OnAbort ();" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub OnAbort ()" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Aborts the service.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnBeginClose">
<MemberSignature Language="C#" Value="protected override sealed IAsyncResult OnBeginClose (TimeSpan timeout, AsyncCallback callback, object state);" FrameworkAlternate="netframework-3.0;netframework-3.5" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.IAsyncResult OnBeginClose(valuetype System.TimeSpan timeout, class System.AsyncCallback callback, object state) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.OnBeginClose(System.TimeSpan,System.AsyncCallback,System.Object)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides NotOverridable Function OnBeginClose (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult" FrameworkAlternate="netframework-3.0;netframework-3.5" />
<MemberSignature Language="F#" Value="override this.OnBeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult" Usage="serviceHostBase.OnBeginClose (timeout, callback, state)" />
<MemberSignature Language="C++ CLI" Value="protected:
 override IAsyncResult ^ OnBeginClose(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);" />
<MemberSignature Language="C#" Value="protected override IAsyncResult OnBeginClose (TimeSpan timeout, AsyncCallback callback, object state);" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function OnBeginClose (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IAsyncResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="timeout" Type="System.TimeSpan" />
<Parameter Name="callback" Type="System.AsyncCallback" />
<Parameter Name="state" Type="System.Object" />
</Parameters>
<Docs>
<param name="timeout">The <see cref="T:System.TimeSpan" /> that specifies how long the on-close operation has to complete before timing out.</param>
<param name="callback">The <see cref="T:System.AsyncCallback" /> delegate that receives the notification of the asynchronous operation on-close completion.</param>
<param name="state">An object, specified by the application, that contains state information associated with the asynchronous on-close operation.</param>
<summary>Begins an asynchronous operation invoked on the close of the service host.</summary>
<returns>The <see cref="T:System.IAsyncResult" /> that references the asynchronous on-close operation.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnBeginOpen">
<MemberSignature Language="C#" Value="protected override sealed IAsyncResult OnBeginOpen (TimeSpan timeout, AsyncCallback callback, object state);" FrameworkAlternate="netframework-3.0;netframework-3.5" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.IAsyncResult OnBeginOpen(valuetype System.TimeSpan timeout, class System.AsyncCallback callback, object state) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.OnBeginOpen(System.TimeSpan,System.AsyncCallback,System.Object)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides NotOverridable Function OnBeginOpen (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult" FrameworkAlternate="netframework-3.0;netframework-3.5" />
<MemberSignature Language="F#" Value="override this.OnBeginOpen : TimeSpan * AsyncCallback * obj -> IAsyncResult" Usage="serviceHostBase.OnBeginOpen (timeout, callback, state)" />
<MemberSignature Language="C++ CLI" Value="protected:
 override IAsyncResult ^ OnBeginOpen(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);" />
<MemberSignature Language="C#" Value="protected override IAsyncResult OnBeginOpen (TimeSpan timeout, AsyncCallback callback, object state);" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function OnBeginOpen (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IAsyncResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="timeout" Type="System.TimeSpan" />
<Parameter Name="callback" Type="System.AsyncCallback" />
<Parameter Name="state" Type="System.Object" />
</Parameters>
<Docs>
<param name="timeout">The <see cref="T:System.TimeSpan" /> that specifies how long the on-open operation has to complete before timing out.</param>
<param name="callback">The <see cref="T:System.AsyncCallback" /> delegate that receives the notification of the asynchronous operation on-open completion.</param>
<param name="state">An object, specified by the application, that contains state information associated with the asynchronous on-open operation.</param>
<summary>Begins an asynchronous operation invoked on the opening of the service host.</summary>
<returns>The <see cref="T:System.IAsyncResult" /> that references the asynchronous on-open operation.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnClose">
<MemberSignature Language="C#" Value="protected override void OnClose (TimeSpan timeout);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnClose(valuetype System.TimeSpan timeout) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ServiceModel.ServiceHostBase.OnClose(System.TimeSpan)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub OnClose (timeout As TimeSpan)" />
<MemberSignature Language="F#" Value="override this.OnClose : TimeSpan -> unit" Usage="serviceHostBase.OnClose timeout" />
<MemberSignature Language="C++ CLI" Value="protected:
 override void OnClose(TimeSpan timeout);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.ServiceModel</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="timeout" Type="System.TimeSpan" />
</Parameters>
<Docs>
<param name="timeout">The <see cref="T:System.TimeSpan" /> that specifies how long the on-close operation has to complete before timing out.</param>
<summary>Closes down the hosted service, including their channel dispatchers and associated instance contexts and listeners.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Calling <xref:System.ServiceModel.ServiceHostBase.OnClose%28System.TimeSpan%29> does the following:
- Closes all input to <xref:System.ServiceModel.Dispatcher.ChannelDispatcher>, which also closes their associated <xref:System.ServiceModel.Channels.IChannelListener> instances. This stops any new channels from being accepting.
- Calls <xref:System.ServiceModel.Dispatcher.ChannelDispatcher.CloseInput%2A> on all <xref:System.ServiceModel.InstanceContext> objects, which mean they stop accepting new messages.
- Waits for all <xref:System.ServiceModel.InstanceContext> objects to close down, which happens when their associated channels finish sending all pending messages.
- Closes the <xref:System.ServiceModel.Dispatcher.ChannelDispatcher> objects associated with the host.