-
Notifications
You must be signed in to change notification settings - Fork 86
/
Reference.cs
1026 lines (861 loc) · 47.4 KB
/
Reference.cs
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
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
//
// This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.42000.
//
#pragma warning disable 1591
namespace XiboClient.xmds {
using System.Diagnostics;
using System;
using System.Xml.Serialization;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System.Web.Services;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="xmdsBinding", Namespace="urn:xmds")]
public partial class xmds : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback RegisterDisplayOperationCompleted;
private System.Threading.SendOrPostCallback RequiredFilesOperationCompleted;
private System.Threading.SendOrPostCallback GetFileOperationCompleted;
private System.Threading.SendOrPostCallback ScheduleOperationCompleted;
private System.Threading.SendOrPostCallback ReportFaultsOperationCompleted;
private System.Threading.SendOrPostCallback SubmitLogOperationCompleted;
private System.Threading.SendOrPostCallback SubmitStatsOperationCompleted;
private System.Threading.SendOrPostCallback MediaInventoryOperationCompleted;
private System.Threading.SendOrPostCallback GetResourceOperationCompleted;
private System.Threading.SendOrPostCallback NotifyStatusOperationCompleted;
private System.Threading.SendOrPostCallback SubmitScreenShotOperationCompleted;
private System.Threading.SendOrPostCallback GetDataOperationCompleted;
private System.Threading.SendOrPostCallback GetDependencyOperationCompleted;
private System.Threading.SendOrPostCallback GetWeatherOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public xmds() {
this.Url = global::XiboClient.Properties.Settings.Default.XiboClient_xmds_xmds;
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
this.UseDefaultCredentials = true;
this.useDefaultCredentialsSetExplicitly = false;
}
else {
this.useDefaultCredentialsSetExplicitly = true;
}
}
public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
&& (this.useDefaultCredentialsSetExplicitly == false))
&& (this.IsLocalFileSystemWebService(value) == false))) {
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials {
get {
return base.UseDefaultCredentials;
}
set {
base.UseDefaultCredentials = value;
this.useDefaultCredentialsSetExplicitly = true;
}
}
/// <remarks/>
public event RegisterDisplayCompletedEventHandler RegisterDisplayCompleted;
/// <remarks/>
public event RequiredFilesCompletedEventHandler RequiredFilesCompleted;
/// <remarks/>
public event GetFileCompletedEventHandler GetFileCompleted;
/// <remarks/>
public event ScheduleCompletedEventHandler ScheduleCompleted;
/// <remarks/>
public event ReportFaultsCompletedEventHandler ReportFaultsCompleted;
/// <remarks/>
public event SubmitLogCompletedEventHandler SubmitLogCompleted;
/// <remarks/>
public event SubmitStatsCompletedEventHandler SubmitStatsCompleted;
/// <remarks/>
public event MediaInventoryCompletedEventHandler MediaInventoryCompleted;
/// <remarks/>
public event GetResourceCompletedEventHandler GetResourceCompleted;
/// <remarks/>
public event NotifyStatusCompletedEventHandler NotifyStatusCompleted;
/// <remarks/>
public event SubmitScreenShotCompletedEventHandler SubmitScreenShotCompleted;
/// <remarks/>
public event GetDataCompletedEventHandler GetDataCompleted;
/// <remarks/>
public event GetDependencyCompletedEventHandler GetDependencyCompleted;
/// <remarks/>
public event GetWeatherCompletedEventHandler GetWeatherCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#RegisterDisplay", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("ActivationMessage")]
public string RegisterDisplay(string serverKey, string hardwareKey, string displayName, string clientType, string clientVersion, int clientCode, string operatingSystem, string macAddress, string xmrChannel, string xmrPubKey, string licenceResult) {
object[] results = this.Invoke("RegisterDisplay", new object[] {
serverKey,
hardwareKey,
displayName,
clientType,
clientVersion,
clientCode,
operatingSystem,
macAddress,
xmrChannel,
xmrPubKey,
licenceResult});
return ((string)(results[0]));
}
/// <remarks/>
public void RegisterDisplayAsync(string serverKey, string hardwareKey, string displayName, string clientType, string clientVersion, int clientCode, string operatingSystem, string macAddress, string xmrChannel, string xmrPubKey, string licenceResult) {
this.RegisterDisplayAsync(serverKey, hardwareKey, displayName, clientType, clientVersion, clientCode, operatingSystem, macAddress, xmrChannel, xmrPubKey, licenceResult, null);
}
/// <remarks/>
public void RegisterDisplayAsync(string serverKey, string hardwareKey, string displayName, string clientType, string clientVersion, int clientCode, string operatingSystem, string macAddress, string xmrChannel, string xmrPubKey, string licenceResult, object userState) {
if ((this.RegisterDisplayOperationCompleted == null)) {
this.RegisterDisplayOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRegisterDisplayOperationCompleted);
}
this.InvokeAsync("RegisterDisplay", new object[] {
serverKey,
hardwareKey,
displayName,
clientType,
clientVersion,
clientCode,
operatingSystem,
macAddress,
xmrChannel,
xmrPubKey,
licenceResult}, this.RegisterDisplayOperationCompleted, userState);
}
private void OnRegisterDisplayOperationCompleted(object arg) {
if ((this.RegisterDisplayCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.RegisterDisplayCompleted(this, new RegisterDisplayCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#RequiredFiles", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("RequiredFilesXml")]
public string RequiredFiles(string serverKey, string hardwareKey) {
object[] results = this.Invoke("RequiredFiles", new object[] {
serverKey,
hardwareKey});
return ((string)(results[0]));
}
/// <remarks/>
public void RequiredFilesAsync(string serverKey, string hardwareKey) {
this.RequiredFilesAsync(serverKey, hardwareKey, null);
}
/// <remarks/>
public void RequiredFilesAsync(string serverKey, string hardwareKey, object userState) {
if ((this.RequiredFilesOperationCompleted == null)) {
this.RequiredFilesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRequiredFilesOperationCompleted);
}
this.InvokeAsync("RequiredFiles", new object[] {
serverKey,
hardwareKey}, this.RequiredFilesOperationCompleted, userState);
}
private void OnRequiredFilesOperationCompleted(object arg) {
if ((this.RequiredFilesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.RequiredFilesCompleted(this, new RequiredFilesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#GetFile", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("file", DataType="base64Binary")]
public byte[] GetFile(string serverKey, string hardwareKey, int fileId, string fileType, double chunkOffset, double chuckSize) {
object[] results = this.Invoke("GetFile", new object[] {
serverKey,
hardwareKey,
fileId,
fileType,
chunkOffset,
chuckSize});
return ((byte[])(results[0]));
}
/// <remarks/>
public void GetFileAsync(string serverKey, string hardwareKey, int fileId, string fileType, double chunkOffset, double chuckSize) {
this.GetFileAsync(serverKey, hardwareKey, fileId, fileType, chunkOffset, chuckSize, null);
}
/// <remarks/>
public void GetFileAsync(string serverKey, string hardwareKey, int fileId, string fileType, double chunkOffset, double chuckSize, object userState) {
if ((this.GetFileOperationCompleted == null)) {
this.GetFileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFileOperationCompleted);
}
this.InvokeAsync("GetFile", new object[] {
serverKey,
hardwareKey,
fileId,
fileType,
chunkOffset,
chuckSize}, this.GetFileOperationCompleted, userState);
}
private void OnGetFileOperationCompleted(object arg) {
if ((this.GetFileCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetFileCompleted(this, new GetFileCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#Schedule", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("ScheduleXml")]
public string Schedule(string serverKey, string hardwareKey) {
object[] results = this.Invoke("Schedule", new object[] {
serverKey,
hardwareKey});
return ((string)(results[0]));
}
/// <remarks/>
public void ScheduleAsync(string serverKey, string hardwareKey) {
this.ScheduleAsync(serverKey, hardwareKey, null);
}
/// <remarks/>
public void ScheduleAsync(string serverKey, string hardwareKey, object userState) {
if ((this.ScheduleOperationCompleted == null)) {
this.ScheduleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnScheduleOperationCompleted);
}
this.InvokeAsync("Schedule", new object[] {
serverKey,
hardwareKey}, this.ScheduleOperationCompleted, userState);
}
private void OnScheduleOperationCompleted(object arg) {
if ((this.ScheduleCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ScheduleCompleted(this, new ScheduleCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#ReportFaults", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("success")]
public bool ReportFaults(string serverKey, string hardwareKey, string fault) {
object[] results = this.Invoke("ReportFaults", new object[] {
serverKey,
hardwareKey,
fault});
return ((bool)(results[0]));
}
/// <remarks/>
public void ReportFaultsAsync(string serverKey, string hardwareKey, string fault) {
this.ReportFaultsAsync(serverKey, hardwareKey, fault, null);
}
/// <remarks/>
public void ReportFaultsAsync(string serverKey, string hardwareKey, string fault, object userState) {
if ((this.ReportFaultsOperationCompleted == null)) {
this.ReportFaultsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnReportFaultsOperationCompleted);
}
this.InvokeAsync("ReportFaults", new object[] {
serverKey,
hardwareKey,
fault}, this.ReportFaultsOperationCompleted, userState);
}
private void OnReportFaultsOperationCompleted(object arg) {
if ((this.ReportFaultsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ReportFaultsCompleted(this, new ReportFaultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#SubmitLog", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("success")]
public bool SubmitLog(string serverKey, string hardwareKey, string logXml) {
object[] results = this.Invoke("SubmitLog", new object[] {
serverKey,
hardwareKey,
logXml});
return ((bool)(results[0]));
}
/// <remarks/>
public void SubmitLogAsync(string serverKey, string hardwareKey, string logXml) {
this.SubmitLogAsync(serverKey, hardwareKey, logXml, null);
}
/// <remarks/>
public void SubmitLogAsync(string serverKey, string hardwareKey, string logXml, object userState) {
if ((this.SubmitLogOperationCompleted == null)) {
this.SubmitLogOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSubmitLogOperationCompleted);
}
this.InvokeAsync("SubmitLog", new object[] {
serverKey,
hardwareKey,
logXml}, this.SubmitLogOperationCompleted, userState);
}
private void OnSubmitLogOperationCompleted(object arg) {
if ((this.SubmitLogCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SubmitLogCompleted(this, new SubmitLogCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#SubmitLog", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("success")]
public bool SubmitStats(string serverKey, string hardwareKey, string statXml) {
object[] results = this.Invoke("SubmitStats", new object[] {
serverKey,
hardwareKey,
statXml});
return ((bool)(results[0]));
}
/// <remarks/>
public void SubmitStatsAsync(string serverKey, string hardwareKey, string statXml) {
this.SubmitStatsAsync(serverKey, hardwareKey, statXml, null);
}
/// <remarks/>
public void SubmitStatsAsync(string serverKey, string hardwareKey, string statXml, object userState) {
if ((this.SubmitStatsOperationCompleted == null)) {
this.SubmitStatsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSubmitStatsOperationCompleted);
}
this.InvokeAsync("SubmitStats", new object[] {
serverKey,
hardwareKey,
statXml}, this.SubmitStatsOperationCompleted, userState);
}
private void OnSubmitStatsOperationCompleted(object arg) {
if ((this.SubmitStatsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SubmitStatsCompleted(this, new SubmitStatsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#MediaInventory", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("success")]
public bool MediaInventory(string serverKey, string hardwareKey, [System.Xml.Serialization.SoapElementAttribute("mediaInventory")] string mediaInventory1) {
object[] results = this.Invoke("MediaInventory", new object[] {
serverKey,
hardwareKey,
mediaInventory1});
return ((bool)(results[0]));
}
/// <remarks/>
public void MediaInventoryAsync(string serverKey, string hardwareKey, string mediaInventory1) {
this.MediaInventoryAsync(serverKey, hardwareKey, mediaInventory1, null);
}
/// <remarks/>
public void MediaInventoryAsync(string serverKey, string hardwareKey, string mediaInventory1, object userState) {
if ((this.MediaInventoryOperationCompleted == null)) {
this.MediaInventoryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnMediaInventoryOperationCompleted);
}
this.InvokeAsync("MediaInventory", new object[] {
serverKey,
hardwareKey,
mediaInventory1}, this.MediaInventoryOperationCompleted, userState);
}
private void OnMediaInventoryOperationCompleted(object arg) {
if ((this.MediaInventoryCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.MediaInventoryCompleted(this, new MediaInventoryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#GetResource", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("resource")]
public string GetResource(string serverKey, string hardwareKey, int layoutId, string regionId, string mediaId) {
object[] results = this.Invoke("GetResource", new object[] {
serverKey,
hardwareKey,
layoutId,
regionId,
mediaId});
return ((string)(results[0]));
}
/// <remarks/>
public void GetResourceAsync(string serverKey, string hardwareKey, int layoutId, string regionId, string mediaId) {
this.GetResourceAsync(serverKey, hardwareKey, layoutId, regionId, mediaId, null);
}
/// <remarks/>
public void GetResourceAsync(string serverKey, string hardwareKey, int layoutId, string regionId, string mediaId, object userState) {
if ((this.GetResourceOperationCompleted == null)) {
this.GetResourceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetResourceOperationCompleted);
}
this.InvokeAsync("GetResource", new object[] {
serverKey,
hardwareKey,
layoutId,
regionId,
mediaId}, this.GetResourceOperationCompleted, userState);
}
private void OnGetResourceOperationCompleted(object arg) {
if ((this.GetResourceCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetResourceCompleted(this, new GetResourceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#NotifyStatus", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("success")]
public bool NotifyStatus(string serverKey, string hardwareKey, string status) {
object[] results = this.Invoke("NotifyStatus", new object[] {
serverKey,
hardwareKey,
status});
return ((bool)(results[0]));
}
/// <remarks/>
public void NotifyStatusAsync(string serverKey, string hardwareKey, string status) {
this.NotifyStatusAsync(serverKey, hardwareKey, status, null);
}
/// <remarks/>
public void NotifyStatusAsync(string serverKey, string hardwareKey, string status, object userState) {
if ((this.NotifyStatusOperationCompleted == null)) {
this.NotifyStatusOperationCompleted = new System.Threading.SendOrPostCallback(this.OnNotifyStatusOperationCompleted);
}
this.InvokeAsync("NotifyStatus", new object[] {
serverKey,
hardwareKey,
status}, this.NotifyStatusOperationCompleted, userState);
}
private void OnNotifyStatusOperationCompleted(object arg) {
if ((this.NotifyStatusCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.NotifyStatusCompleted(this, new NotifyStatusCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#SubmitScreenShot", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("success")]
public bool SubmitScreenShot(string serverKey, string hardwareKey, [System.Xml.Serialization.SoapElementAttribute(DataType="base64Binary")] byte[] screenShot) {
object[] results = this.Invoke("SubmitScreenShot", new object[] {
serverKey,
hardwareKey,
screenShot});
return ((bool)(results[0]));
}
/// <remarks/>
public void SubmitScreenShotAsync(string serverKey, string hardwareKey, byte[] screenShot) {
this.SubmitScreenShotAsync(serverKey, hardwareKey, screenShot, null);
}
/// <remarks/>
public void SubmitScreenShotAsync(string serverKey, string hardwareKey, byte[] screenShot, object userState) {
if ((this.SubmitScreenShotOperationCompleted == null)) {
this.SubmitScreenShotOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSubmitScreenShotOperationCompleted);
}
this.InvokeAsync("SubmitScreenShot", new object[] {
serverKey,
hardwareKey,
screenShot}, this.SubmitScreenShotOperationCompleted, userState);
}
private void OnSubmitScreenShotOperationCompleted(object arg) {
if ((this.SubmitScreenShotCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SubmitScreenShotCompleted(this, new SubmitScreenShotCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#GetData", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("data")]
public string GetData(string serverKey, string hardwareKey, int widgetId) {
object[] results = this.Invoke("GetData", new object[] {
serverKey,
hardwareKey,
widgetId});
return ((string)(results[0]));
}
/// <remarks/>
public void GetDataAsync(string serverKey, string hardwareKey, int widgetId) {
this.GetDataAsync(serverKey, hardwareKey, widgetId, null);
}
/// <remarks/>
public void GetDataAsync(string serverKey, string hardwareKey, int widgetId, object userState) {
if ((this.GetDataOperationCompleted == null)) {
this.GetDataOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDataOperationCompleted);
}
this.InvokeAsync("GetData", new object[] {
serverKey,
hardwareKey,
widgetId}, this.GetDataOperationCompleted, userState);
}
private void OnGetDataOperationCompleted(object arg) {
if ((this.GetDataCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetDataCompleted(this, new GetDataCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#GetDependency", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("file", DataType="base64Binary")]
public byte[] GetDependency(string serverKey, string hardwareKey, string fileType, string id, double chunkOffset, double chunkSize) {
object[] results = this.Invoke("GetDependency", new object[] {
serverKey,
hardwareKey,
fileType,
id,
chunkOffset,
chunkSize});
return ((byte[])(results[0]));
}
/// <remarks/>
public void GetDependencyAsync(string serverKey, string hardwareKey, string fileType, string id, double chunkOffset, double chunkSize) {
this.GetDependencyAsync(serverKey, hardwareKey, fileType, id, chunkOffset, chunkSize, null);
}
/// <remarks/>
public void GetDependencyAsync(string serverKey, string hardwareKey, string fileType, string id, double chunkOffset, double chunkSize, object userState) {
if ((this.GetDependencyOperationCompleted == null)) {
this.GetDependencyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDependencyOperationCompleted);
}
this.InvokeAsync("GetDependency", new object[] {
serverKey,
hardwareKey,
fileType,
id,
chunkOffset,
chunkSize}, this.GetDependencyOperationCompleted, userState);
}
private void OnGetDependencyOperationCompleted(object arg) {
if ((this.GetDependencyCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetDependencyCompleted(this, new GetDependencyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:xmds#GetWeather", RequestNamespace="urn:xmds", ResponseNamespace="urn:xmds")]
[return: System.Xml.Serialization.SoapElementAttribute("data")]
public string GetWeather(string serverKey, string hardwareKey) {
object[] results = this.Invoke("GetWeather", new object[] {
serverKey,
hardwareKey});
return ((string)(results[0]));
}
/// <remarks/>
public void GetWeatherAsync(string serverKey, string hardwareKey) {
this.GetWeatherAsync(serverKey, hardwareKey, null);
}
/// <remarks/>
public void GetWeatherAsync(string serverKey, string hardwareKey, object userState) {
if ((this.GetWeatherOperationCompleted == null)) {
this.GetWeatherOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetWeatherOperationCompleted);
}
this.InvokeAsync("GetWeather", new object[] {
serverKey,
hardwareKey}, this.GetWeatherOperationCompleted, userState);
}
private void OnGetWeatherOperationCompleted(object arg) {
if ((this.GetWeatherCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetWeatherCompleted(this, new GetWeatherCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
private bool IsLocalFileSystemWebService(string url) {
if (((url == null)
|| (url == string.Empty))) {
return false;
}
System.Uri wsUri = new System.Uri(url);
if (((wsUri.Port >= 1024)
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
return true;
}
return false;
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void RegisterDisplayCompletedEventHandler(object sender, RegisterDisplayCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class RegisterDisplayCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal RegisterDisplayCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void RequiredFilesCompletedEventHandler(object sender, RequiredFilesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class RequiredFilesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal RequiredFilesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void GetFileCompletedEventHandler(object sender, GetFileCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetFileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public byte[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((byte[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void ScheduleCompletedEventHandler(object sender, ScheduleCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ScheduleCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ScheduleCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void ReportFaultsCompletedEventHandler(object sender, ReportFaultsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ReportFaultsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ReportFaultsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void SubmitLogCompletedEventHandler(object sender, SubmitLogCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SubmitLogCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SubmitLogCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void SubmitStatsCompletedEventHandler(object sender, SubmitStatsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SubmitStatsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SubmitStatsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void MediaInventoryCompletedEventHandler(object sender, MediaInventoryCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class MediaInventoryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal MediaInventoryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void GetResourceCompletedEventHandler(object sender, GetResourceCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetResourceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetResourceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void NotifyStatusCompletedEventHandler(object sender, NotifyStatusCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class NotifyStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal NotifyStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void SubmitScreenShotCompletedEventHandler(object sender, SubmitScreenShotCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SubmitScreenShotCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SubmitScreenShotCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void GetDataCompletedEventHandler(object sender, GetDataCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetDataCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetDataCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void GetDependencyCompletedEventHandler(object sender, GetDependencyCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetDependencyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetDependencyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public byte[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((byte[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]