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


C# BSyncResult类代码示例

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


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

示例1: createClient

        public static BClient_Testser createClient(BWireFlags flags) 
        {
            BClient_Testser client = null;
            try
            {
                ServicePointManager.DefaultConnectionLimit = 1000;


                BWire wire = new HWireClient(url, flags, 120);
                BTransportFactory transportFactory = new HTransportFactoryClient(BApiDescriptor_Testser.instance, wire, 1);

                client = BClient_Testser.createClient(transportFactory);

                BSyncResult<bool> syncResult = new BSyncResult<bool>();
                client.start(BAsyncResultHelper.ToDelegate(syncResult));

                syncResult.GetResult();
            }
            catch (Exception e)
            {
                Assert.Fail(e.ToString());
            }

		    return client;
	    }
开发者ID:marcarvalho,项目名称:byps,代码行数:25,代码来源:TestUtilsHttp.cs

示例2: GetDate

		public virtual DateTime[,,,] GetDate() {
			BSyncResult<DateTime[,,,]> asyncResult = new BSyncResult<DateTime[,,,]>();			
			GetDate(BAsyncResultHelper.ToDelegate<DateTime[,,,]>(asyncResult));
			return asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteArrayTypes4dim.cs

示例3: RegisterNotifyService

		public virtual void RegisterNotifyService(String token, FileSystemNotify service) {
			BSyncResult<Object> asyncResult = new BSyncResult<Object>();			
			RegisterNotifyService(token, service, BAsyncResultHelper.ToDelegate<Object>(asyncResult));
			asyncResult.GetResult();			
		}
开发者ID:onlyfly34,项目名称:jsfs,代码行数:5,代码来源:BStub_DispatcherService.cs

示例4: KeepAlive

		public virtual void KeepAlive(String token) {
			BSyncResult<Object> asyncResult = new BSyncResult<Object>();			
			KeepAlive(token, BAsyncResultHelper.ToDelegate<Object>(asyncResult));
			asyncResult.GetResult();			
		}
开发者ID:onlyfly34,项目名称:jsfs,代码行数:5,代码来源:BStub_DispatcherService.cs

示例5: GetChar1

		public virtual HashSet<char> GetChar1() {
			BSyncResult<HashSet<char>> asyncResult = new BSyncResult<HashSet<char>>();			
			GetChar1(BAsyncResultHelper.ToDelegate<HashSet<char>>(asyncResult));
			return asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteSetTypes.cs

示例6: GetDate1

		public virtual ISet<DateTime> GetDate1() {
			BSyncResult<ISet<DateTime>> asyncResult = new BSyncResult<ISet<DateTime>>();			
			GetDate1(BAsyncResultHelper.ToDelegate<ISet<DateTime>>(asyncResult));
			return asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteSetTypes.cs

示例7: GetObj1

		public virtual ISet<Object> GetObj1() {
			BSyncResult<ISet<Object>> asyncResult = new BSyncResult<ISet<Object>>();			
			GetObj1(BAsyncResultHelper.ToDelegate<ISet<Object>>(asyncResult));
			return asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteSetTypes.cs

示例8: GetInt2

		public virtual ISet<int[]> GetInt2() {
			BSyncResult<ISet<int[]>> asyncResult = new BSyncResult<ISet<int[]>>();			
			GetInt2(BAsyncResultHelper.ToDelegate<ISet<int[]>>(asyncResult));
			return asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteSetTypes.cs

示例9: SetShort1

		public virtual void SetShort1(ISet<short> short1) {
			BSyncResult<Object> asyncResult = new BSyncResult<Object>();			
			SetShort1(short1, BAsyncResultHelper.ToDelegate<Object>(asyncResult));
			asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteSetTypes.cs

示例10: SetReloginCount

		public virtual void SetReloginCount(int count) {
			BSyncResult<Object> asyncResult = new BSyncResult<Object>();			
			SetReloginCount(count, BAsyncResultHelper.ToDelegate<Object>(asyncResult));
			asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteWithAuthentication.cs

示例11: Expire

		public virtual void Expire() {
			BSyncResult<Object> asyncResult = new BSyncResult<Object>();			
			Expire(BAsyncResultHelper.ToDelegate<Object>(asyncResult));
			asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteWithAuthentication.cs

示例12: Doit

		public virtual int Doit(int value) {
			BSyncResult<int> asyncResult = new BSyncResult<int>();			
			Doit(value, BAsyncResultHelper.ToDelegate<int>(asyncResult));
			return asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteWithAuthentication.cs

示例13: Login

		public virtual byps.test.api.auth.SessionInfo Login(String userName, String userPwd) {
			BSyncResult<byps.test.api.auth.SessionInfo> asyncResult = new BSyncResult<byps.test.api.auth.SessionInfo>();			
			Login(userName, userPwd, BAsyncResultHelper.ToDelegate<byps.test.api.auth.SessionInfo>(asyncResult));
			return asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteWithAuthentication.cs

示例14: SetUseAuthentication

		public virtual void SetUseAuthentication(bool useAuth) {
			BSyncResult<Object> asyncResult = new BSyncResult<Object>();			
			SetUseAuthentication(useAuth, BAsyncResultHelper.ToDelegate<Object>(asyncResult));
			asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteWithAuthentication.cs

示例15: SetInt

		public virtual void SetInt(int[,,,] v) {
			BSyncResult<Object> asyncResult = new BSyncResult<Object>();			
			SetInt(v, BAsyncResultHelper.ToDelegate<Object>(asyncResult));
			asyncResult.GetResult();			
		}
开发者ID:marcarvalho,项目名称:byps,代码行数:5,代码来源:BStub_RemoteArrayTypes4dim.cs


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