当前位置: 首页>>代码示例>>C#>>正文


C# BAsyncResult类代码示例

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


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


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