當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。