• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# BAsyncResult类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中BAsyncResult的典型用法代码示例。如果您正苦于以下问题:C# BAsyncResult类的具体用法?C# BAsyncResult怎么用?C# BAsyncResult使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



BAsyncResult类属于命名空间,在下文中一共展示了BAsyncResult类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: SendArraysString

		public virtual void SendArraysString(String[,] arr2, String[,,] arr3, String[,,,] arr4, BAsyncResult<String[]> asyncResult) {
			BRequest_RemoteArrayTypes23_sendArraysString req = new BRequest_RemoteArrayTypes23_sendArraysString();			
			req.arr2Value = arr2;
			req.arr3Value = arr3;
			req.arr4Value = arr4;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:7,代码来源:BStub_RemoteArrayTypes23.cs


示例2: SendArraysClass

		public virtual void SendArraysClass(byps.test.api.prim.PrimitiveTypes[,] arr2, byps.test.api.prim.PrimitiveTypes[,,] arr3, byps.test.api.prim.PrimitiveTypes[,,,] arr4, BAsyncResult<byps.test.api.prim.PrimitiveTypes[]> asyncResult) {
			BRequest_RemoteArrayTypes23_sendArraysClass req = new BRequest_RemoteArrayTypes23_sendArraysClass();			
			req.arr2Value = arr2;
			req.arr3Value = arr3;
			req.arr4Value = arr4;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:7,代码来源:BStub_RemoteArrayTypes23.cs


示例3: PublishRemote

		public virtual void PublishRemote(String name, BRemote remote, bool fowardToOtherServers, BAsyncResult<Object> asyncResult) {
			BRequest_RemoteServerCtrl_publishRemote req = new BRequest_RemoteServerCtrl_publishRemote();			
			req.nameValue = name;
			req.remoteValue = remote;
			req.fowardToOtherServersValue = fowardToOtherServers;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:7,代码来源:BStub_RemoteServerCtrl.cs


示例4: SendArraysInt

		public virtual void SendArraysInt(int[,] arr2, int[,,] arr3, int[,,,] arr4, BAsyncResult<int[]> asyncResult) {
			BRequest_RemoteArrayTypes23_sendArraysInt req = new BRequest_RemoteArrayTypes23_sendArraysInt();			
			req.arr2Value = arr2;
			req.arr3Value = arr3;
			req.arr4Value = arr4;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:7,代码来源:BStub_RemoteArrayTypes23.cs


示例5: GetStreams

		public virtual async void GetStreams(int ctrl, BAsyncResult<IList<System.IO.Stream>> asyncResult) {
			IList<System.IO.Stream> __byps__ret = default(IList<System.IO.Stream>);
			Exception __byps__ex = null;
			bool __byps__callAsync = false;
			try {
				__byps__ret = GetStreams(ctrl);
			}
			catch (NotImplementedException) { __byps__callAsync = true; }
			catch (Exception e) { __byps__ex = e; }
			if (__byps__callAsync) try {
				__byps__ret = await GetStreamsAsync(ctrl);
			}
			catch (NotImplementedException) { __byps__ex = new BException(BExceptionC.UNSUPPORTED_METHOD, ""); }
			catch (Exception e) { __byps__ex = e; }
			asyncResult(__byps__ret, __byps__ex);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:16,代码来源:BSkeleton_ClientIF.cs


示例6: IncrementInt

		public virtual async void IncrementInt(int a, BAsyncResult<int> asyncResult) {
			int __byps__ret = default(int);
			Exception __byps__ex = null;
			bool __byps__callAsync = false;
			try {
				__byps__ret = IncrementInt(a);
			}
			catch (NotImplementedException) { __byps__callAsync = true; }
			catch (Exception e) { __byps__ex = e; }
			if (__byps__callAsync) try {
				__byps__ret = await IncrementIntAsync(a);
			}
			catch (NotImplementedException) { __byps__ex = new BException(BExceptionC.UNSUPPORTED_METHOD, ""); }
			catch (Exception e) { __byps__ex = e; }
			asyncResult(__byps__ret, __byps__ex);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:16,代码来源:BSkeleton_ClientIF.cs


示例7: WriteAllText

		public virtual async void WriteAllText(String path, String text, BAsyncResult<Object> asyncResult) {
			Object __byps__ret = default(Object);
			Exception __byps__ex = null;
			bool __byps__callAsync = false;
			try {
				WriteAllText(path, text);
			}
			catch (NotImplementedException) { __byps__callAsync = true; }
			catch (Exception e) { __byps__ex = e; }
			if (__byps__callAsync) try {
				await WriteAllTextAsync(path, text);
			}
			catch (NotImplementedException) { __byps__ex = new BException(BExceptionC.UNSUPPORTED_METHOD, ""); }
			catch (Exception e) { __byps__ex = e; }
			asyncResult(__byps__ret, __byps__ex);
		}
开发者ID:onlyfly34,项目名称:jsfs,代码行数:16,代码来源:BSkeleton_FileSystemService.cs


示例8: ReadAllText

		public virtual async void ReadAllText(String path, BAsyncResult<String> asyncResult) {
			String __byps__ret = default(String);
			Exception __byps__ex = null;
			bool __byps__callAsync = false;
			try {
				__byps__ret = ReadAllText(path);
			}
			catch (NotImplementedException) { __byps__callAsync = true; }
			catch (Exception e) { __byps__ex = e; }
			if (__byps__callAsync) try {
				__byps__ret = await ReadAllTextAsync(path);
			}
			catch (NotImplementedException) { __byps__ex = new BException(BExceptionC.UNSUPPORTED_METHOD, ""); }
			catch (Exception e) { __byps__ex = e; }
			asyncResult(__byps__ret, __byps__ex);
		}
开发者ID:onlyfly34,项目名称:jsfs,代码行数:16,代码来源:BSkeleton_FileSystemService.cs


示例9: FindFiles

		public virtual async void FindFiles(String path, FindOptions findOptions, BAsyncResult<IList<FileInfo>> asyncResult) {
			IList<FileInfo> __byps__ret = default(IList<FileInfo>);
			Exception __byps__ex = null;
			bool __byps__callAsync = false;
			try {
				__byps__ret = FindFiles(path, findOptions);
			}
			catch (NotImplementedException) { __byps__callAsync = true; }
			catch (Exception e) { __byps__ex = e; }
			if (__byps__callAsync) try {
				__byps__ret = await FindFilesAsync(path, findOptions);
			}
			catch (NotImplementedException) { __byps__ex = new BException(BExceptionC.UNSUPPORTED_METHOD, ""); }
			catch (Exception e) { __byps__ex = e; }
			asyncResult(__byps__ret, __byps__ex);
		}
开发者ID:onlyfly34,项目名称:jsfs,代码行数:16,代码来源:BSkeleton_FileSystemService.cs


示例10: Notify

		public virtual async void Notify(NotifyInfo notifyInfo, BAsyncResult<Object> asyncResult) {
			Object __byps__ret = default(Object);
			Exception __byps__ex = null;
			bool __byps__callAsync = false;
			try {
				Notify(notifyInfo);
			}
			catch (NotImplementedException) { __byps__callAsync = true; }
			catch (Exception e) { __byps__ex = e; }
			if (__byps__callAsync) try {
				await NotifyAsync(notifyInfo);
			}
			catch (NotImplementedException) { __byps__ex = new BException(BExceptionC.UNSUPPORTED_METHOD, ""); }
			catch (Exception e) { __byps__ex = e; }
			asyncResult(__byps__ret, __byps__ex);
		}
开发者ID:onlyfly34,项目名称:jsfs,代码行数:16,代码来源:BSkeleton_FileSystemNotify.cs


示例11: PutStreams

		public virtual async void PutStreams(IList<System.IO.Stream> strm, int ctrl, BAsyncResult<Object> asyncResult) {
			Object __byps__ret = default(Object);
			Exception __byps__ex = null;
			bool __byps__callAsync = false;
			try {
				PutStreams(strm, ctrl);
			}
			catch (NotImplementedException) { __byps__callAsync = true; }
			catch (Exception e) { __byps__ex = e; }
			if (__byps__callAsync) try {
				await PutStreamsAsync(strm, ctrl);
			}
			catch (NotImplementedException) { __byps__ex = new BException(BExceptionC.UNSUPPORTED_METHOD, ""); }
			catch (Exception e) { __byps__ex = e; }
			asyncResult(__byps__ret, __byps__ex);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:16,代码来源:BSkeleton_ClientIF.cs


示例12: Compare_AllTypesC

		public virtual void Compare_AllTypesC(bool bool1s, bool bool2s, char char1s, String stringNull, char char2s, short short1s, int int1s, long long1s, float float1s, double double1s, String string1s, byps.test.api.cons.AllTypesZ ALL, int[] arrInt, int[,,,] arrInt4, String[] arrStrings, String[,,,] arrStrings4, byps.test.api.cons.AllTypesZ[,] arrAll, BAsyncResult<bool> asyncResult) {
			BRequest_RemoteConstants_compare_AllTypesC req = new BRequest_RemoteConstants_compare_AllTypesC();			
			req.bool1sValue = bool1s;
			req.bool2sValue = bool2s;
			req.char1sValue = char1s;
			req.stringNullValue = stringNull;
			req.char2sValue = char2s;
			req.short1sValue = short1s;
			req.int1sValue = int1s;
			req.long1sValue = long1s;
			req.float1sValue = float1s;
			req.double1sValue = double1s;
			req.string1sValue = string1s;
			req.ALLValue = ALL;
			req.arrIntValue = arrInt;
			req.arrInt4Value = arrInt4;
			req.arrStringsValue = arrStrings;
			req.arrStrings4Value = arrStrings4;
			req.arrAllValue = arrAll;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:21,代码来源:BStub_RemoteConstants.cs


示例13: GetObj1

		public virtual void GetObj1(BAsyncResult<ISet<Object>> asyncResult) {
			BRequest_RemoteSetTypes_getObj1 req = new BRequest_RemoteSetTypes_getObj1();			
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:4,代码来源:BStub_RemoteSetTypes.cs


示例14: GetInt2

		public virtual void GetInt2(BAsyncResult<ISet<int[]>> asyncResult) {
			BRequest_RemoteSetTypes_getInt2 req = new BRequest_RemoteSetTypes_getInt2();			
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:4,代码来源:BStub_RemoteSetTypes.cs


示例15: SetInt2

		public virtual void SetInt2(ISet<int[]> int2, BAsyncResult<Object> asyncResult) {
			BRequest_RemoteSetTypes_setInt2 req = new BRequest_RemoteSetTypes_setInt2();			
			req.int2Value = int2;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteSetTypes.cs


示例16: SetBoolean1

		public virtual void SetBoolean1(ISet<bool> boolean1, BAsyncResult<Object> asyncResult) {
			BRequest_RemoteSetTypes_setBoolean1 req = new BRequest_RemoteSetTypes_setBoolean1();			
			req.boolean1Value = boolean1;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteSetTypes.cs


示例17: SetByte2

		public virtual void SetByte2(ISet<byte[]> byte2, BAsyncResult<Object> asyncResult) {
			BRequest_RemoteSetTypes_setByte2 req = new BRequest_RemoteSetTypes_setByte2();			
			req.byte2Value = byte2;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteSetTypes.cs


示例18: SetPrimitiveTypes1

		public virtual void SetPrimitiveTypes1(ISet<byps.test.api.prim.PrimitiveTypes> primitiveTypes1, BAsyncResult<Object> asyncResult) {
			BRequest_RemoteSetTypes_setPrimitiveTypes1 req = new BRequest_RemoteSetTypes_setPrimitiveTypes1();			
			req.primitiveTypes1Value = primitiveTypes1;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteSetTypes.cs


示例19: SetDate1

		public virtual void SetDate1(ISet<DateTime> obj1, BAsyncResult<Object> asyncResult) {
			BRequest_RemoteSetTypes_setDate1 req = new BRequest_RemoteSetTypes_setDate1();			
			req.obj1Value = obj1;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteSetTypes.cs


示例20: RegisterNotifyService

		public virtual void RegisterNotifyService(String token, FileSystemNotify service, BAsyncResult<Object> asyncResult) {
			BRequest_DispatcherService_registerNotifyService req = new BRequest_DispatcherService_registerNotifyService();			
			req.tokenValue = token;
			req.serviceValue = service;
			transport.sendMethod(req, asyncResult);
		}
开发者ID:onlyfly34,项目名称:jsfs,代码行数:6,代码来源:BStub_DispatcherService.cs



注:本文中的BAsyncResult类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# BAsyncResultIF类代码示例发布时间:2022-05-24
下一篇:
C# AzureService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap