private static void callbackCaller(Dictionary <string, object> response, string callerId) { IDelegator delegator = null; try { Jsonable.CheckForErrors(response); lock (AmazonMobileAdsImpl.callbackLock) { delegator = AmazonMobileAdsImpl.callbackDictionary[callerId]; AmazonMobileAdsImpl.callbackDictionary.Remove(callerId); delegator.ExecuteSuccess(response); } } catch (AmazonException e) { lock (AmazonMobileAdsImpl.callbackLock) { if (delegator == null) { delegator = AmazonMobileAdsImpl.callbackDictionary[callerId]; } AmazonMobileAdsImpl.callbackDictionary.Remove(callerId); delegator.ExecuteError(e); } } }
public CollectionNodeHandler(object obj, IDelegator delegator) { this._obj = obj; _delegator = delegator; Type collectionBase = CollectionTools.GetCollectionBase(obj.GetType()); _elementType = CollectionTools.GetCollectionElementType(collectionBase); _addMethod = collectionBase.GetMethod("Add"); _elementTypeName = delegator.CreateName(_elementType); }
public MemberNodeHandler(object obj, IDelegator delegator) { _instance = obj; _delegator = delegator; }
public MemberNodeHandlerFactory(IDelegator delegator) { _delegator = delegator; }
public ConstructorCaller(IDelegator delegator) { _delegator = delegator; }
public ArrayValueDeserializer(IDelegator delegator) { _delegator = delegator; }
public ContextNodeDeserializer(IEnumerable <INodeHandlerFactory> handlerFactories, IDelegator delegator) { _handlerFactory = handlerFactories; _caller = new ConstructorCaller(delegator); }
public Producer(IDelegator delegator) { this.delegator = delegator; }
public CollectionNodeHandlerFactory(IDelegator delegator) { _delegator = delegator; }
public EventSink(Application app, IDelegator delegator) { app.Activated += app_Activated; this.delegator = delegator; }
public CollectionValueDeserializer(IDelegator delegator) { _delegator = delegator; }