feat:Android and iOS monitor use DoricContext as parameter
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
//
|
||||
|
||||
#import "DoricContextManager.h"
|
||||
#import "DoricContext.h"
|
||||
|
||||
@interface DoricContextManager ()
|
||||
|
||||
@@ -52,11 +51,11 @@ + (instancetype)instance {
|
||||
|
||||
- (void)createContext:(DoricContext *)context script:(NSString *)script source:(NSString *)source {
|
||||
context.contextId = [NSString stringWithFormat:@"%ld", (long) ++self.counter];
|
||||
[context.driver createContext:context.contextId script:script source:source];
|
||||
dispatch_sync(self.mapQueue, ^() {
|
||||
NSValue *value = [NSValue valueWithNonretainedObject:context];
|
||||
self.doricContextMap[context.contextId] = value;
|
||||
});
|
||||
[context.driver createContext:context.contextId script:script source:source];
|
||||
}
|
||||
|
||||
- (DoricContext *)getContext:(NSString *)contextId {
|
||||
|
||||
Reference in New Issue
Block a user