예제 #1
0
        public SyncInterface GetService <AsyncInterface, SyncInterface>(params ISecurityScope[] securityScopes)
            where AsyncInterface : class, ICommunicationObject
            where SyncInterface : class
        {
            AsyncInterface service = BeanContext.GetService <IServiceFactory>().GetService <AsyncInterface>(securityScopes);

            SyncCallInterceptor synchronizedInterceptor = BeanContext.RegisterBean <SyncCallInterceptor>().PropertyValue("AsyncService", service).PropertyValue("AsyncServiceInterface", typeof(AsyncInterface)).Finish();

            return((SyncInterface)ProxyFactory.CreateProxy(typeof(SyncInterface), synchronizedInterceptor));
        }
예제 #2
0
파일: WebAPI.cs 프로젝트: JustHev/SteamKit
            internal Interface( string iface, string apiKey )
            {
                Timeout = 1000 * 100; // 100 sec

                asyncInterface = new AsyncInterface( iface, apiKey );
            }
예제 #3
0
 internal Interface( string iface, string apiKey )
 {
     asyncInterface = new AsyncInterface( iface, apiKey );
 }